homepage Welcome to WebmasterWorld Guest from 54.205.189.156
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

    
403 Errors on 1 page only for images
ukgimp




msg:1502613
 2:54 pm on Jan 19, 2004 (gmt 0)

I am throwing 403 errors for images on the index page only. Every other page is fine and once the image has been cached it works fine.

I have the following in my htaccess to prevent hotlinking, but sure that would affect every page?

RewriteCond %{HTTP_REFERER}!^http://mysite.co.uk/.*$ [NC]
RewriteCond %{HTTP_REFERER}!^http://www.mysite.co.uk/.*$ [NC]
#RewriteCond %{HTTP_REFERER}!^http://www.trusted.com/.*$ [NC]
RewriteRule .*\.(gif¦GIF¦jpg¦JPG)$ - [F]

Cheers

I think this has cost me an ODP listing so I have the hump.
:(

 

killroy




msg:1502614
 3:00 pm on Jan 19, 2004 (gmt 0)

HTTP_REFERER is not reliable.

SN

ukgimp




msg:1502615
 3:06 pm on Jan 19, 2004 (gmt 0)

Found this not long after posting. Think I have it sorted.

Cheers

[webmasterworld.com...]

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
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