Block referrer spam in nginx

Tired of having Analytics, Pingdom and other tools cluttered with irrelevant fake traffic? I created a really simple block for you to use in your site configuration file, usually found in /etc/nginx/sites-available/yoursitename.conf.

[wpgist id=”027cdc630941bb905ae2″]

If you have any more sites just add them with the pipe character between them.

av Olaf Lindström

Web Developer working mainly with WooCommerce, Laravel, React and such. Possibly spending too much time talking about wine, vintage trains/railways and Tesla..

Lämna en kommentar

Din e-postadress kommer inte publiceras. Obligatoriska fält är märkta *