Login Register






Useful Snippets for .htaccess filter_list
Author
Message
RE: Useful Snippets for .htaccess #6
Nicely done. I have another useful tip to chime in.

You can restrict access to a particular folder according to IP address by adding:

Code:
order deny,allow allow from 10.0.1.2 deny from all

Needless to say, you must have a static IP address in order for this to be effective.

As an example, Wordpress users might do this to prevent anybody but them from accessing the admin dashboard.

Similarly, you can also ban arbitrary IP's by using:

Code:
<Limit GET POST> order allow,deny deny from 10.0.20.3 deny from 10.0.20.4 deny from 10.0.20.5 # etc... allow from all </Limit>

Reply





Messages In This Thread
Useful Snippets for .htaccess - by Megamente - 07-31-2013, 10:03 PM