How to block IPs from your website with .htaccess

apache.gif

Insert a line similar to the one below into your .htaccess file in your web server’s document root:

deny from 10.205.111.43

And all connections from that IP will no longer be able to view your site.

Related Posts

Comments are closed.