garydt Posted July 17, 2007 Share Posted July 17, 2007 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 More sharing options...
per1os Posted July 17, 2007 Share Posted July 17, 2007 You may get a better response posting this in the htaccess forum... Link to comment https://forums.phpfreaks.com/topic/60377-htaccess-file/#findComment-300368 Share on other sites More sharing options...
steviewdr Posted July 18, 2007 Share Posted July 18, 2007 <LIMIT GET PUT POST> means that apache cant even access your files! What do you want to stop hackers doing? hot linking your images? -steve Link to comment https://forums.phpfreaks.com/topic/60377-htaccess-file/#findComment-301144 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.