AWWWW.WAHWAH Posted July 9, 2010 Posted July 9, 2010 I blocked an IP of a user in my htaccess file. When he goes to our site and we track him he pulls up the www.ourdomain.com/styles.css file and we click on it and it shows up. How do we protect that file. It doesn't show anything sensitive but we'd like that file to be blocked. The file permission is set at 644. TIA>
chadcloman Posted July 9, 2010 Posted July 9, 2010 Do not block that file. It must be readable by all web browsers, or you'll lose the formatting information for your website. This is not a "secret" file like .htaccess that must be protected. In fact, every visitor to your store should legitimately request that file. Check out Chad's News.
MrPhil Posted July 9, 2010 Posted July 9, 2010 If you blocked a bad visitor by IP address in your .htaccess file, he shouldn't be able to do or see anything on your site. Either you didn't do it right, or you restricted the block to certain files (not including .css files), or he's coming in on a different IP address than the one you blocked. Is he definitely blocked on other files? Are you on a Windows/IIS server by any chance? It doesn't use .htaccess and ignores that file.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.