Blocking bots and other unwanted visitors
At some point, you may want to block visitors from certain IP addresses from accessing your site. You can do this by creating a .htaccess file and inserting the following code:
order allow,deny
deny from 111.11.111.111
deny from 222.22.222.222
allow from all
Of course, replace 111.11.111.111 and 222.22.222.222 with the real IP addresses that you want to block.
Leave a Reply