Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

protect stylesheet


nicemanever

Recommended Posts

hello guys,

 

when one types the url like http:www.name.com\stylesheet.css

my stylesheet.css displays in the browser.is there any way to protect this files

i have tried using the permissions but i have failed.

also how can i redirect to the index page if one tries to type this kind of url.

i think u guys got the answer so plz share it with me.

 

regards.

Link to comment
Share on other sites

I would say try denying access to it through .htaccess, but I'm unsure as to whether or not it will still allow your site to access it.

 

If you want to give it a shot, add this to the .htaccess in your /html/ dir:

 

<Files stylesheet.css>

order allow,deny

deny from all

</Files>

 

If your site fails to run correctly after this change, take it back out. I don't see why looking at CSS is such a big deal to begin with, though. :huh:

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...