- .htaccess blocking
- Posted by KoRnDragon on March 13th, 2006
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.
- Posted by Toby Inkster on March 13th, 2006
KoRnDragon wrote:
I would strongly recommend against that, as not all browsers send a
Referer header, and some proxies strip them out.
Leave the empty Referer alone, and just redirect requests with non-empty,
outside Referers.
--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact
- Posted by Roy Schestowitz on March 13th, 2006
__/ [ KoRnDragon ] on Monday 13 March 2006 06:57 \__
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
- Posted by John Bokma on March 13th, 2006
Toby Inkster <usenet200603@tobyinkster.co.uk> wrote:
in addition some "security" related software does change it. (blocked by
.....)
--
John Experienced (web) developer: http://castleamber.com/
Firefox RSS: http://johnbokma.com/firefox/rss-and...bookmarks.html


