I checked GoatCounter recently and noticed a lot of “visits” from a sketchy website. I tried to configure Apache to block them, but they continue to “visit” multiple times a day. Even if they’re harmless, I’d rather not have my page views inflated by junk.
I created a configuration file called “ref-spam.conf” in the conf-enabled directory.
The content of that file looks like this:
RewriteEngine On
RewriteCond %{HTTP_REFERER} aio\.online [NC]
RewriteRule .* - [F,L]
I ended up on this “solution” because any time I messed with the configuration file for maerk.xyz specifically, Apache would fail to start.
If any Apache wizards could help me out, I’d appreciate it.