Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Mar 2008
    Posts
    2

    Default Hotlink Protection not working

    I have a customer who is trying to use the Hotlink Protection feature but it is not working. I have setup a test site that has hotlinked a gif image from my customer's site. Hotlink Protection is enabled in cPanel and gif is listed as an allowed extension. Can someone give me some pointers on what maybe causing the problem?

  2. #2
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,189
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by mackchad View Post
    I have a customer who is trying to use the Hotlink Protection feature but it is not working. I have setup a test site that has hotlinked a gif image from my customer's site. Hotlink Protection is enabled in cPanel and gif is listed as an allowed extension. Can someone give me some pointers on what maybe causing the problem?
    Just to cover all bases here: the wording of this feature is notoriously confusing. By "allowed" it means what extensions are allowed to be blocked by Hotlink Protection. Therefore the intended behavior when "gif" is listed as an allowed extension is to block all hotlinking of .gif files. If that is not what is happening, then yes, there is a problem and it should be investigated.

  3. #3
    Member
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    300

    Default

    If hotlinking is enabled for gif images as David stated above and you are able to hotlink the image, the problem is most likely due to rules within .htaccess. Most, if not all problems with hotlinking are due to custom settings in .htaccess that is causing the hotlink rules to be missed.
    -Todd Shipway

  4. #4
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Mar 2008
    Posts
    2

    Default

    Thanks guys, and yes Hotlink Protection is enabled and I am able to hotlink to a gif image from a test site. Here is the the .htaccess file as I have no idea what could be causing the problem and hopefully someone could point me in the right direction. Thanks in advance.



    RewriteEngine on

    RewriteCond %{HTTP_REFERER} !^http://canadascience.com/.*$ [NC]
    RewriteCond %{HTTP_REFERER} !^http://canadascience.com$ [NC]
    RewriteCond %{HTTP_REFERER} !^http://www.canadascience.com/.*$ [NC]
    RewriteCond %{HTTP_REFERER} !^http://www.canadascience.com$ [NC]
    RewriteRule .*\.(jpg|jpeg|gif|png|bmp|mp3)$ - [F,NC]

Similar Threads & Tags
Similar threads

  1. Hotlink protection not working right
    By beaureg in forum Security
    Replies: 8
    Last Post: 07-15-2006, 02:31 PM
  2. Hotlink protection stopped working
    By shacker23 in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 05-02-2006, 06:13 PM
  3. Hotlink protection
    By ultramagna in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 03-11-2005, 09:58 PM
  4. Hotlink protection redirect not working
    By Framwinkle in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 04-06-2004, 08:36 PM
  5. Hotlink protection not working?
    By DigiCrime in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 07-08-2003, 05:12 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube