D
Media & Galleries Free WordPress.org

Disable Media Pages

5.0 (17 reviews)
· 10K+ active installs · By joppuyo
Active Installs
10K+
Rating
5.0 / 5
Version
v4.0.0
Last Updated
Aug 2025
Share

Plugin Review

AI-Researched

What is Disable Media Pages?

Disable Media Pages is a focused WordPress plugin that eliminates attachment pages from your site. Every time you upload an image or file, WordPress creates a dedicated page for it. These pages often contain nothing but the media file itself, creating thin content that hurts your SEO. This plugin, developed by joppuyo, has been available for 6 years and has earned a perfect 5.0/5 rating from 17 reviews. It currently serves 10K+ active installs. The latest version, 4.0.0, was released on Aug 4, 2025. The plugin returns a 404 error when someone tries to access these pages, instead of serving empty content.

The developer built this tool to solve two specific problems. First, attachment pages create thin content that can rank higher than your actual posts. Second, they reserve URL slugs that you might want for real pages. For example, uploading an image called contact.jpeg can block you from creating a Contact page at that URL. This plugin prevents both issues by assigning a unique UUIDv4 slug to every attachment.

Key Features of Disable Media Pages

  • Automatic 404 on attachment pages – When someone visits a media page, the plugin displays your theme’s “page not found” template instead of serving thin content.
  • UUIDv4 slug assignment – New uploads receive a unique identifier as their slug, preventing any future slug conflicts with pages or posts.
  • Bulk mangle existing slugs – A built-in wizard lets you fix attachment slugs that were already created before you installed the plugin.
  • Restore original slugs – If you change your mind, you can revert mangled attachment slugs back to their title-based format.
  • WP CLI support – Run wp disable-media-pages mangle or wp disable-media-pages restore directly from the command line for site-wide operations.
  • No settings page clutter – The plugin works immediately upon activation, with a simple settings page for the mangle wizard only.
  • Works alongside WordPress 6.4’s built-in feature – Unlike the core option that redirects to the file URL, this plugin returns a true 404 and fixes the slug reservation problem.
  • Lightweight codebase – The plugin adds minimal overhead and runs only when attachment pages are requested.

Who Should Use Disable Media Pages?

This plugin suits any WordPress site owner who cares about SEO. If you run a blog, business site, or portfolio, attachment pages are likely diluting your content quality. The plugin requires no technical skill to activate. You simply install it and media pages stop existing. It works especially well for sites that publish many images, as each upload would otherwise create a new thin page. With 10K+ other users trusting this plugin, the audience ranges from beginners to developers.

Advanced users will appreciate the WP CLI commands and the mangle wizard. The developer specifically addresses users who want to disable attachment pages in WordPress without relying on SEO suites like Yoast. The plugin solves the slug reservation issue that Yoast does not touch. If you are launching a new site, the FAQ recommends using this plugin from day one to prevent attachment pages from ever being indexed by Google.

Installation & Setup

You can install Disable Media Pages directly from your WordPress dashboard. After activation, all new media uploads automatically receive unique slugs. No configuration is needed. The only setup step involves visiting Settings ▸ Disable Media Pages if you want to mangle existing attachment slugs using the built-in wizard. The plugin requires WordPress 6.0+ and PHP 8.0+.

Support & Community

The plugin maintains a perfect 5.0/5 score from 17 ratings, with 100% 0% one-star ratings. This indicates high user satisfaction over its 6-year lifespan. Support data shows 0 open threads and 0 resolved threads in the last 2 months, resulting in a 0% resolution rate. This likely reflects that users rarely encounter issues, rather than a lack of support. The developer provides a GitHub repository for bug reports and accepts sponsorship contributions. The plugin also receives regular updates, with the latest version released on Aug 4, 2025.

The developer actively maintains a suite of focused plugins, including Disable Customizer and Disable Drop Cap. The FAQ section addresses common questions about redirecting attachment pages versus returning a 404, and explains why this plugin remains necessary even after WordPress 6.4 introduced its own attachment page feature.

Pros & Cons

What's Good
  • Rated 5.0/5 from 17 ratings with 100% five-star reviews, indicating strong user satisfaction.
  • With over 10K+ active installs, the plugin is widely trusted for solving the thin-content SEO issue of attachment pages.
  • Returns a true 404 status code for attachment pages instead of a redirect, which is more honest for search engines than WordPress 6.4's built-in redirect.
  • Frees up reserved slugs like /contact that are blocked by attachment page URLs, letting you use those slugs for actual pages.
  • Includes WP CLI commands to mangle or restore all existing attachment slugs in bulk, saving time on sites with many media files.
Drawbacks
  • Provides no user interface or settings panel, requiring users to rely on WP CLI or code for control.
  • Does not offer a redirect option; sites that prefer redirecting attachment URLs to the file itself must use a separate plugin.
  • May break themes or plugins that rely on attachment page URLs for galleries or lightbox functionality, with no built-in compatibility checks.

Technical Details

Requires WordPress
6.0+
Requires PHP
8.0+
Tested up to WP
6.8.5
First Released
2020 (6+ years)
Support (last 2 months)
0 threads

Feature Tags

attachment disable hide media remove

Frequently Asked Questions