Title: Smart Attachment Page Remove
Author: Peter Raschendorfer
Published: <strong>3. Januar 2017</strong>
Last modified: 17. April 2024

---

Plugins durchsuchen

Dieses Plugin **ist nicht mit den jüngsten 3 Hauptversionen von WordPress** getestet
worden. Es wird möglicherweise nicht mehr gewartet oder unterstützt und kann Kompatibilitätsprobleme
haben, wenn es mit neueren Versionen von WordPress verwendet wird.

![](https://ps.w.org/smart-attachment-page-remove/assets/icon-256x256.png?rev=3071827)

# Smart Attachment Page Remove

 Von [Peter Raschendorfer](https://profiles.wordpress.org/petersplugins/)

[Herunterladen](https://downloads.wordpress.org/plugin/smart-attachment-page-remove.4.0.5.zip)

 * [Details](https://de.wordpress.org/plugins/smart-attachment-page-remove/#description)
 * [Rezensionen](https://de.wordpress.org/plugins/smart-attachment-page-remove/#reviews)
 * [Entwicklung](https://de.wordpress.org/plugins/smart-attachment-page-remove/#developers)

 [Support](https://wordpress.org/support/plugin/smart-attachment-page-remove/)

## Beschreibung

The Smart Attachment Page Remove Plugin allows you to remove Attachment Pages automatically
generated by WordPress

### Retired Plugin

Development, maintenance and support of this plugin has been retired in october 
2023. You can use this plugin as long as is works for you.

There will be no more updates and I won’t answer any support questions. Thanks for
your understanding.

Feel free to fork this plugin.

### Verwendung

WordPress generiert automatisch für jede Datei, die in die Mediathek hochgeladen
wird, eine eigene Anhang-Seite. Auch wenn du diese Seiten nicht benutzen möchtest
und du Medien-Dateien niemals zur entsprechenden Anhang-Seite verlinkst, existieren
diese Seiten und sind über deren automatisch generierte URL erreichbar. Das Plugin
Smart Attachment Page Remove blockiert den Zugriff auf diese Anhang-Seiten und löst
einen 404-Fehler („Seite nicht gefunden“) aus.

This ensures that Attachment Pages do not appear in the results of Search Engines
unwanted.

**Additionally this plugin prevents from comment spam** sent via this Attachment
Pages because they are no longer accessible.

### Settings

Optionally, a status code 410 can be sent instead of status code 404.

HTTP status code 404 indicates that the requested URL could not be found. This is
the default code always sent by WordPress when a URL can not be found. HTTP status
404 does not provide any further information why a URL was not found.

HTTP status code 410 on the other hand indicates that the requested URL is no longer
available and will not be available again. If your Attachment Pages already have
been indexed by search engines, HTTP status 410 informs them to immediately delete
those pages from their index. This should speed up removal.

**Regardless, in case of Attachment Pages it makes more sense to use HTTP status
410 anyway and it is recommendet to activate this option in any case.**

This option is not activated by default only because it is not the usual behavior
of WordPress. There are no negative effects in using HTTP 410.

### Plugin Privacy Information

 * This plugin does not set cookies
 * This plugin does not collect or store any data
 * This plugin does not send any data to external servers

## Rezensionen

![](https://secure.gravatar.com/avatar/66a6e555e980dbcb4bfcd0e18aa7255c445003120af9439b9453fa18575fdfab?
s=60&d=retro&r=g)

### 󠀁[just as the label describes it 🙂](https://wordpress.org/support/topic/just-as-the-label-describes-it/)󠁿

 [](https://profiles.wordpress.org/probablepossible/) 17. Juni 2022 1 Antwort

It simply does what it promises to do. Thanks!

![](https://secure.gravatar.com/avatar/9c4928edc97c7bc1fbcc1caa39bd7a7de114a2f6620881da4bbf773ac9593f98?
s=60&d=retro&r=g)

### 󠀁[Simply the best](https://wordpress.org/support/topic/simply-the-best-609/)󠁿

 [bloup](https://profiles.wordpress.org/bloup/) 28. Oktober 2023 1 Antwort

<!– wp:paragraph –> <p class=““>It returned a 404 error code just like I wanted 
so that googlebot does not see a single attachment page.I am convinced that from
a SEO point of view, this plugin can be VITAL.</p> <!– /wp:paragraph –> <!– wp:paragraph–
> <p class=““>Previously, Googlebot spotted all attachment pages and spent time 
crawling them even if there were redirecting to parent pages by my SEO plugin Rank
math seo & Yoast.</p> <!– /wp:paragraph –> <!– wp:paragraph –> <p class=““>By default
Yoast or Rank math seo redirect attachment pages to parent pages. Sometimes it redirects
attachment pages to the image url itself.</p> <!– /wp:paragraph –> <!– wp:paragraph–
> <p class=““>However, Nothing on my website had links to an attachment page. btw,
I suspect that in the past a XML sitemap listed these attachment URLs so that googlebot
spotted them.Anyways, I think it is a really bad idea to redirect them. The attachment
page is not an equivalent of its parent page. I am sure it can trigger a Google’s
Cloaking penalty.</p> <!– /wp:paragraph –> <!– wp:paragraph –> <p class=““>All SEO
plugins got it wrong from this point of view. They should create a 404 when webmasters
want attachment pages to be disabled.So for sure, i could have installed Yoast and
activate it but opt for the option to hide it in search appearances. It would have
added a noindex.This means that in this case, the pages would have been still there.
This means that Googlebot would likely spend time crawling these useless pages. 
I have more than 100 of them.That’s why this plugin is so important. It returns 
a proper 404 which will send the best possible signal to Googlebot.</p> <!– /wp:
paragraph –> <!– wp:paragraph –> <p class=““>I also don’t trust SEO plugins. In 
the past, Yoast changed the settings of attachment pages during an update (Yoast
7.0). I don’t know if you heard of it but millions of attachment pages have been
indexed because of this update. Since that time, I don’t trust SEO plugins anymore.
</p> <!– /wp:paragraph –> <!– wp:paragraph –> <p class=““>In the past, I had this
issue, I redirected attachment pages and my website was penalized by google. By 
returning a 404 , I avoid any Google penalty. That’s why this plugin is vital.</
p> <!– /wp:paragraph –>

![](https://secure.gravatar.com/avatar/0e77ec6d742fb1a51d03f0bd0bdc545cc39545bbba35b3fe93c3e1843aebc112?
s=60&d=retro&r=g)

### 󠀁[Works like a charm!](https://wordpress.org/support/topic/works-like-a-charm-1971/)󠁿

 [Joe](https://profiles.wordpress.org/morehawes/) 31. August 2021 1 Antwort

Thank you for the excellent plugin!

![](https://secure.gravatar.com/avatar/590c1a85322729f2345aa128684db6522b37951ea328215b6f501ed8439c0a91?
s=60&d=retro&r=g)

### 󠀁[Thank you kindly](https://wordpress.org/support/topic/thank-you-kindly-2/)󠁿

 [Jimmy Lee](https://profiles.wordpress.org/shirtguy72/) 31. Mai 2021 1 Antwort

Really nice, clean plugin. Again, thank you.

![](https://secure.gravatar.com/avatar/e75679a5e27739b9f3187d96dd0fe492102f9f3fe58a94c787b0f09d4f1f11b0?
s=60&d=retro&r=g)

### 󠀁[Works as expected](https://wordpress.org/support/topic/works-as-expected-675/)󠁿

 [ArtZ91](https://profiles.wordpress.org/artz91/) 8. April 2021 1 Antwort

Works as expected, but settings page with custom styles is redundant, imo.

![](https://secure.gravatar.com/avatar/04d1fd48832583633ff5ef37b962b685cdc700cdcb4e95c2a2eb0f9470fe76ce?
s=60&d=retro&r=g)

### 󠀁[Just works](https://wordpress.org/support/topic/just-works-611/)󠁿

 [ntemple](https://profiles.wordpress.org/ntemple/) 14. November 2020 1 Antwort

What else is to say? It just works.

 [ Alle 13 Rezensionen lesen ](https://wordpress.org/support/plugin/smart-attachment-page-remove/reviews/)

## Mitwirkende und Entwickler

„Smart Attachment Page Remove“ ist Open-Source-Software. Folgende Menschen haben
an diesem Plugin mitgewirkt:

Mitwirkende

 *   [ Peter Raschendorfer ](https://profiles.wordpress.org/petersplugins/)

„Smart Attachment Page Remove“ wurde in 1 Sprache übersetzt. Danke an [die Übersetzer](https://translate.wordpress.org/projects/wp-plugins/smart-attachment-page-remove/contributors)
für ihre Mitwirkung.

[Übersetze „Smart Attachment Page Remove“ in deine Sprache.](https://translate.wordpress.org/projects/wp-plugins/smart-attachment-page-remove)

### Interessiert an der Entwicklung?

[Durchstöbere den Code](https://plugins.trac.wordpress.org/browser/smart-attachment-page-remove/),
sieh dir das [SVN-Repository](https://plugins.svn.wordpress.org/smart-attachment-page-remove/)
an oder abonniere das [Entwicklungsprotokoll](https://plugins.trac.wordpress.org/log/smart-attachment-page-remove/)
per [RSS](https://plugins.trac.wordpress.org/log/smart-attachment-page-remove/?limit=100&mode=stop_on_copy&format=rss).

## Änderungsprotokoll

#### 4.0.5 (2024-04-17) URGENT BUGFIX

 * Bugfix after Cleanup

#### 4.0.4 (2024-04-16) CLEANUP

 * Cleanup

#### 4.0.3 (2022-10-03) FINAL VERSION

 * removed all links to webiste
 * removed request for rating

#### 4.0.2 (2022-05-29)

 * just cosmetics
 * Plugin Foundation updated to PPF08
 * removed unneeded leftovers from pre 4.0.0

#### 4.0.1 (2020-08-25)

 * uninstall fix

#### 4.0.0 (2020-08-23)

 * now uses my own Plugin Foundation
 * new UI

#### 3 (2019-01-04)

 * option to send HTTP status 410 instead of HTTP status 404
 * code improvement
 * UI improvements

#### 2 (2018-04-17)

 * minor code- & UI-improvements

#### 1.2 (2017-11-16)

 * faulty display in WP 4.9 fixed

#### 1.1 (2017-06-26)

 * redesigned admin interface
 * code improvement

#### 1.0 (2017-01-12)

 * Initial Release

## Meta

 *  Version **4.0.5**
 *  Zuletzt aktualisiert **vor 2 Jahren**
 *  Aktive Installationen **900+**
 *  WordPress-Version ** 4.0 oder höher **
 *  Getestet bis **6.3.8**
 *  PHP-Version ** 7.0 oder höher **
 *  Sprachen
 * [English (US)](https://wordpress.org/plugins/smart-attachment-page-remove/) und
   [German](https://de.wordpress.org/plugins/smart-attachment-page-remove/).
 *  [Übersetze in deine Sprache](https://translate.wordpress.org/projects/wp-plugins/smart-attachment-page-remove)
 * Schlagwörter
 * [attachment pages](https://de.wordpress.org/plugins/tags/attachment-pages/)[ClassicPress](https://de.wordpress.org/plugins/tags/classicpress/)
   [spam](https://de.wordpress.org/plugins/tags/spam/)
 *  [Erweiterte Ansicht](https://de.wordpress.org/plugins/smart-attachment-page-remove/advanced/)

## Bewertungen

 4.7 von 5 Sternen.

 *  [  12 5-Sterne-Rezensionen     ](https://wordpress.org/support/plugin/smart-attachment-page-remove/reviews/?filter=5)
 *  [  0 4-Sterne-Rezensionen     ](https://wordpress.org/support/plugin/smart-attachment-page-remove/reviews/?filter=4)
 *  [  0 3-Sterne-Rezensionen     ](https://wordpress.org/support/plugin/smart-attachment-page-remove/reviews/?filter=3)
 *  [  0 2-Sterne-Rezensionen     ](https://wordpress.org/support/plugin/smart-attachment-page-remove/reviews/?filter=2)
 *  [  1 1-Sterne-Rezension     ](https://wordpress.org/support/plugin/smart-attachment-page-remove/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/smart-attachment-page-remove/reviews/#new-post)

[Alle Rezensionen anzeigen](https://wordpress.org/support/plugin/smart-attachment-page-remove/reviews/)

## Mitwirkende

 *   [ Peter Raschendorfer ](https://profiles.wordpress.org/petersplugins/)

## Support

Möchtest du etwas mitteilen? Brauchst du Unterstützung?

 [Support-Forum anzeigen](https://wordpress.org/support/plugin/smart-attachment-page-remove/)