🔥 Black Friday Sale: Get 65% OFF Any PageForge Pro Plan! Use code BF65 Claim Offer →
Konto Get it free
Medifence – Access Control for Media Uploads icon
aktiv gepflegt Getestet mit WP 7.1 #25 in access-control

Medifence – Access Control for Media Uploads

Blocks direct access to uploaded media files for visitors who are not logged in. File URLs stay unchanged.

Aktive Installationen60+10+ Stufe
Downloads · 30d850▲ +123.7% vs prev. 30d
Wertung—0 Bewertungen
Gesundheits-Score68/100Gut
Downloads aller Zeiten1.7KSeit Jul 2026
Unterstützung gelöst—Keine aktuellen Threads
erfordertWP 6.0PHP 7.4+
Downloads · 7d172▼ -17.7% week over week
Unser Urteil

Solide Wahl

Medifence is a solid plugin choice in 2026, with a few things worth checking first. It runs on 60+ sites and was last updated 2 weeks ago, and scores 68/100 on our health check.

  • Aktiv entwickelt — letztes Update vor 2 Wochen
  • Getestet mit dem neuesten WordPress (7.1)
  • Momentum — downloads up 123.7% vs the previous 30 days
  • Small user base (60+ active installs)
  • Bisher sehr wenige Bewertungen

Wie stapelt es sich?

Side-by-side bei Installationen, Updates, Bewertungen und Support

Tägliche Downloads

255075Sep 4Oct 18Dec 2
Gestern25
Täglicher Durchschnitt (1 Jahr)13
Spitzentag1011.11.2026
Letzte 12 Monate1.7K

Download-Spitzen folgen normalerweise einer neuen Version - jede Website, die automatisch aktualisiert wird, gilt als Download.

Ranglisten

Where Medifence stands today

WordPress.org Ranglisten suchen

Live-Position in der Plugin-Suche, Top 100
StichwortPositionKonkurrierende PluginsKategorie
access-control #100 8,300 Best access-control plugins →
media >100 10,000 Best media plugins →
Mitgliedschaft >100 2,464 Beste Mitgliedschafts-Plugins →
protection >100 7,239 Best protection plugins →
uploads >100 10,000 Best uploads plugins →

Versionsübernahme

Anteil aktiver Sites pro Release.

  • 1.7775.0%
  • 1.6325.0%

About Medifence

From the official readme · v1.77.1

Beschreibung

By default, every file inside the WordPress uploads directory can be opened by anyone who knows its URL. For membership sites this means that protected content pages are useless if the images inside them can still be opened directly.

Medifence puts a login check in front of every uploads request — without changing a single URL and without moving any files.

Wie es funktioniert

On activation, the plugin writes a small rule block into the .htaccess file inside your uploads directory (using WordPress’s own marker mechanism, so rules from other plugins are preserved). Requests for existing files are rewritten to WordPress itself, which bootstraps normally; the plugin then verifies the visitor is logged in and streams the file. No WordPress core file is ever loaded directly. Deactivating or uninstalling the plugin removes the rules, and your files are served normally again.

Merkmale

  • File URLs stay exactly the same — nothing to update in posts or the database
  • Physical files stay where they are — no migration needed
  • Built-in live verification: the settings screen requests a test file without a session cookie and shows the actual HTTP status anonymous visitors receive
  • A warning appears on all admin screens if another plugin overwrites the rules
  • Optionally require a specific capability in addition to being logged in
  • Or give individual folders their own capability, so one membership tier cannot reach another’s files
  • Choose the denied status code (403, 404, or 401) — 404 hides that the file exists
  • Or send visitors who open a protected file to the login screen, and back to the file afterwards
  • Or to a page of your own — a membership or contact page, for people who have no account yet
  • Either way they are told which file they were opening, so the redirect does not read as a broken site
  • Optionally serve a placeholder image instead of denied images — your own, or the grey padlock included with the plugin
  • Exclude specific file extensions (useful when your theme loads CSS or fonts from uploads)
  • Excluding a document or archive type — pdf, zip, docx — is flagged before and after saving, so it never happens unnoticed
  • Exclude individual folders, or flip it around and protect only the folders you list — picked from the folders you actually have
  • Or let each file follow the post it is attached to: published posts stay public, private ones require a login
  • Publish the generated image sizes a gallery needs while the full-resolution original stays protected
  • WebP and AVIF copies made by an image optimizer follow the file they were made from — published size or protected original
  • Make a single file an exception to all of that — always public, or always protected — from the media library
  • Narrow the media library list to one protection state, to select what is exposed and fix it without leaving the screen
  • A shortcode lists the files of a folder that the current visitor may download — the member page that never drifts out of date
  • Share a single protected file with someone who has no account, using an expiring signed link — and revoke any of them individually
  • Limit a share link to a number of downloads, note down who it was issued to, and see how often it has been used
  • Give a share link a password as a second factor — only its hash is stored, and guessing is cut off after 20 wrong attempts
  • Or select a set of files in the media library and get all their links in one go
  • Set the lifetime and download limit the share forms start with, for sites that issue many links the same way
  • Send a freshly issued link by email straight from the result box — no pasting, no misaddressing
  • Or a whole set at once, as one message listing every link with its file name and expiry
  • Start a link from a file’s own edit screen, with the file already selected
  • Download the ledger of active links as CSV — without the links themselves, so a leaked ledger leaks no access
  • Search that list by file name or note, or show only what expires within a day, and page through it
  • Pause the protection for a few minutes while diagnosing a problem — it always resumes by itself, and the rules stay in place
  • A daily check restores the rules automatically if another plugin removes or overwrites them
  • What was overwritten is kept for you to inspect — the clue to which plugin keeps doing it
  • Repeated overwrites are called out as a standing conflict, instead of being silently repaired forever
  • Optionally emails you when the protection stops working — once, when the verdict changes
  • And when the number of files anyone can open grows, which a working set of rules will never tell you
  • That number is kept as a 30-day trend, so a scope drifting wider over weeks is visible at a glance
  • The files that became reachable since the previous count are named, not just counted
  • Or get one summary a week — reachable files, blocked requests, active links, settings changes — even when nothing happened
  • Reports the protection status in Site Health, and offers WP-CLI commands for deployments
  • A dashboard widget puts the vital signs on the admin home, seen without anyone going looking
  • Warns when WP-Cron is not running — the silent way every scheduled check, alert, and summary stops
  • Inspect any single file to see whether it is reachable, and which setting decided it
  • Preview a settings change before saving it: see exactly which files would stop being protected
  • Carry a configuration from staging to production as a JSON file, reviewed before it is applied
  • See which administrator changed the protection, when, and from what to what — and undo a recorded change with one click
  • Audit the whole library in one click and get the list of files your settings leave public — and close them from that same list
  • Download that list as CSV, from the admin screen — the evidence a compliance process asks for
  • Scan the uploads directory itself for files no attachment points at — the ones nothing else reports
  • Scan published content for embedded protected files — the setting that shows up as a broken image on a public page
  • Or be told at once: publishing a post checks that post and names the files its visitors will not be able to open
  • The audit also names the attachments whose file is missing on disk, before someone issues a share link that cannot work
  • Optionally count what was blocked, per file — without storing IP addresses or user agents — and download the list as CSV
  • Including the share links that were refused, and the wrong passwords: why “the link you sent does not open”
  • Choose how many files the log keeps and for how long, and see the last 7 days as one count per day
  • See at a glance which files are protected, from a column in the media library
  • The same verdict appears in the file dialog while inserting media into a post, and as a read-only REST field for administrators
  • Choose whether allowed files open in the browser or always arrive as a download — video and audio keep playing either way
  • Range request support for video and audio seeking, ETag-based browser caching for logged-in users
  • Lock the configuration with a wp-config.php constant, for sites where the protection scope is agreed rather than casual
  • Cleans up completely on uninstall

Bedarf

  • Apache or LiteSpeed with mod_rewrite enabled
  • A writable .htaccess file in the uploads directory

This plugin does not work on nginx, because nginx does not read .htaccess files. The built-in live test will tell you immediately whether your server is compatible.

Für Entwickler

The final access decision can be filtered:

add_filter( 'medifence_allow_access', function ( $allowed, $file_path ) {
    // Example: always allow files inside uploads/public/.
    if ( false !== strpos( $file_path, '/uploads/public/' ) ) {
        return true;
    }
    return $allowed;
}, 10, 2 );

The WP-CLI commands, the diagnostic header, the [medifence_files] shortcode, the REST field, and the delivery details are described in the developer documentation.

Installation

  1. Upload the medifence folder to /wp-content/plugins/, or install it from the Plugins screen.
  2. Activate the plugin. The .htaccess rules are written automatically.
  3. Go to Media → Access Control and confirm that the live test reports “Anonymous access is blocked”.
  4. Optionally, open a media file URL in a private browsing window to verify it yourself.

Änderungsprotokoll

Security update: the share link signing key can no longer be created twice by simultaneous first requests, and visitors can no longer make the site create it. Existing links keep working.

1.77.1

  • Security: the signing key for share links is created only once, even when the first requests that need it arrive at the same moment. Each of them used to create and save its own key, and the later one replaced the earlier — so a link issued in that moment could stop working without anyone revoking it. The key is now stored only while there is none, and every request uses the one that was stored first.
  • Security: a request that merely carries a share link token no longer makes the site create its signing key; without a key no link can be valid, so the request is refused without writing anything. A stored key that is not a string of at least 32 characters is no longer used for signing and is replaced. Existing keys and links are unchanged.

1.77.0

  • Security: requests that arrive at the same moment can no longer get around a share link’s limits. The list of links was read, changed and saved back by every download and every wrong password, so two overlapping requests both started from the same copy and the later save undid the earlier one. Wrong passwords sent in parallel then counted as one, so the limit of 20 attempts no longer bounded a guessing attack; parallel requests for a link’s last download could all receive the file; and a download that was under way while the link was revoked could write the revoked link back. Every change to the list is now made against the stored copy and saved only if no other request saved first — otherwise it is worked out again. A password attempt is counted before the password is checked and given back when it was right, and a download is only counted while the link still has one left.
  • Issuing, revoking and deleting links, and the daily clean-up, go through the same path, so a link issued or revoked while someone is downloading is never lost or brought back. Nothing changes in what is stored or in how links behave one request at a time.

1.76.0

  • Security: a share link’s download limit can no longer be bypassed with a Range or If-None-Match header. Those requests were never counted, so that a video seek or a cache check would not spend a link, which also let any client that always sent one download a “valid for one download” link as often as it liked. Now the first request a browser makes for a link is counted whatever it carries, and only the ranges and revalidations that follow it from the same browser within an hour are free. That browser is recognised by a short-lived signed cookie (medifence_view_…, HttpOnly, never outliving the link) holding no information about the visitor. A client that keeps no cookies has every request counted.
  • Security: the file inspector, wp medifence inspect, the media list, the REST field and the audits now report the files the delivery handler refuses — .htaccess and other dot files, PHP source, and files in a folder whose own .htaccess denies all access — as “Blocked for everyone”, with the new reasons refused_hidden, refused_script and refused_closed (for a closed folder, the folder that closes it is the matched value). They used to be judged by the protection scope, so such a file read “Protected: it is inside the protected scope”, or even “Served to everyone” when it lay outside the protected paths. The uploads scan no longer lists them as public, and the embedded-file scan counts them as blocked. Files that are not refused are reported exactly as before.
  • Fixed: a request for the end of a file (Range: bytes=-500) now receives the last 500 bytes; it used to receive the first 501. A Range header with several ranges, another unit, or a last byte before the first is now ignored and the whole file is sent, as RFC 9110 requires, instead of answering with only the first range or with 416.
  • Fixed: a resumed download whose If-Range no longer matches the file — the file was replaced in between — now receives the whole file instead of a part that would be stitched onto the old copy.
  • Security: the CSV exports (audit, access log, share links) also escape values that begin with a tab or a carriage return, which some spreadsheets strip before reading a formula. The CSV escape character is now passed explicitly, so PHP 8.4 raises no deprecation notice; the output is unchanged.

1.75.0

  • Security: the delivery handler no longer hands out files the web server itself keeps closed. Because the address it answers on can be typed by anyone, a logged-in account of any role — or anyone at all during a pause or for a folder outside the protected scope — could read .htaccess files, PHP source, and files that other plugins keep in the uploads directory behind a “deny from all” rule, such as logs, exports and backups. Those are now refused with a plain 404, the same answer as for a file that does not exist.
  • Security: the check that a requested file lies inside the uploads directory now compares whole folder names, so a symbolic link that resolves to a sibling folder with the same beginning (uploads-old next to uploads) is no longer accepted.
  • Security: the file name sent with a delivered file is reduced to plain ASCII, and the exact name, when it differs, travels in the RFC 6266 form, so a quote in a file name can no longer be read as part of the header.
  • The [medifence_files] list and the file name shown on the login screen skip the files that are refused.

1.74.0

  • One batch of the library audit is now measured in time rather than in files: about five seconds, or a thousand attachments, whichever comes first. A slow host covers fewer per press and a fast one covers more, and neither is asked for something it cannot finish.
  • Each batch says how many it managed and whether it stopped on the clock or on the count, so a small number is legible as a busy server rather than as a scan that gave up.

1.73.0

  • The scan of the uploads directory no longer reads every recorded attachment path into memory first, so its cost no longer grows with the size of the library. On a large site this is the difference between a scan that finishes and one the server kills.
  • The directory is walked in batches instead of being listed in full, so wp medifence stray --limit=0 works on a directory of any size.
  • The result is unchanged: the same files are reported, for the same reasons.

Vollständiges Änderungsprotokoll auf WordPress.org →

Screenshots

Protection status: the live test without a session cookie, the scheduled checks, and the verdict for a single file
Protection status: the live test without a session cookie, the scheduled checks, and the…
The protection scope: excluded and protected folders, the image sizes anyone may see, and per-folder capabilities
The protection scope: excluded and protected folders, the image sizes anyone may see, and…
What a denied visitor receives, how an allowed file is delivered, the notifications, and the record of which administrator changed the protection
What a denied visitor receives, how an allowed file is delivered, the notifications, and…
The audit: which files anyone can open and why, files no attachment points at, what became reachable since the last count — and the list as CSV
The audit: which files anyone can open and why, files no attachment points at, what…
Share links: expiring signed links with a password, a download limit, a note, a list you can narrow, and a ledger to download
Share links: expiring signed links with a password, a download limit, a note, a list you…
The .htaccess rules the plugin generates
The .htaccess rules the plugin generates

Für Entwickler

Ist das dein Plugin? Zeigen Sie die Zahlen.

Fügen Sie Ihrer Website, Docs oder GitHub Readme ein Live-Badge hinzu. Es wird von selbst aktualisiert - kein Konto erforderlich.

Aktiv installiert Badge Bewertungsabzeichen Gesundheits-Score-Abzeichen

Best Medifence alternatives

All access-control plugins →
Alternativen
Rang Plugin Aktive Installationen Wertung Aktualisierten Gesundheit
1 PublishPress Capabilities: User Role Access Control, Admin Area Permissions PublishPress Capabilities: User Role Access Control, Admin… User role editing for WordPress. Manage user roles, control capabilities and permissions… von PublishPress 90K+ ★★★★★★★★★★ 4.7 (144) Vor 3 tagen 95
2 Content Control – die ultimative Content-Einschränkungslösung! Inhalte einschränken, bedingte Blöcke erstellen und mehr Inhaltskontrolle Beschränken Sie den Inhalt basierend auf dem Login-Status, den Benutzerrollen, dem Gerätetyp und mehr. Monetarisieren Sie Ihre… Von Daniel Iser 40K+ ★★★★★★★★★★ 4.9 (576) Vor 2 Monaten 76
3 PublishPress Permissions: Access Control, Content Permissions, User Access PublishPress Permissions: Access Control, Content Permissio… The permissions plugin for posts, pages, categories, tags and more. You can control… von PublishPress 10K+ ★★★★★★★★★★ 4.3 (66) Vor 1 Woche 89
4 Restrict User Access – Ultimate Membership & Content Protection Restrict User Access Create Access Levels and restrict any post, page, category, etc. Supports bbPress… by Joachim Jensen 10K+ ★★★★★★★★★★ 4.3 (94) Vor 4 Wochen 76
5 Gruppen – Mitgliedschaften und Zugriffskontrolle Gruppen – Mitgliedschaften und Zugriffskontrolle Verwandeln Sie Ihre Website in eine leistungsstarke Mitgliedschaftslösung. Mitglieder, Teams und Zugang zu… von itthinx 10K+ ★★★★★★★★★★ 4.8 (382) Vor 1 Woche 93
6 SureMembers – Membership & Content Restriction Plugin SureMembers – Membership & Content Restriction Plugin Protect your content, build memberships, and control who sees what on your WordPress site… durch Brainstorming-Kraft 2K+ ★★★★★★★★★★ 5 (3) Vor 3 tagen 67
7 Quick Download Button Quick Download Button Add stylish download buttons to any post or page — 7 styles, countdown, popup modal, access… von Sidocode 1K+ ★★★★★★★★★★ 4.6 (12) Vor 2 Tagen 80
8 SimpleShop SimpleShop The SimpleShop WP plugin connects your WordPress website with a SimpleShop account and… by Redbit s.r.o. 1K+ ★★★★★★★★★★ Keine Bewertungen Vor 3 Monaten 60
9 Menu By User Roles Menu By User Roles Menu By User Roles allows you to control the visibility of menu items based on user roles. by kahnu044 1K+ ★★★★★★★★★★ 5 (3) Vor 2 Monaten 73
10 Gruppen 404 umleiten Gruppen 404 umleiten Leiten Sie 404 um, wenn ein Besucher versucht, auf eine Seite zuzugreifen, die durch Gruppen geschützt ist. von itthinx 1K+ ★★★★★★★★★★ 4.6 (10) Vor 2 Monaten 76

Fragen und Antworten

Medifence: quick answers

Gerade Antworten, gezogen von Live WordPress.org Daten.

Quelle: WordPress.org

Is Medifence free?

Yes. Medifence is free to download and use from the official WordPress.org plugin directory.

Is Medifence safe to use in 2026?

Medifence is a solid plugin choice in 2026, with a few things worth checking first. It runs on 60+ sites and was last updated 2 weeks ago, and scores 68/100 on our health check.

How many websites use Medifence?

Medifence is active on 60+ WordPress websites and has been downloaded 1,715 times since it launched in July 2026. It was downloaded 850 times in the last 30 days.

Does Medifence work with WordPress 7.1?

Yes. The developer has tested Medifence up to WordPress 7.1.5, the latest release. It requires WordPress 6.0 or newer.

What PHP version does Medifence need?

Medifence requires PHP 7.4 or higher. Most hosts run PHP 8.x today, so it works on any modern WordPress hosting.

When was Medifence last updated?

The latest version, 1.77.1, was released on November 22, 2026 (2 weeks ago).

Who makes Medifence?

Medifence is developed and maintained by Redwoodcity.

What are the best alternatives to Medifence?

The most popular alternatives to Medifence are PublishPress Capabilities:… (90K+ installs), Content Control (40K+ installs) and PublishPress Permissions: A… (10K+ installs).

Angetrieben von PageForge

Eine Vorlage und eine Tabelle. Eine echte Seite für jede Suche.

PageForge Verwandelt jede Zeile eines CSV in eine WordPress-Seite mit eigenem Titel, URL, SEO Felder und Schema entworfen. Kostenlos auf WordPress.org.

  • CSV und XLSX, plus Google Sheets auf Beruf und Unternehmen
  • seinen eigenen Titel, URL, SEO Felder und Schema für jede Seite
  • Arbeitet mit dem Blockeditor, Elementor, Divi und Avada
  • Kostenlos auf WordPress.org, keine Kreditkarte

↑↓ bewegen↵ öffnen