Fall Sale! Code FALL2024 takes 25% OFF our Pro Plugins & Books »
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 = Web Developer. Book Author. Secretly Important.
Banhammer: Protect your WordPress site against threats.
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 »
GA Pro: Add Google Analytics to WordPress like a pro.
Thoughts
Went out walking today and soaked up some sunshine. It felt good.
I have an original box/packaging for 2010 iMac if anyone wants it free let me know.
Always ask AI to cite its sources.
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.
Newsletter
Get news, updates, deals & tips via email.
Email kept private. Easy unsubscribe anytime.