.htaccess blocking

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

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.


Re: .htaccess blocking

KoRnDragon wrote:

Quoted text here. Click to load it

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

Re: .htaccess blocking

Quoted text here. Click to load it

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-live-bookmarks.html

Re: .htaccess blocking

__/ [ KoRnDragon ] on Monday 13 March 2006 06:57 \__

Quoted text here. Click to load it

You could use a fine search engine with the conventional terminology which in
this case is "HotLink". See, for example:



http://www.splintered.co.uk/experiments/52 /

The 'meat' of it all:

RewriteEngine On
RewriteCond % !^http://www\.example\.org/
RewriteCond % !^$
RewriteRule \.(jpe?g|gif|bmp|png)$ - [F]

Hope it helps,


Site Timeline