Forum Moderators: phranque

Message Too Old, No Replies

Protect .htaccess from public view

         

Dad7732

8:14 pm on May 16, 2005 (gmt 0)



Running a PHPNuke site with "Protector" anti-hack module. I have a deny list inside a .htaccess file that is read by the module. However, the general public can read this .htaccess file, like:

[mydomain.com...]

How do I protect the reading of the file and still be able to have it read by the protector app?

Thanks

jdMorgan

8:52 pm on May 16, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Dad7732,

Welcome to WebmasterWorld!

You can do this using mod_access or mod_rewrite; Remember that .htaccess refers to "HTTP Access" and not to internal server operations. It is unlikey that "protector" uses HTTP transactions rather than internal file accesses, so nothing you do in .htaccess should affect it.

Jim