VarjuOrg

Linux / Windows – what’s the difference…

.htaccess

Few pointers to use .htaccess files:

order deny,allow
deny from all

Will deny all access to certain folder

 

<Files "index.php">
deny from all
</Files>

Will deny access to one file

 

<Files "index.php">
order deny,allow
deny from all
allow from 192.192.192.192 192.192.192.192
</Files>

Will allow access wor 2 different ip’s to file – all others will be blocked

NB! If however you should encounter collision of multiple demands: Satisfy any and deny all in same access file, add following to the end:
Satisfy all

More niceness@
http://www.askapache.com/htaccess/security-with-htaccess.html

http://perishablepress.com/stupid-htaccess-tricks/

http://helpdesk.princeton.edu/kb/display.plx?ID=8707#computers

Leave a Reply

Your email address will not be published. Required fields are marked *