- Language
- English
- Compatible XF 2.x versions
- 2.0
- 2.1
- 2.2
- 2.3
To block bad AI bots from a country, use this add-on:
(Example of Access log link)
(Example of Access log page)
Features:
- Only the admin can run this add-on.
- All phrases start with accesslog_ for your convenience.
I suggest following the information in this thread to block bad bot access to your forum:
Adding the following directives to your .htaccess files allows you to control which bots are denied and allowed to access your forum.
If using Apache without Litespeed
# Deny and Allow bots by User-Agent
SetEnvIfNoCase User-Agent "bot|crawler|fetcher|headlesschrome|inspect|search|spider" bad_bot
SetEnvIfNoCase User-Agent "bingbot|duckduckgo|googlebot|yahoo" good_bot
Deny from env=bad_bot
Allow from env=good_bot
If using Apache with Litespeed (Apache 2.4)
# Deny and Allow bots by User-Agent
SetEnvIfNoCase User-Agent "bot|crawler|fetcher|headlesschrome|inspect|search|spider" bad_bot
SetEnvIfNoCase User-Agent "bingbot|duckduckgo|googlebot|yahoo" good_bot
<RequireAny>
Require not env bad_bot
Require env good_bot
</RequireAny>