| 开发者 | adunblock |
|---|---|
| 更新时间 | 2026年11月26日 17:29 |
| PHP版本: | 7.0 及以上 |
| WordPress版本: | 7.2 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
/wp-content/plugins/ad-unblock directory, or install the plugin through the WordPress plugins screen directly.Yes, you need to register at ad-unblock.com to get an 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.
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.
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.
Yes, you can choose to enable the script on all pages, specific URL patterns, categories, or tags.
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.
The script tag is printed with data-cfasync="false" and nowprocket, 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:
<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.
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.
data-cfasync="false" and nowprocket, excluding it from Cloudflare Rocket Loader and WP Rocket's Delay JavaScript Execution.<head> instead of after the stylesheets, so recovery loads ahead of your ad code.