Welcome to WebmasterWorld Guest from

Forum Moderators: bakedjake

Message Too Old, No Replies

A .htaccess problem on dedicated sever

but no problem on other sites, but shared sever.



9:25 pm on Apr 10, 2003 (gmt 0)

10+ Year Member

I have a website with alot of pictures and about 500.000 unique visitors a month, so I use alot of bandwidth, but I have found out that some other are linking to some of my pictures directly and that suck.

Then I tryed this .htaccess which worked fine on another page, but on a shared hosting.

here is the code
RewriteEngine on
RewriteCond %{HTTP_REFERER}!^$
RewriteCond %{HTTP_REFERER}!^http://www.mydomain.com [NC]
RewriteCond %{HTTP_REFERER}!^http://mydomain.com [NC]
RewriteRule .*\.(jpg¦JPG)$ [mydomain...] [R,L]

but if I upload the site comes with a white site that says forbidden and this is on a dedicated server (linux)

hmm wierd.

can anybody help



10:19 am on Apr 11, 2003 (gmt 0)

WebmasterWorld Administrator brett_tabke is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

A couple of related threads with different versions of the above:



2:09 pm on Apr 11, 2003 (gmt 0)

10+ Year Member

Thanks Brett


2:33 pm on Apr 11, 2003 (gmt 0)

10+ Year Member

Hmm this still dont work I still get this message:

You don't have permission to access / on this server.

Apache/1.3.27 Server at www.mydomain.com Port 80

This I used this
AuthUserFile /dev/null
AuthGroupFile /dev/null

RewriteEngine On

RewriteCond %{HTTP_REFERER}!>http://www.mydomain.com [NC]
RewriteCond %{HTTP_REFERER}!>http://mydomain.com [NC]
RewriteCond %{HTTP_REFERER}!>http://my ip [NC]

RewriteRule /* [mydomain.com...] [R,L]

And I have now tried many different types of .htaccess



10:30 am on Apr 16, 2003 (gmt 0)

10+ Year Member

make sure you have a valid index.(php.html) document, and that the global execute bit is set for your web root.

i.e. "html" or "htdocs" shoudl have permissions rwxrwxr-x


Featured Threads

Hot Threads This Week

Hot Threads This Month