Security 46 Recently updated 1 min read

How to Ban Any IP Address via htaccess

How to Ban Any IP Address via htaccess

If you want to block an IP address, you can add the following lines to your htaccess file:

order allow,deny
deny from IP-ADDRESS
allow from all

Replace IP-ADDRESS with the IP you want to block.

Related articles

Discussion

Loading the discussion…