: Not able to stop hotlink I am using following htaccess code to stop hot linking my image files Options +FollowSymlinks Options +SymlinksIfOwnerMatch RewriteEngine on RewriteCond %{HTTP_REFERER} !^http://(.+.)?article-stack.com/
I am using following htaccess code to stop hot linking my image files
Options +FollowSymlinks
Options +SymlinksIfOwnerMatch
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^http://(.+.)?article-stack.com/ [NC]
RewriteCond %{HTTP_REFERER} !^$
ReWriteRule .*.(png|gif|jpg)$ - [N,F,L]
Still the imge of my site are accessible from other sites. how can i stop it?
More posts by @Bethany197
2 Comments
Sorted by latest first Latest Oldest Best
I tried your code on my local setup and it worked fine. It's likely that something else in your .htaccess is causing this to fail.
I notice that you are rewriting the images to article-stack.com/- which redirects to another page. It would be best to rewrite to another image or to a 404 error.
I think you're missing an escape for the . in your domain name:
Options +FollowSymlinks
Options +SymlinksIfOwnerMatch
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^http://(.+.)?article-stack.com/ [NC]
RewriteCond %{HTTP_REFERER} !^$
ReWriteRule .*.(png|gif|jpg)$ - [N,F,L]
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.