GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Hiding htaccess? (https://gfy.com/showthread.php?t=107981)

cafeaulait 02-13-2003 02:22 PM

Hiding htaccess?
 
When I browse to my .htaccess file:

http://members.mysite.com/.htaccess

Explorer asks me if I would like to open or download it, and then lets me?! Obvioulsy thus exposing the location of the password file.

Its CHMOD to 644 and I got the following code in it:

<Files .*>
order allow,deny
deny from all
</Files>

How do I stop this from happening????

extreme 02-13-2003 02:31 PM

Let's see how badly mangled this will be:

&lt;Files ~ "^\.ht"&gt;
Order allow,deny
Deny from all
&lt;/Files&gt;

cafeaulait 02-13-2003 02:33 PM

Yeah, that's what I've already got in - I tried to write that in the post above but it got parsed I think.

Anything else I'm missing?

Jeffery 02-13-2003 02:57 PM

Quote:

Originally posted by extreme
Let's see how badly mangled this will be:

&lt;Files ~ "^\.ht"&gt;
Order allow,deny
Deny from all
&lt;/Files&gt;

That should be all you need. In fact, I can't believe it wasn't already in your httpd.conf

The server does have AccessFileName set to .htaccess right?


All times are GMT -7. The time now is 03:07 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123