Answer the question
In order to leave comments, you need to log in
How to protect the site from direct links to images with image inserts on other sites?
The question is simple in principle, but I did not find the answer for myself on the net.
That is, it is proposed to prohibit through htaccess, for example, like this,
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?sitename.ru [NC]
RewriteRule \.(jpg|jpeg|png|gif)$ http://dropbox.com/hotlink-placeholder.jpg [NC,R,L]
Answer the question
In order to leave comments, you need to log in
Close the site for the Internet.
Because what happened to the Internet is no longer protected. Pictures print on the printer and put in a safe. Then they won't steal.
And so - the fight against windmills.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question