Priskribo
Ad Unblock plugin allows you to easily integrate your WordPress site with the Ad Unblock service, which helps you recover ad revenue lost due to ad blockers.
Key Features
- Connect your Ad Unblock account from the settings page: no Account ID to copy, and your site is added to your account for you
- Or enter an Account ID yourself
- Checks that Ad Unblock has verified your site, from the settings page
- Control which pages the script runs on (all pages, specific URL patterns, categories, or tags)
- Sends your site domain with the script source request, so your site keeps working when a filter list blocks the shared script host
- Automatically inserts the required script into your site’s header
- Caches API requests for optimal performance
How It Works
- Go to Settings Ad Unblock and click “Connect your Ad Unblock account”
- Log in or create a free account at ad-unblock.com, then confirm your site
- You are sent back to the plugin with your Account ID saved and your site added to your account
- Clear your page cache if you use one
- Configure on which pages the script should run
- Start recovering your ad revenue!
Prefer to do it by hand? Choose “Enter an Account ID instead”, paste the Account ID from your Ad Unblock dashboard, and add your site there.
External services
This plugin connects to the Ad Unblock service (https://public.adunblocker.com/api/vendor_scripts) to obtain script source URLs. The script source URLs may change hence the server side fetch.
It also connects to the Ad Unblock dashboard (https://ad-unblock.com), only when you ask it to: to connect your account, and to check that your site is verified.
Data Transmitted
- The plugin fetches script source URLs from https://public.adunblocker.com/api/vendor_scripts (cached for 5 minutes)
- Your site’s own domain is sent with that request as the
domainquery parameter, so the service can answer with a script host reserved for your site. It is taken from your site address and can be changed or left blank in the plugin settings. - When you click “Connect your Ad Unblock account”, your browser goes to https://ad-unblock.com/connect/wordpress with your site’s domain, the address of the plugin’s settings page (to send you back to it), a short-lived token and the plugin’s version. Nothing is sent until you click.
- When you connect, save an Account ID or click “Check verification”, the plugin sends your site’s domain and your Account ID to https://ad-unblock.com/api/sites/verify, and Ad Unblock loads your site’s public pages to look for the tag. It answers only whether the site is verified.
- No personal user data is collected or transmitted by the plugin itself
The external service is provided by Ad Unblock:
* Terms of Service
* Privacy Policy
Instalo
- Upload the plugin files to the
/wp-content/plugins/ad-unblockdirectory, or install the plugin through the WordPress plugins screen directly. - Activate the plugin through the ‘Plugins’ screen in WordPress
- Go to Settings Ad Unblock and click “Connect your Ad Unblock account”, or enter your Account ID from the Ad Unblock dashboard
- Clear your page cache if you use one
- Configure which pages should have the script enabled
OD
-
Do I need an Ad Unblock account to use this plugin?
-
Yes, you need to register at ad-unblock.com to get an Account ID.
-
Where do I find my Account ID?
-
You don’t need to look for it: click “Connect your Ad Unblock account” in the plugin settings and it is saved for you. If you would rather enter it yourself, it is in your Ad Unblock dashboard after you register on ad-unblock.com.
-
Connect is not offered on my site. Why?
-
Ad Unblock verifies a site by loading it from the internet, so a site on localhost, an IP address or a local-only name cannot be connected. Enter an Account ID yourself to try the plugin there.
-
The plugin says my site is not verified. What now?
-
Clear your page cache first: a cached page from before the plugin was set up goes out without the tag (see “Clear your page cache” on the settings page). If you entered the Account ID yourself, also check that the site is added to that account in your Ad Unblock dashboard. Then click “Check verification” again.
Ad Unblock looks for the tag on the home page of your domain. If WordPress is in a subdirectory (
example.com/blog/), or “Enable On Pages” leaves your home page out, it is not there to find: the settings page says so under “Check verification” and links to your Ad Unblock dashboard, where you add the site with the address of a page that has the tag.If the settings page says the tag is not being added to your pages, your site could not load the script sources from Ad Unblock, so there is nothing to verify yet. Check the API Endpoint setting, or ask your host whether outgoing requests are blocked.
-
Can I control which pages have the script?
-
Yes, you can choose to enable the script on all pages, specific URL patterns, categories, or tags.
-
What is the Site Domain setting for?
-
Filter lists sometimes block a script host for one publisher’s site specifically,
rather than for every site using it. Sending your domain with the script source
request lets Ad Unblock move just your site onto its own script host when that
happens, instead of rotating every site onto a new one.It is detected automatically from your site address, so there is normally
nothing to change. Left blank, it keeps following your site address, so it stays
correct if you ever move the site. Fill it in only if Ad Unblock asks you to use
a specific domain. -
Does it work with caching and performance plugins?
-
The script tag is printed with
data-cfasync="false"andnowprocket, which
exclude it from Cloudflare Rocket Loader and WP Rocket’s Delay JavaScript
Execution. Ad recovery has to run before your ad code, so the tag must not be
deferred, combined or rewritten.Two options still need a manual exclusion, because neither honours an attribute:
- WP Rocket — Load JavaScript deferred: add your Ad Unblock script URL to
its Excluded JavaScript Files list. - LiteSpeed Cache, Autoptimize, W3 Total Cache, SG Optimizer, Perfmatters:
add the URL to their JS exclusion lists, covering combine, defer and delay.
The script URL is the one in the
<script>tag the plugin prints in your
page’s<head>— view source to copy it. It changes when we rotate script
hosts, so re-check any exclusion list you pasted it into. - WP Rocket — Load JavaScript deferred: add your Ad Unblock script URL to
-
Does this plugin slow down my website?
-
No, the plugin is designed to be lightweight and efficient. It uses caching to minimize API requests and loads the script asynchronously to avoid affecting page load times.
Pritaksoj
There are no reviews for this plugin.
Kontribuantoj k. programistoj
“Ad Unblock” estas liberkoda programo. La sekvaj homoj kontribuis al la kromprogramo.
Kontribuantoj“Ad Unblock” has been translated into 1 locale. Thank you to the translators for their contributions.
Traduki “Ad Unblock” en vian lingvon.
Ĉu interesita en programado?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
Ŝanĝprotokolo
1.2.0
- Connect your Ad Unblock account from the settings page: log in at ad-unblock.com, confirm your site, and the plugin saves your Account ID and adds the site to your account. Entering an Account ID yourself still works.
- Check verification from the settings page. It also runs by itself once after you connect or save an Account ID.
- Replaced the Cache Status box with instructions for clearing your page cache, the usual reason a site is set up but not recovering ads.
- The settings page now says when the script sources cannot be loaded, and why a site in a subdirectory, or with its home page left out of “Enable On Pages”, is not verified yet.
- Fixed URL patterns in “Enable On Pages”, which did not match any page. If you have patterns saved, the script now runs on the pages they name.
- Uninstalling now also removes the data added in this version and the cached script sources.
1.1.7
- Tested compatibility with WordPress 7.2
1.1.6
- Added a Site Domain setting, auto-detected from your site address, sent with the script source request so Ad Unblock can serve this site its own script host when a filter list blocks the shared one.
- The cached script sources are now tied to the request that produced them, so changing the domain or API endpoint refreshes them instead of serving the previous list.
1.1.5
- The script tag now carries
data-cfasync="false"andnowprocket, excluding it from Cloudflare Rocket Loader and WP Rocket’s Delay JavaScript Execution. - The tag is printed at the very top of
<head>instead of after the stylesheets, so recovery loads ahead of your ad code. - Fixed the tag loading from the footer on WordPress older than 6.3.
- Tested compatibility with WordPress 7.1
1.1.4
- Fix potential date/time display issue.
- Tested compatibility with WordPress 7.0
1.1.3
- Renamed “Verification Code” to “Account ID” in the settings UI
- Updated onboarding steps: register get Account ID enable plugin add site in dashboard
1.1.2
- Added custom API endpoint option with toggle to use default or custom URL
1.1.1
- Update server side API URL
1.1.0
- Fix an issue that cached resource is not refreshed properly when external cache object is enabled
1.0.6
- Improved cache management
1.0.5
- Fix version issue
1.0.4
- Lazy load categories and tags selection
- Optimize page settings UI
1.0.3
- Updated script back to asynchronous.
1.0.2
- Updated script to be synchronous. It won’t affect site speed since the script itself is behind async functions.
1.0.1
- Remove verification code from script URL query param to improve cache performance
- Add verification code as a meta tag in header
1.0.0
- Initial release
- Added logo and “AdUnblock” text to admin interface
- Improved admin page styling for better user experience
- Added helpful links to support and documentation

