Code: Select all
BrowserMatchNoCase "bingbot" bad_bot
BrowserMatchNoCase "meta-externalagent" bad_bot
BrowserMatchNoCase "meta-externalagent/1.1" bad_bot
Order Deny,Allow
Deny from env=bad_bot
I have signed up for the free Cloudflare and diverted my DNS names and this seems to have stopped the majority of the bots. I have imgur installed and not sure if this is a coincidence but I can no longer upload pictures using imgur.SQLnovice wrote: Fri May 02, 2025 5:33 am You could use Cloudflare's free WAF rules to block countries before they get to your site and/or you can add them to your .htaccess file. If you want to go that route, see this topic
viewtopic.php?p=16061083#p16061083
Under attack is not enabled. I have set up a rule like you suggested but sadly it is still not working, hope I have the correct ASN?SQLnovice wrote: Mon May 05, 2025 3:48 pm Dunno. You must have set something up out of the norm or have We're Under Attack enabled? We have imgur images on our site too and they're unaffected. I suppose maybe try this.
Find out what Imgur's AS number is or are. Then on CF's side, turn on one of their custom allow traffic templates. Put Imgur's ASN number(s) in as the equal to AS number rule (using the OR option for multiple rules) and set the rule to be the first WAF rule and to 'skip' all other subsequent WAF rules if the traffic matches this 'allowed traffic' firewall rule.