homepage Welcome to WebmasterWorld Guest from 23.22.29.137
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Visit PubCon.com
Home / Forums Index / Hardware and OS Related Technologies / Linux, Unix, and *nix like Operating Systems
Forum Library, Charter, Moderators: bakedjake

Linux, Unix, and *nix like Operating Systems Forum

    
A .htaccess problem on dedicated sever
but no problem on other sites, but shared sever.
taskmaster




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

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

zeus

 

Brett_Tabke




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

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

[webmasterworld.com...]
[webmasterworld.com...]

taskmaster




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

Thanks Brett

taskmaster




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

Hmm this still dont work I still get this message:

Forbidden
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

zeus

eaden




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

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

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Hardware and OS Related Technologies / Linux, Unix, and *nix like Operating Systems
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved