Super Plugin Sale! Your Choice: BOGO or 30% Off »
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

Download the free BBQ Block Count plugin:

Download BBQ Block CountVersion 1.0 ( 582 bytes ZIP )

Feedback? Questions? Send them via my contact form.

Usage

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).

About the Author
Jeff Starr = Creative thinker. Passionate about free and open Web.
Digging Into WordPress: Take your WordPress skills to the next level.
Welcome
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 »
BBQ Pro: The fastest firewall to protect your WordPress.
Thoughts
All free plugins updated and ready for WP 6.6 dropping next week. Pro plugin updates in the works also complete :)
99% of video thumbnail/previews are pure cringe. Goofy faces = Clickbait.
RIP ICQ
Crazy that we’re almost halfway thru 2024.
I live right next door to the absolute loudest car in town. And the owner loves to drive it.
8G Firewall now out of beta testing, ready for use on production sites.
It's all about that ad revenue baby.
Newsletter
Get news, updates, deals & tips via email.
Email kept private. Easy unsubscribe anytime.