Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

hide styles.css file


AWWWW.WAHWAH

Recommended Posts

Posted

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>

Posted

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.

Posted

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.

Archived

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

×
×
  • Create New...