Firewall/WAF with PHP: Whitelist and blacklist with IP addresses for PHP scripts
Today I would like to publish a short article with some examples how a firewall/WAF can be implemented with PHP. I have created 4 examples including a whitelist, a blacklist, a blacklist with a text file as IP blocklist and an example for the implementation of a mini-WAF. All code examples are designed to be …