Jump to content

Recommended Posts

Posted

Hi all,

 

I found the answer to a bug I've been having on my site; sometimes the gif images do not appear on my site and it's because IE thinks the Hotlink feature is a cookie and blocks the images.

 

See the link for the dialog box I get in IE, and because of this the images don't load. Mad!!!

 

http://zoblue.com/image.htm

 

Please let me know what I can do to avoid this error, so people can view the images!!! It's only been happening on the intro page http://zoblue.com, as some of you may remember I've posted this question before.

 

thanks,

!!blue

Posted

There are several known bugs in the cPanel hotlinking protection.

 

Here are some that I am aware of.

 

when you go to your url, make sure you have / at the end

 

domain.com is not the same as domain.com/ when it comes to hotlink protection

 

-------------------------------------------------

 

Add the following to an .htaccess file and place it in Document Root for the account in question.

 

RewriteEngine On

RewriteCond %{HTTP_REFERER} !^$

RewriteCond %{HTTP_REFERER} !^http://your_domain.com/.*$ [NC]

RewriteCond %{HTTP_REFERER} !^http://www.your_domain.com/.*$ [NC]

RewriteCond %{HTTP_REFERER} !^http://www.trusted.com/.*$ [NC]

RewriteRule .*\.(gif|jpg|)$ - [F,L]

 

The 'RewriteRule' is where you include the same file extension of the files to be protected.

 

----------------------------------------------------------------------------------

Posted

Thanks! I will try the above code and when I'll view my site from various IE browsers at school again on Wednesday.

 

Thanks again :D,

!!blue

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...