The AdCobalt WordPress plugin

3 min readUpdated on

Install the plugin, paste your install key, and let it add the code to every page. On Pro and Plus it also serves your Maximum protection route.

On this page
  1. What the plugin does
  2. Install it in four steps
  3. Maximum protection (Pro and Plus)
  4. Status messages
  5. Removing the plugin
  6. Caching plugins

On WordPress, the AdCobalt plugin is the easiest way to install. It works on every plan.

What the plugin does

  • It adds your AdCobalt code to the <head> of every page. You don't need a header and footer plugin or to edit your theme.
  • It keeps caching and optimisation plugins from combining, delaying or minifying the code: WP Rocket, LiteSpeed Cache, W3 Total Cache, WP Super Cache, Autoptimize, SiteGround Optimizer and Jetpack Boost.
  • On Pro and Plus it also serves your Maximum protection route on your own domain, so AdCobalt keeps working when our normal address is blocked for a visitor. "Always use my domain" follows the switch in your dashboard.
  • It asks AdCobalt for your settings at most once an hour and keeps the last answer. If AdCobalt can't be reached, your website is never affected: pages load as usual and no notice is shown.

Install it in four steps

  1. In the dashboard, open Websites, choose your website and go to the Install tab. Open WordPress Plugin and click Download Plugin (.zip).
  2. In WordPress, go to Plugins, Add New Plugin, Upload Plugin. Choose the zip file, click Install Now and then Activate.
  3. Back in the dashboard, click Create install key and copy the key. In WordPress, open Settings, AdCobalt, paste the key and click Save Changes. We show the key only once; it stays on your server and visitors never see it.
  4. The plugin's settings page now says Connected. Open any page of your website once and the dashboard shows the website as installed.

Remove any AdCobalt snippet you added by hand before (in a header plugin or your theme), so the code isn't on the page twice.

Maximum protection (Pro and Plus)

There is nothing extra to set up: the plugin reads your route path from AdCobalt and answers it on your own domain. To check it, click Test My Route on the plugin's settings page. AdCobalt then calls your route from outside, the way a visitor's browser would, and tells you in plain words whether it works or what is wrong. The same test is in the dashboard under Maximum Protection Setup, step 3.

The route follows the same safety rules as our other route kits: your install key is only sent from your server to AdCobalt, cookies and logins are never forwarded, no cookies come back, visitors can't fake their address, and the script is cached for at most an hour in signed files outside your website.

Visitor address: leave From the connection selected unless every request to your site goes through Cloudflare or your own proxy. Only then choose the matching option; otherwise visitors could fake their address.

WordPress in a sub-folder: the route needs WordPress at the root of your domain (for example example.com, not example.com/blog). If yours is in a sub-folder, use the PHP file or another route kit for Maximum protection; the plugin still adds the code to your pages.

Status messages

  • Connected: everything works.
  • The install key is not valid: the key was replaced or mistyped. Create a new one in the dashboard and paste it.
  • This website isn't one of the websites in your AdCobalt account: add the website on Websites first, then click Check Again.
  • AdCobalt could not be reached: a short interruption on our side or your host's. Your website is not affected; the plugin tries again by itself.

Removing the plugin

Deactivate and delete it under Plugins. Deleting removes everything it stored: your key, its settings, the cached files and its scheduled check. It adds no rewrite rules, so none are left behind.

Caching plugins

After installing, clear your caching plugin's cache once so visitors get pages with the code. More tips: caching plugins and CDNs.

Still stuck? Sign in and use Help & Support: it checks your setup and you can write to us from there.

Get help in your dashboard