I've figured out how to hotlink protect, but

How can I stop them from just going to the root directory and going through the folders until they find the file, and downloading it that way?

What im looking to do I guess is, unless the referrer is a certain site, bar the entry into an entire directory. Is this possible?

Right now my htaccess looks like this:

[color=#CC0000]
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://(www.)?forums.\site1.net/ [NC]
RewriteCond %{HTTP_REFERER} !^http://(www.)?site2.ca/ [NC]
RewriteCond %{HTTP_REFERER} !^$
RewriteRule .(jpe?g|gif|png)$ - [F]
[/color]

Ok, I managed to find it on my own. Command “Options -Indexes” in the htaccess does it.

Now, any way to stop them from putting the whole adress into an adress bar and direct linking?

Put the following in an .htaccess file in the document root or the top most directory in which you want directory indexing disabled:

Options -IndexesThus when one visits http://example.com/images/ and there is no index.* file in ~/example.com/images, they will get a forbidden message.

Or of course just put an index.* file in each and every directory.

Just update the regular expression to check if the end of the URL is a slash in addition to image file extensions. Beware this won’t work in the document root, as the slash is stripped, ie

http://example.com/ = “” (null string)
http://example.com/images/ = “images/”

:cool: Perl / MySQL / HTML+CSS

Remove

:cool: Perl / MySQL / HTML+CSS