Block IP from accessing website using .htaccess
Wednesday, January 10th, 2007To block certain ip address from accessing your website, just create a file with name .htaccess at your root directory with the content below:-
order allow,deny
deny from 192.168.0.1
allow from all
If you want to block multiple ip address using .htaccess simply add one ip address per line as below:-