Block IPs with htaccess
This is an easy way to block spambots or undesired visitors from your website, using nothing only than the .htaccess file.
Also, you can use this in reverse to allow only specific IPs to visit your website (e.g. an Intranet site)
by randompixels 2 years, 4 months ago and tagged with: htaccess htaccess-allow htaccess-block
1 2 3 4 5 6 7 8 9 10 |
order allow,denydeny from 213.233.43.31deny from 64.41.63.194deny from 80.86.94.221allow from all # this also works for IP classes as well order allow,denydeny from 213.233.deny from 193.133.10.allow from all # reversed, it can grant access only to some IPs' or IP Classes order deny,allow allow from 192.168. allow from 127.0.0.1deny from all |

Currently 0 comments