Jump to content

htaccess file


garydt

Recommended Posts

I've  got this in my .htaccess

AuthUserFile /thumbnails/.1970
AuthUserFile /smallpics/.1970
AuthUserFile /uploads/.1970
AuthGroupFile /dev/null
AuthName "Secure Document"
AuthType Basic

<LIMIT GET PUT POST>
require user garyt
</LIMIT>
<Files .htaccess> order allow,deny deny from all </Files>

 

When i uploaded this to the root directory of my website i couldn't access my website. When i put it in the images folders the images wouldn't display on the website. I thought the .htaccess file was supposed to prevent hackers accessing my  folders/files. Am i using it in the right way?

Link to comment
https://forums.phpfreaks.com/topic/60377-htaccess-file/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.