MediaFlock scans your WordPress posts for externally hosted media files and imports them directly into your WordPress media library. After import, it automatically replaces the old external URLs in your post content with the new local URLs, ensuring all your media is served from your own site. How I
PricingFree downloadThe WordPress.org download is free. Pro versions, add-ons or external services may cost extra.
CompatibilityRequires WordPress 5.0 and PHP 7.2.
SourceWordPress plugins · Nov 17, 2026
01 / Source details
Aboutthistool.
MediaFlock scans your WordPress posts for externally hosted media files and imports them directly into your WordPress media library. After import, it automatically replaces the old external URLs in your post content with the new local URLs, ensuring all your media is served from your own site.
How It Works
The plugin uses five complementary URL extraction strategies to find external files in your content:
01Regex pattern matching — Scans raw post content for URLs matching configured file extensions.
02HTML anchor tag parsing — Extracts URLs from <a href> links pointing to external files.
03Media tag parsing — Finds external sources in <img> , <video> , <audio> , and <source> elements.
04Srcset attribute parsing — Detects external images referenced in responsive srcset attributes on <img> and <source> tags.
05CSS background-image parsing — Extracts URLs from background-image: url(...) declarations in inline styles and <style> blocks.
Key Features
Batch scanning — Processes posts in configurable batches (10-200 per request) to handle sites of any size.
Dry run mode — Check file sizes via HEAD requests before committing to an import.
Duplicate prevention — Already-imported files are detected and skipped automatically.
Dead link detection — URLs that returned errors on previous attempts are tracked and auto-skipped.
Resume interrupted scans — If a scan is interrupted (browser closed, timeout), resume exactly where you left off.
Progress tracking — Real-time progress bars for scanning, importing, and dry runs.
Import logs — Every import attempt is logged with status (success, error, skipped), timestamps, and details.
CSV export — Download filtered logs as CSV for offline analysis or reporting.
Retry failed imports — One-click retry of all previously failed imports.
Dashboard statistics — Overview of total imports, success/error/skipped counts, disk space used, and top errors.
Configurable file types — Choose which file extensions to scan for using a Select2 tagging interface.
Multiple URL filters — Restrict scanning to specific external servers by adding one or more base URLs.
Post type and status filters — Target specific post types and statuses (publish, draft, pending, private, future).
Quick Scan — Spot-check a single post by entering its ID or URL.
Permission levels — Restrict plugin access to administrators only or open it to editors and above.
Internationalization — Fully translatable with English and Georgian (ka_GE) translations included.
Clean uninstall — Removes all database tables and options when deleted.
URL Replacement
After importing a file, the plugin replaces the external URL in your post content. It handles multiple URL encoding variants to ensure no references are missed:
Standard URLs
HTML entity-encoded URLs ( & instead of & )
URL-encoded paths ( %20 for spaces)
Fully encoded path segments
Protocol-relative URLs ( //example.com/... )
02 / Source details
Gettingstarted.
01Upload the mediaflock folder to the /wp-content/plugins/ directory, or install the plugin through the WordPress Plugins screen.
02Activate the plugin through the “Plugins” screen in WordPress.
03Navigate to MediaFlock to begin scanning your posts for external media files.
04(Optional) Go to MediaFlock > Settings to configure file types, external server URLs, batch size, and permission levels before scanning.
03 / Source details
Frequently asked questions.
What file types are supported?
The plugin supports a configurable list of file extensions. The defaults are: jpg, jpeg, png, gif, pdf, doc, docx, zip, mp4, and mp3. You can add or remove extensions from the Settings page using the Select2 tagging interface.
Does it replace URLs in post content?
Yes. After a file is successfully imported into the WordPress media library, the plugin automatically replaces the old external URL with the new local URL in the post content. It handles all common encoding variants including HTML entity-encoded, URL-encoded, fully encoded paths, and protocol-relative URLs.
What happens if an import fails?
Failed imports are logged with an “Error” status along with the error message. You can view all errors on the Logs page by filtering to the “Error” tab. A “Retry Failed” button lets you re-attempt all failed imports in one click with progress tracking.
Can I limit which external servers to scan?
Yes. On the Settings page, you can add one or more external server base URLs using the “External Server URLs” field. Only URLs that start with one of these base URLs will be included in scan results. This is useful when you want to import files from specific CDNs or old domains only.
Does it work with custom post types?
Yes. The scan form displays all public post types registered on your site. You can select one or more post types to scan using the dropdown. Pages, posts, and any custom post type (e.g., products, portfolios) are all supported.
Is it safe to use on a large site?
Yes. The plugin is designed for sites of any size. Posts are processed in configurable batches (default 50, adjustable from 10 to 200). An SQL pre-filter at the database level skips posts that cannot contain external file URLs, significantly reducing processing time. If a scan is interrupted, you can resume from exactly where it left off. The dry run mode lets you check file sizes before committing to any imports.
What languages are supported?
The plugin ships with English and Georgian (ka_GE) translations. It is fully internationalized and can be translated into any language using the included .pot file. Translators can generate .po and .mo files for their locale using tools like Poedit or Loco Translate.
FinderPress Media Auditor helps site administrators scan for broken images, missing Media Library files, unreachable media URLs, and other media issues across WordPress content. Use it to audit images, video, audio, PDFs, featured images, and attachment files without sending scan data to an external
The Accepted Payment Methods plugin is a straightforward, lightweight solution that enhances your website by displaying visually appealing icons of the payment methods you accept. This plugin is ideal for a variety of websites, including e-commerce platforms, service-oriented websites, and informati