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</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>
Thanks
Last edited: