Advertising is a primary source of revenue for many blogs. However, many visitors rely on ad blockers, preventing ads from loading and reducing potential ad revenue. To address this issue, the Probha Blogger Template features a built-in Anti AdBlock Detector Plugin. This tool detects active ad blockers in a visitor's browser and displays a customizable warning notification. Everything is controlled directly through the Blogger Layout interface without requiring manual edits to your theme's XML code.
Where to Find the AdBlock Plugin
The Anti AdBlock Plugin comes integrated directly into the Probha Template architecture. No third-party script installation is necessary. To access its configuration settings:
- Go to your Blogger Dashboard.
- Click on the Layout tab.
- Scroll to the Plugins section.
- Open the HTML/JavaScript gadget named AdBlock.
Configuring the Anti AdBlock Plugin
The plugin utilizes a JSON configuration object located inside the AdBlock gadget. You can customize the plugin's behavior, toggle enforcement, and adjust reader notifications by editing these parameters.
{
"status": true,
"title": "AdBlock Detected",
"text": "Please disable your ad blocker to access this content. Thank you!",
"closable": true,
"btn": {
"ok": "Okay"
}
}Parameter Breakdown
status: Master toggle to enable (true) or disable (false) the plugin.title: Heading text displayed at the top of the warning popup.text: Detailed warning message explaining why the reader should turn off their ad blocker.closable: Determines whether readers can dismiss the overlay (true) or if disabling the ad blocker is strictly required (false).btn.ok: Label text displayed on the acknowledgment button.
Enabling or Disabling the Detector
To enable the Anti AdBlock detector across your site, ensure the status property is set to true:
"status": trueIf you prefer to disable the detection script, set the value to false:
"status": falseYou can also temporarily hide or turn off the AdBlock gadget within the Blogger Layout manager to disable the feature.
Configuring Overlay Dismissal (closable)
The closable property determines how strictly ad-blocking rules are enforced on your site.
Allowing visitors to dismiss the message and read content:
"closable": trueRequiring visitors to disable their ad blocker before viewing page content:
"closable": falseWhen set to false, the warning popup cannot be dismissed, blocking page access until the ad blocker is turned off for your site.
Conclusion
The built-in Anti AdBlock Detector Plugin in the Probha Blogger Template offers a simple way to protect your ad revenue and inform readers about whitelist requirements. With clear control over popup titles, descriptions, action buttons, and strictness levels (closable), you can customize ad blocker detection directly from your Blogger Layout section in minutes.
