What Ad Inserter does on your site
Ad Inserter adds whatever code you give it to your pages: Google AdSense or Ad Manager ads, banners, tracking scripts, CSS or PHP. Each piece of code lives in a numbered "block" under Settings > Ad Inserter, with an automatic position: before or after the content or a paragraph, between posts on a blog page, between comments, next to an element matched by a CSS selector, or at a do_action() hook in your theme. Widgets, Gutenberg blocks and the [adinserter block="1"] shortcode cover manual placement.
The free version adds ad rotation, device detection, include and exclude lists (categories, URLs, cookies, referrers), an ads.txt editor, separate ads for AMP pages, header and footer code, ad blocker detection and visual debugging tools.
The developer, Igor Funa (Spacetime account on wordpress.org), sells Ad Inserter Pro, a separate plugin that replaces the free one and keeps its settings. Pro adds impression and click statistics, PDF reports, A/B testing, frequency capping, click fraud protection, geotargeting, scheduling, lazy loading, sticky ads and email support.
Which sites Ad Inserter is a good fit for
Ad Inserter is built for publishers who earn from ads and want to decide exactly where they show up:
- AdSense-funded blogs: an ad after the second paragraph, away from images, missing from certain categories, all without touching the theme.
- Sites that sell their ad slots: rotating banners, an "Advertisement" label above blocks, page-by-page exceptions.
- Sites behind a page cache: rotation and device detection can run in the browser, after the page has been cached.
- Several ad networks at once: AdSense, Ad Manager, Media.net, Amazon or in-house code can live side by side, each in its own block.
It is the wrong tool if all you need is to paste a tracking tag into the header: a snippet plugin such as WPCode is enough. If AdSense Auto ads are all you want, Site Kit by Google can also do the job.
Ad Inserter strengths and limitations
Strengths
- Precise placement, for free. Paragraphs, images, comments, CSS selectors and theme hooks are all available without paying.
- Cache friendly. Rotation and device detection can run in the browser, in plain JavaScript with no jQuery.
- Consent support. Blocks can wait for a consent cookie or the IAB TCF 2.0 API before inserting any ad code.
- Visual debugging. From the toolbar you can see inserted blocks, available positions and the processing log.
- Affordable Pro. A Pro license starts at €20 for 2 sites, and the plugin keeps working after the year of updates.
Limitations
- A dense interface. Every setting sits on a single page full of tabs and buttons, and some translations are rough.
- No statistics in the free version. Impressions, clicks, A/B tests, scheduling and geotargeting require Pro.
- Many vulnerabilities in 2026. About fifteen CVEs published this year, mostly XSS, mean you need to follow updates closely.
- Promotions on the settings page. The developer’s comparison lists an ad-free settings page as a Pro feature.
The settings we recommend for Ad Inserter
General settings open from the gear-shaped tab (General Settings) in Settings > Ad Inserter. The labels below are those of the plugin’s English interface.
| Setting | Recommended value | Why |
|---|---|---|
| Remote debugging Settings > Ad Inserter > General Settings > Debugging | Disabled (default) | When enabled, it opens the debugging tools to logged-out visitors. Keep it for support requests only. |
| Dynamic blocks General Settings > General > Frontend | Client-side insert (default) if a caching plugin is active | Rotation, devices and consent cookies are evaluated in the browser, so they stay correct despite the cache. |
| Plugin usage tracking General Settings > General > Administration | Disabled | When enabled, it sends the developer your site URL, your plugin list and the server IP address. |
| Min. user role for ind. exceptions editing Same screen | Administrator (default) | Only an administrator can then turn off ads on a post from the editor. |
| Access for each custom page General Settings > General > Custom pages | Administrator (default), or Editor at most | These pages edit fields reused in blocks; opened to every account, they made CVE-2026-81655 possible. |
| Process PHP code in block PHP button of each numbered block | Off, except for blocks that need it | A PHP block runs on the server on every page view: one error breaks the page. |
| Use external scripts General Settings > Ad Blocking | Disabled if you wait for visitor consent | That is the developer’s own advice in this case. |
| Disable caching for logged in administrators General Settings > General > Administration | Enabled (default) | While logged in, you see the real effect of your blocks (WP Super Cache, W3 Total Cache, WP Rocket). |
- Open a post while logged in as an administrator and turn on "Label Blocks" in the Ad Inserter toolbar menu: each inserted block should appear framed, in the right position.
- Log out, clear the cache and reload the page: ads should stay in the same spots.
- Decline cookies in your consent banner: no block that depends on consent should appear.
- In Plugins, check that the installed version is at least 2.8.20.
Ad Inserter security: a busy year of fixes in 2026
Ad Inserter prints dynamic content (search terms, titles, referrers) on public pages, which explains a long run of reflected and stored XSS vulnerabilities, plus information leaks through its debugging features. The developer takes reports through the Patchstack disclosure program. The cases most worth knowing:
- CVE-2023-4668, versions up to 2.7.30: without an account, the
ai-debug-processing-feURL parameter revealed installed plugins, the theme, the WordPress version and server paths (CVSS 5.3). - CVE-2026-81655, versions 2.8.12 to 2.8.18, fixed in 2.8.19: if a global custom fields page was open to every account, a mere subscriber could save code that was then run as PHP or shown to visitors.
- CVE-2026-102905, fixed in 2.8.20: arbitrary shortcode execution without an account through the search parameter, when a block shown on search pages uses a dynamic tag such as
{title}(CVSS 6.5). - CVE-2026-105077, fixed in 2.8.20: XSS exploitable without an account as soon as a user opens a booby-trapped link (CVSS 7.1).
Turn on automatic updates for Ad Inserter in Plugins (see our guide to automatic plugin updates), limit the accounts that can write on the site (see roles and least privilege) and get plugin vulnerability alerts. WP Feint Pro hides the ad-inserter folder in file URLs and the ai ID on its tags, which makes the plugin harder to spot for bots targeting these flaws without replacing the update; the code-block and ai-* classes on blocks stay visible in the page code.
What WP Feint hides for Ad Inserter
Pro Handled by WP Feint Pro only
The free version does not know the traces specific to Ad Inserter: without Pro, only generator tags are removed, as for any plugin.
Free version
Handled by WP Feint Pro only
With Pro
- folder name
- tag IDs
Still visible
- CSS classes
code-block, ai-*
These traces stay because the plugin needs them to work (scripts, styles, cookies) or because they come from the server.
Ad Inserter FAQ
Does Ad Inserter add its own ads to my site?
No. According to its documentation, the plugin only inserts the code you configure, plus a few internal scripts for its features. The ads you see come from your ad networks' code.
Why do my AdSense ads show up in places I did not choose?
You are probably using the AdSense Auto ads code: Google then picks the placements, not Ad Inserter. For precise placement, use a regular ad unit code inside a positioned block.
How much does Ad Inserter Pro cost, and what happens after a year?
Licenses cost €20 for 2 sites (your own sites), €30 for 5 sites, €50 for 25 sites and €100 for 100 sites, the last three allowing client sites. After a year, the plugin keeps working, without updates or support until the license is renewed.