Thanks will take a look.KevC wrote: ↑Mon Jul 01, 2024 3:31 pm Already a couple of topics on this as others have seen the same with other bots
viewtopic.php?t=2652265
viewtopic.php?t=2654353
Code: Select all
BrowserMatchNoCase "libwww-perl" bad_bot
BrowserMatchNoCase "wget" bad_bot
BrowserMatchNoCase "LieBaoFast" bad_bot
BrowserMatchNoCase "Mb2345Browser" bad_bot
BrowserMatchNoCase "zh-CN" bad_bot
BrowserMatchNoCase "MicroMessenger" bad_bot
BrowserMatchNoCase "zh_CN" bad_bot
BrowserMatchNoCase "Kinza" bad_bot
BrowserMatchNoCase "Bytespider" bad_bot
BrowserMatchNoCase "Baiduspider" bad_bot
BrowserMatchNoCase "Sogou" bad_bot
BrowserMatchNoCase "Datanyze" bad_bot
BrowserMatchNoCase "AspiegelBot" bad_bot
BrowserMatchNoCase "adscanner" bad_bot
BrowserMatchNoCase "serpstatbot" bad_bot
BrowserMatchNoCase "spaziodat" bad_bot
BrowserMatchNoCase "undefined" bad_bot
BrowserMatchNoCase "claudebot" bad_bot
BrowserMatchNoCase "facebook" bad_bot
BrowserMatchNoCase "Petalbot" bad_bot
BrowserMatchNoCase "YandexBot" bad_bot
BrowserMatchNoCase "Applebot" bad_bot
BrowserMatchNoCase "aiohttp" bad_bot
Order Deny,Allow
Deny from env=bad_bot
Deny from 47.76.0.0/16
If you want a really blunt axe, go to WAF > Rate limiting rules. Then create a rule like this:thecoalman wrote: ↑Thu Jul 04, 2024 3:08 amIt easier and more effective to block them in Cloudlfare's firewall. Go to security section >> WAF and then click the link for custom rules.
The free tier only allows one rate limiting rule. If you set the limit to 10 requests per second/10 second timeout, you effectively limit any bot (or person) to less than one page request per second. You can tweak the maximum number of requests as your server capacity allows with a minimum of 1 page every 10 seconds.(not cf.bot_management.verified_bot and http.request.uri.path contains ".php") or (cf.bot_management.verified_bot and http.request.uri.path contains ".php")
The .htaccess guide above will solve your issues and if you really want to stop the bots just go into your Cloudflare or .htaccess and temporary block Facebook'ssupanet wrote: ↑Mon Jul 01, 2024 3:16 pm I look after a website that is getting a lot of bots, everytime i visit the site it has over 200 bots online at any one time.
The site is allocated 100GB of Bandwidth each month and every month it is used up (sometimes making the site go down)
The site has been going for over 10 years and used to be very busy but now only gets a handful of members on each day (less than 10) so i know it's not that.
The site is run through Cloudflare (free version) but with only basic settings as i am not sure how to set things up on it.
It used to be a lot of chinese bots but lately it is more of these:
facebookexternalhit/1.1 (+http://www.facebook.com/externalhit_uatext.php)
Lots of random IP's so hard to ban.
Any suggestions on how i can reduce the bandwidth usage?
facebookexternalhit/1.1
bot..htacces
file has not been modified, just this addition to the robots.txt
file got rid of these invasionsCode: Select all
# Disallow Bad Bot
User-Agent: Claudebot
User-agent: anthropic-ai
User-Agent: ByteDance
User-agent: Bytespider
User-agent: ChatGPT-User
User-agent: GPTBot
User-Agent: FriendlyCrawler
User-agent: Google-Extended
User-agent: Omgili
Disallow: /
supanet wrote: ↑Wed Jul 03, 2024 2:19 pm Ok just in case anyone has a similar problem this one worked for me.
viewtopic.php?p=16018150#p16018150
Add this to your .htaccess fileCode: Select all
BrowserMatchNoCase "libwww-perl" bad_bot BrowserMatchNoCase "wget" bad_bot BrowserMatchNoCase "LieBaoFast" bad_bot BrowserMatchNoCase "Mb2345Browser" bad_bot BrowserMatchNoCase "zh-CN" bad_bot BrowserMatchNoCase "MicroMessenger" bad_bot BrowserMatchNoCase "zh_CN" bad_bot BrowserMatchNoCase "Kinza" bad_bot BrowserMatchNoCase "Bytespider" bad_bot BrowserMatchNoCase "Baiduspider" bad_bot BrowserMatchNoCase "Sogou" bad_bot BrowserMatchNoCase "Datanyze" bad_bot BrowserMatchNoCase "AspiegelBot" bad_bot BrowserMatchNoCase "adscanner" bad_bot BrowserMatchNoCase "serpstatbot" bad_bot BrowserMatchNoCase "spaziodat" bad_bot BrowserMatchNoCase "undefined" bad_bot BrowserMatchNoCase "claudebot" bad_bot BrowserMatchNoCase "facebook" bad_bot BrowserMatchNoCase "Petalbot" bad_bot BrowserMatchNoCase "YandexBot" bad_bot BrowserMatchNoCase "Applebot" bad_bot BrowserMatchNoCase "aiohttp" bad_bot Order Deny,Allow Deny from env=bad_bot Deny from 47.76.0.0/16
Yes and no. Obviously, if you block a bot and they honour it then they will not index your forum but the bots that are being blocked here aren't necessarily 'good bots' that you would want to allow access to your forum in the first place.