Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Locking the picture directory


Guest

Recommended Posts

Does Anyone know how can lock the picture directory and still have the pics show up on my site.

 

I don't think that is possible

Wade Morris

Amarillo, Texas

 

Before you do any changes on your site you need to do BACKUP! BACKUP!

Link to comment
Share on other sites

most simple solution is to add a .htaccess file to your images directory

RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://YOURSITE.COM/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://WWW.YOURSITE.COM/.*$ [NC]
ReWriteRule .*\.(gif|jpg)$ - [N,F,L]

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...