Save up to 25% on pro security plugins w/ our Security Bundle »
Web Dev + WordPress + Security

BBQ Firewall – Count Blocked Requests

BBQ Firewall BBQ Firewall is built to be powerful, lightweight, fast and flexible. It’s code base is kept super lean, leaving extra functionality out of core while supporting new features via simple addons. For example, this tutorial shows how to use an addon to display the total number of blocked HTTP requests on the plugin settings page. This can help you get a basic idea of the plugin’s effectiveness.

Note: This tutorial works with the free version of BBQ Firewall. The pro version has its own settings page where block counts are displayed for each firewall rule.

How it works

To display of the total number of blocked requests on the BBQ settings screen, download and install the Block Count plugin. Activate and done. Then visit the BBQ settings to view the current blocked count anytime.


Download the free BBQ Block Count plugin:

Download BBQ Block CountVersion 1.0 ( 582 bytes ZIP )

Feedback? Questions? Send them via my contact form.


To enable the block-count plugin, simply download and unzip the file, bbq-block-count.php. Then install as-is and activate just like any other WordPress plugin. When complete, the plugin path will be /wp-content/plugins/bbq-block-count.php, so the plugin file does not have its own directory.

OR, if you would rather install the plugin file in its own directory, like /wp-content/plugins/bbq-block-count/bbq-block-count.php, that’s fine too. But you will need to add a code snippet to your WordPress site:

function bbq_count_plugin_path($path) {
	return 'bbq-block-count/bbq-block-count.php';
add_filter('bbq_count_plugin_path', 'bbq_count_plugin_path');

The snippet can be added via theme functions.php or simple plugin. Here is a guide that explains either method.

More Addons

Here are some available addons for BBQ Firewall (free version).

Jeff Starr
About the Author
Jeff Starr = Web Developer. Book Author. Secretly Important.
The Tao of WordPress: Master the art of WordPress.
Perishable Press is operated by Jeff Starr, a professional web developer and book author with two decades of experience. Here you will find posts about web development, WordPress, security, and more »
Banhammer: Protect your WordPress site against threats.
Fall season almost here :)
My greatest skill on social media is the ability to simply ignore 98% and keep scrolling without interacting.
Enjoying this summer, getting some great positive energy. Refreshing and inspiring.
☀️ Pro plugin giveaway! Enter to win 1 of 4 lifetime licenses for our WordPress security plugins, including 10-site Security Bundle!
There is no end to what humans can achieve when they work together.
Excellent (and free) tool to test your site's SSL configuration.
Plugin updates! All of our free and pro plugins ready for WordPress 6.2.
Get news, updates, deals & tips via email.
Email kept private. Easy unsubscribe anytime.