__/ [ KoRnDragon ] on Monday 13 March 2006 06:57 \__
> I'm trying to block access to all files (inside a specific folder)
> being viewed outside of my site.
>
> Meaning if a user types in the image's address it will redirect to a
> page but still allow my site to display it.
>
> Thanks.
You could use a fine search engine with the conventional terminology which in
this case is "HotLink". See, for example:
http://altlab.com/htaccess_tutorial.html
OR
http://www.splintered.co.uk/experiments/52/
The 'meat' of it all:
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://www\.example\.org/
RewriteCond %{HTTP_REFERER} !^$
RewriteRule \.(jpe?g|gif|bmp|png)$ - [F]
Hope it helps,
Roy
|
|