(no title)
tombrossman | 4 years ago
What works for me is:
- Use ipset to drop all traffic from certain countries (you pick which works best for you)
- Configure fail2ban to 'automagically' drop all IPs requesting .php and wp-admin URLs for a few days
- Integrate Piwik/Matomo's 'referrer spam' blocklist into your list of ignored referrers.
- Use per-site logging and only log .html hits with a static site to see page views.
This approach won't work for everyone and it takes extra sysadmin & Bash scripting skills to achieve, but it works really well with my Jekyll site.
I don't receive much traffic on my personal website but my stats page is public and updates hourly with a cronjob. https://www.tombrossman.com/stats/
smnscu|4 years ago
Also, pretty good advice in this post, bookmarked it.