How we can block users by ip by htaccess file

 

Little trick code for those who are web devleper and who have access to create htacess file to server.

code follows below:

order allow,deny
deny from 192.168.103.78
deny from 95.32.66.1
allow from all

 
and put there

Easy htaccess tutorials