Saturday 8 November 2014

Restrict web site access to specific IP addresses in Apache

order deny,allow
deny from all
allow from 111.222.333.444

Put the above code in the .htaccess in the root. You can add more "allow from" lines for more ip addresses.

http://stackoverflow.com/questions/4400154/htaccess-deny-all-allow-only-one-ip

No comments:

Post a Comment