Hi Richard,
	
		
	
	
		
		
			Sorry to up this post after half a year, but it seems this is not really blocking bots. Bots which I have in my list, seem to still be hammering my site getting a 301 which most likely is causing delays for other users visiting.
Short example from my httpd-includes.conf:
	
	
	
		Code:
	
	
		<IfModule mod_rewrite.c>
    RewriteEngine On
    BrowserMatchNoCase "adscanner" bad_bot
    BrowserMatchNoCase "Barkrowler/0.9" bad_bot
    BrowserMatchNoCase "Dotbot" bad_bot
    SetEnvIfNoCase  Request_URI "\.env" bad_bot
    SetEnvIfNoCase  Request_URI "xlmrpc\.php" bad_bot
    RewriteCond %{ENV:BAD_BOT} !^$
    RewriteRule (.*) - [F,L]
</IfModule>
	 
 
I don't know exactly what that rewrite rules does. Shouldn't that send them to oblivion? Anyway this is from my logs:
	
	
	
		Code:
	
	
		54.39.177.48 - - [11/Aug/2025:00:35:58 +0200] "GET /threads/gitarist-george-kooymans-golden-earring-overleden.46714/ HTTP/1.1" 301 825 "-" "Mozilla/5.0 (compatible; YaK/1.0; http://linkfluence.com/; [email protected])"
54.39.177.48 - - [11/Aug/2025:00:35:59 +0200] "GET /threads/rocklegende-ozzy-osbourne-76-enkele-weken-na-afscheidsshow-overleden.46707/ HTTP/1.1" 301 844 "-" "Mozilla/5.0 (compatible; YaK/1.0; http://linkfluence.com/; [email protected])"
54.39.177.48 - - [11/Aug/2025:00:36:00 +0200] "GET /threads/google-stopt-eind-volgende-maand-met-url-verkorter-goo-gl.46726/ HTTP/1.1" 301 833 "-" "Mozilla/5.0 (compatible; YaK/1.0; http://linkfluence.com/; [email protected])"
54.39.177.48 - - [11/Aug/2025:00:36:01 +0200] "GET /threads/gitarist-george-kooymans-golden-earring-overleden.46714/ HTTP/1.1" 301 825 "-" "Mozilla/5.0 (compatible; YaK/1.0; http://linkfluence.com/; [email protected])"
54.39.177.48 - - [11/Aug/2025:00:36:02 +0200] "GET /threads/rocklegende-ozzy-osbourne-76-enkele-weken-na-afscheidsshow-overleden.46707/ HTTP/1.1" 301 844 "-" "Mozilla/5.0 (compatible; YaK/1.0; http://linkfluence.com/; [email protected])"
54.39.177.48 - - [11/Aug/2025:00:36:02 +0200] "GET /threads/google-stopt-eind-volgende-maand-met-url-verkorter-goo-gl.46726/ HTTP/1.1" 301 833 "-" "Mozilla/5.0 (compatible; YaK/1.0; http://linkfluence.com/; [email protected])"
54.39.177.48 - - [11/Aug/2025:00:36:03 +0200] "GET /threads/gitarist-george-kooymans-golden-earring-overleden.46714/ HTTP/1.1" 301 825 "-" "Mozilla/5.0 (compatible; YaK/1.0; http://linkfluence.com/; [email protected])"
54.39.177.48 - - [11/Aug/2025:00:36:04 +0200] "GET /threads/rocklegende-ozzy-osbourne-76-enkele-weken-na-afscheidsshow-overleden.46707/ HTTP/1.1" 301 844 "-" "Mozilla/5.0 (compatible; YaK/1.0; http://linkfluence.com/; [email protected])"
216.244.66.231 - - [11/Aug/2025:20:38:27 +0200] "GET /threads/582/ HTTP/1.1" 301 3088 "-" "Mozilla/5.0 (compatible; DotBot/1.2; +https://opensiteexplorer.org/dotbot; [email protected])"
216.244.66.231 - - [11/Aug/2025:20:38:30 +0200] "GET /threads/612/ HTTP/1.1" 301 3078 "-" "Mozilla/5.0 (compatible; DotBot/1.2; +https://opensiteexplorer.org/dotbot; [email protected])"
216.244.66.231 - - [11/Aug/2025:20:38:33 +0200] "GET /threads/6415/ HTTP/1.1" 301 3094 "-" "Mozilla/5.0 (compatible; DotBot/1.2; +https://opensiteexplorer.org/dotbot; [email protected])"
216.244.66.231 - - [11/Aug/2025:20:38:35 +0200] "GET /threads/8724/ HTTP/1.1" 301 3086 "-" "Mozilla/5.0 (compatible; DotBot/1.2; +https://opensiteexplorer.org/dotbot; [email protected])"
	 
 
So all 301 redirects. But there are so many in the logs. Could this indeed be the reason that often posts on my forum are bit delayed? Because I see loads of this in the logs.
If yes, is there another way to block these in a better way so they can't cause load?
		
 
		
	 
I have this and it will block it all:
<IfModule mod_rewrite.c>
  RewriteEngine On
   
    # Tiktok for AI
    BrowserMatchNoCase "Bytespider" bad_bot
    # Claude for AI
    BrowserMatchNoCase "ClaudeBot" bad_bot
    # Huawai Search Engine
    BrowserMatchNoCase "PetalBot" bad_bot
    # Amazon for Alexa
    BrowserMatchNoCase "Amazonbot" bad_bot
    # Installatron Plugin crawler
    # BrowserMatchNoCase "Installatron Plugin" bad_bot
    # UptimeRobot
    # BrowserMatchNoCase "UptimeRobot" bad_bot
    # Facebook
    # BrowserMatchNoCase "facebookexternalhit" bad_bot
    # Extensive crawling
    # BrowserMatchNoCase "ALittle Client" bad_bot
    # Usually bad webservers
    BrowserMatchNoCase "fasthttp" bad_bot
    BrowserMatchNoCase "Linux Mozilla" bad_bot
    BrowserMatchNoCase "scalaj-http" bad_bot
    BrowserMatchNoCase "Go-http-client" bad_bot
    BrowserMatchNoCase "python-requests" bad_bot
    BrowserMatchNoCase "python-urllib" bad_bot
    BrowserMatchNoCase "Apache-HttpClient" bad_bot
    BrowserMatchNoCase "aiohttp" bad_bot
    SetEnvIfNoCase Request_URI "xlmrpc\.php" bad_bot
    SetEnvIfNoCase Request_URI "\.env" bad_bot
   
  RewriteCond %{ENV:BAD_BOT} !^$
  RewriteRule (.*) - [F,L]
</IfModule>
See:
[12/Aug/2025:15:47:33 +0200] "GET /azie/oktinath/photooktinath37.html HTTP/1.1" 403 4012 "-" "Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; Amazonbot/0.1; +
https://developer.amazon.com/support/amazonbot) Chrome/119.0.6045.214 Safari/537.36"
 [12/Aug/2025:15:02:51 +0200] "GET / HTTP/1.1" 403 365 "
https://www.seokicks.de/backlinks/www.***.nl" "Mozilla/5.0 (Linux; Android 7.0

 AppleWebKit/537.36 (KHTML, like Gecko) Mobile Safari/537.36 (compatible; PetalBot;+
https://webmaster.petalsearch.com/site/petalbot)"