=== WTB Firewall ===
Contributors: wtbplugins
Tags: firewall, security, waf, brute force protection, ip blocking, country blocking, wordpress security, login protection, bot blocking, proxy support
Requires at least: 6.0
Tested up to: 7.0
Stable tag: 1.1.1
Requires PHP: 8.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Easy to use Firewall for securing your site. IP blocking, geo blocking, brute-force protection and rate limiting.

== Description ==

WTB Firewall is a lightweight but powerful WordPress firewall plugin designed to help you protect your site from unwanted visitors, brute-force attacks and malicious traffic.

The plugin allows you to define clear access rules, automatically block suspicious behaviour, and correctly detect real visitor IP addresses even when your site is behind a proxy or CDN.

= Core Features =

* Manual IP allow and block rules
* Country-based access control
* Automatic blocking after repeated authentication failures
* Built-in rate limiting to protect your site from excessive requests and abuse
* 404 monitoring to detect and block traffic generating repeated missing-page errors
* Proxy support with trusted header detection
* Lightweight design with minimal performance impact
* Clean WordPress-native admin interface

= Why use WTB Firewall? =

Many WordPress security plugins include dozens of features that add complexity and overhead. WTB Firewall focuses on essential firewall functionality so you can:

* Stop brute-force login attempts
* Restrict access from unwanted regions
* Block abusive visitors quickly
* Ensure accurate IP detection behind proxies or CDNs
* Keep your site fast while improving security

= Designed for Performance =

WTB Firewall is built with performance and reliability in mind. Rules are processed efficiently, unnecessary background tasks are avoided, and the plugin integrates cleanly with WordPress without slowing down your site.


== Installation ==

1. Upload the plugin files to the /wp-content/plugins/wtb-firewall directory, or install the plugin through the WordPress plugins screen.
2. Activate the plugin through the Plugins screen in WordPress.
3. Open the firewall settings from the WordPress admin menu.
4. Review the included quickstart guide to configure the firewall safely and correctly for your setup.

== Frequently Asked Questions ==

= Does this plugin slow down my site? =
No. WTB Firewall is designed to be lightweight and focuses only on essential firewall functionality. It avoids heavy scans, background tasks and unnecessary processing.

= Can I block specific IP addresses? =
Yes. You can manually allow or block individual IP addresses directly from the plugin settings.

= Can I block visitors from specific countries? =
Yes. The plugin supports country-based access rules so you can restrict or allow traffic from selected regions.

= Does the plugin protect against brute-force login attacks? =
Yes. WTB Firewall can automatically block visitors who fail authentication too many times within a defined period.

= Will this work if my site is behind Cloudflare or another CDN? =
Yes. The plugin supports proxies. It can detect real visitor IP addresses using trusted headers when your site is behind services like Cloudflare or load balancers.

= Can users fake their IP address through headers? =
The plugin includes proxy handling logic and trusted header settings to help prevent IP spoofing and ensure accurate detection when proxies are used.

= Is this a full security suite like some other plugins? =
No. WTB Firewall focuses specifically on firewall functionality. It does not include malware scanning or file integrity checks, which keeps it lightweight and efficient.

= Where can I get support? =
You can ask questions in the WordPress.org support forum for this plugin. A quickstart guide is included to help you get started, and full documentation will be published on our website in the near future.

== Screenshots ==

1. Easily block or allow connections from any country.
2. Automatic blocking configuration for repeated authentication failures.
3. Manual IP allow and block configuration screen.

== Changelog ==

= 1.1.1 =
* Moved generating country rules to a wp-cron job.

= 1.1 =
* Added rate limiting to restrict excessive requests from a single IP.
* Added 404 monitoring to detect and block IPs generating excessive 404 errors.

= 1.0.1 =
* Minor improvements to WAF script


= 1.0.0 =
* Initial release
