javascript - Implementing protection for source images -
while browsing came across link
as can see image protected, if browse cars-database.com take source image , same message.
this first time see , wonder how has been implemented? know?
screenshot of protected source image:
here's simple example on how implement similar in nginx
:
location ~ \.(jpe?g|png|gif)$ { valid_referers none blocked mysite.com *.mysite.com; if ($invalid_referer) { rewrite ^ http://mysite.com/lowres$request_uri permanent; } }
Comments
Post a Comment