Hello there!
I don’t know if I’m doing it correctly. I’m using NGINX too. So I edited my vhost config file located in ‘/etc/nginx/sites-enabled/wordpress’ this way:
location / {
try_files $uri $uri/ /index.php?$args;
# Imaguard:
if ($http_referer !~* "^https://(.+.)?my-domain.com"){
set $rule_0 1$rule_0;
}
if ($rule_0 = "1"){
rewrite ^/(.*).(jpg|png|jpeg|gif)$ /show-image/?img=/$1$
}
}
but I’m not seeing any watermarking in the Google Images search results. When I point my browser to ‘https://www.my-domain.com/wp-content/uploads/2013/05/images.jpg?test’ I get an 404 error, what is supposed, right? Also, when I click on a result in the Google Images search, it redirects me to the post where the image appears. So I think that everything is working properly but the watermarking. Any clue of what I’m missing?