htaccess hotlink protection blocking html download
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
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
so then i thought well ill just allow png images in this one dir
downloads still being blocked, not sure what to do now... Thanks :)
< href="someimagename.jpg" download>download this image
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
order allow,deny
deny from all
SetEnvIfNoCase Request_URI "/downloads/.+$" ALLOWED
Allow from env=ALLOWED
so then i thought well ill just allow png images in this one dir
Order Deny,Allow
Allow from all
downloads still being blocked, not sure what to do now... Thanks :)
-
Hi @durangod I haven't tested this, but I'm curious. Do you have the "Allow direct requests button checked"? 0 -
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..... :) 0
Please sign in to leave a comment.
Comments
2 comments