I'm using CSF (ConfigServer Firewall). Can you guys suggest a way to add an IP to the Temporary Deny list from a user's PHP?
I know how to do it with the CSF GUI and by SSH, but I'm hoping to figure out a way to add IPs that try to access certain pages that don't exist (like "wp-login.php"). Some of my hosting clients use Wordpress, though, so I can't block ALL references to it; just from my own personal sites that are much higher in traffic and don't use Wordpress.
I'm currently adding IPs to a database that try to access specific pages, and then pages look up user's IP, compares it to the database, and if it's found they get a Forbidden error. But it would be great to block them at the firewall.
I know how to do it with the CSF GUI and by SSH, but I'm hoping to figure out a way to add IPs that try to access certain pages that don't exist (like "wp-login.php"). Some of my hosting clients use Wordpress, though, so I can't block ALL references to it; just from my own personal sites that are much higher in traffic and don't use Wordpress.
I'm currently adding IPs to a database that try to access specific pages, and then pages look up user's IP, compares it to the database, and if it's found they get a Forbidden error. But it would be great to block them at the firewall.