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.1 ( 773 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 = Fullstack Developer. Book Author. Teacher. Human Being.
Blackhole Pro: Trap bad bots in a virtual black hole.
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 »
Banhammer: Protect your WordPress site against threats.
Thoughts
I disabled AI in Google search results. It was making me lazy.
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. Also: “The Web” is not a valid answer.
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
Newsletter
Get news, updates, deals & tips via email.
Email kept private. Easy unsubscribe anytime.