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

WordPress Developer and part time hostel owner. Possibly spending too much time on Smalspåret narrow gauge railway.

Lämna en kommentar

Din e-postadress kommer inte publiceras.