How to block any IP Address via dot htaccess rule?

Amrita Basu

Last Update 6 maanden geleden

If you want to block an IP Address, you can add the below lines to your dot htaccess file.


order allow, deny
deny from IP-ADDRESS
allow from all
Replace IP-ADDRESS with the IP you want to block.

Was this article helpful?

0 out of 0 liked this article

Still need help? Message Us