SOLVED htaccess hotlink protection blocking html download

durangod

Well-Known Member
May 12, 2012
505
46
78
cPanel Access Level
Website Owner
Hi, i use cpanel for the hotlink protection option which puts the code in my htaccess. I have a html link to an image that looks like this


< href="someimagename.jpg" download>download this image</a>


with the hotlink off it downloads just fine, but with the hotlink on it blocks the download.

I have all of my domains listed, i even have my domains also listed using the wild card htaccess code, i even added my shared hosting server to the code as well as the direct folder the images are in to the htaccess code.

What could be blocking the image download.

i tried this in my downloads folder htaccess file but still blocked


<Files .htaccess>
order allow,deny
deny from all
</Files>


SetEnvIfNoCase Request_URI "/downloads/.+$" ALLOWED

Allow from env=ALLOWED



so then i thought well ill just allow png images in this one dir

Code:
<FilesMatch ".(png)$">
Order Deny,Allow
Allow from all
</FilesMatch>
downloads still being blocked, not sure what to do now...

Thanks :)
 
Last edited:

durangod

Well-Known Member
May 12, 2012
505
46
78
cPanel Access Level
Website Owner
well how about that, you guys and gals think of everything.... i guess i went through that process so fast i did not even notice that button, silly silly me...

i checked the button and it works now..... thanks you soooooooo very much..... :)
 
  • Like
Reactions: cPanelLauren