The Problem: ¶
If you are running a high traffic website, you know how painful referrer spam can be. Primarily, it messes up with your analytics, wastes your server resources among some other nonsense. Here’s how you can fix this issue on Nginx web server
Instructions to block referer spam on Nginx: ¶
From your analytics website, get the top referer URLs that are spamming your website and just add ’em to the blacklist
in nginx config file and verify if they are in fact being blocked using something like curl --referer ...
as shown
below: