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

Visit PubCon.com
Home / Forums Index / Browsers / Firefox Browser Usage and Support
Forum Library, Charter, Moderators: incrediBILL

Firefox Browser Usage and Support Forum

    
Cpanel Hotlink Protection Disables Flash Images In Firefox
And other Gecko browsers
HuskyPup




msg:4093910
 11:04 am on Mar 9, 2010 (gmt 0)

What a torrid Monday trying to resolve why a new flash site worked perfectly on the test domain yet wouldn't display images on the real domain in Firefox, Navigator and K-Meleon!

In all my other browsers the images worked fine.

After many hours of head scratching I compared the files on the two uploaded sites and noticed an htaccess file on the real domain. Checking to see what it was revealed Cpanel's hotlink image protection which I have enabled on all sites.

I deleted this file and immediately the real domain worked perfectly. Has anyone else experienced this or have any idea why it may be causing this issue?

Definitely a bug methinks.

My bill is in the post Mozilla!

 

rocknbil




msg:4094244
 7:49 pm on Mar 9, 2010 (gmt 0)

I think we'd have to see the .htaccess rules.

It's likely because it's disallowing incorrectly, that is, let's take one scenario:

RewriteCond %{HTTP_REFERER} .
RewriteCond %{HTTP_REFERER} !^https*://(www\.)?example\.com [NC]
RewriteRule \.(gif|jpe?g|png|swf|flv)$ /alternate_image.jpg [NC,L]

Note the bolded line.

The * in https means "zero or more 's' characters" so this rule will be ignored for http AND https if the other conditions match.

(www\.)? this means "one or zero of the preceding" and is intended to capture the www version and non www version.

Overall, if the referrer is from example.com or www.example.com, secure or not, and the request is for an image or .flv, this rule will not match, but all other referrers will be served alternate_image.jpg.

You're probably experiencing something like this. You also have to be careful not to disallow Google images or other external resources you might want to allow.

More info from this site [google.com] (G search in WW)

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Browsers / Firefox Browser Usage and Support
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