hotlink protection with rewrite

Piotr Karbowski jabberuser at gmail.com
Sun Jan 10 23:07:19 MSK 2010


	location ~ \.(jpg|jpeg|png|gif)$ {
	valid_referers server_names blocked none;
		if ($invalid_referer) {
			rewrite  ^(.*)$ /hotlink.png break;
		}
	}

I using something like it.



More information about the nginx mailing list