Forum Moderators: phranque

Message Too Old, No Replies

Block user from .htaccess

         

rjwmotor

1:59 am on Jan 24, 2010 (gmt 0)

10+ Year Member



I asked this along time ago and Jim supplied the code below on how to block users from pulling up my .htaccess file:

<Files ~ "\.(ini¦dat¦log¦htaccess¦db)$">
deny from all
</Files>

I totally forgot about this until I started doing some major upgrades and realized I have yet to get this code to work. I put the code in and flushed my browser and I can still get it to display.

What am I doing wrong?

g1smd

2:20 am on Jan 24, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Change the broken pipes to solid pipes.

jdMorgan

2:40 am on Jan 24, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Also make sure that you have an "Order" directive in the file, and that if it is set to "Order Deny,Allow" that you do not also have an "Allow from all" in the file.

Jim