How to block users from accessing your site based on their IP address

Written by Jay
Blocking users by IP address is pretty simple with .htaccess. So here it is the example: Order allow, deny Deny from 192.168.0.10 Deny from 212.155. Deny from 1.2.3.4  5.6.7.8 127.0.0.1 Allow from all Let’s take a look at the code line by line: The first line “Order allow, deny” tells the web server the “Order”  in which the Allow and Deny directive will be evaluated. It simply says: Give access to all hosts that are not present in ... Continue reading
May
25