Here we learn how to block IP address in PHP. Now here is another example of blocking the IP address for accessing the website by .htaccess file.
1
2
3
4
5
6
|
order allow,deny
deny from 192.168.1.50
deny from 192.168.1.51
deny from 192.168.1.52
deny from 192.168.1.53
allow from all
|