Forum Moderators: phranque
thanks
- Ryan
Have you thought of getting the web page to set a (very fast expiring) cookie, and have the php script that returns the image, check that the cookie is there? Or I guess you could call the image-returning-php script with an encoded timestamp, but you would need to sort out all of the page expiring, (and ensure proxies aren't caching your page/image) etc to get this to work
Prevents viewing of directory all files in an index. Doesn't prevent viewing the files themselves:
IndexIgnore *
Prevents Hot-Linking:
RewriteEngine on
RewriteCond %{HTTP_REFERER}!^$
RewriteCond %{HTTP_REFERER}!^http://(www\.)?mydomain.com/.*$ [NC]
RewriteRule \.(gif¦jpg)$ - [F]
My persoanl favorite, serves up a replacement image for hot-linked files:
RewriteEngine on
RewriteCond %{HTTP_REFERER}!^$
RewriteCond %{HTTP_REFERER}!^http://(www\.)?mydomain.com/.*$ [NC]
RewriteRule \.(gif¦jpg)$ [mydomain.com...] [R,L]
LOL, just checked out the above mentioned URL, has a pr of 8.