Extensions > botdetection
Bot Detection
[botdetection]
Helper class to detect search engines, bots, spiders, crawlers ...
Bot Detection is a helper class for other extensions (Frontend) the need to detect whether the access is human or machine :-)
A reliable detection is not possible.
It is to use two methods to detect this:
- User Agent
- IP address
The modul includes a method for the agent (BD_CheckBotAgent) and one for the IP detection (BD_CheckBotIP).
These two methods return only "true" or "false" and are only a rough search on strings and substrings to identify the most important bots.
Another method (BD_CheckBotAgentAdvanced) comes with an external configuration file for the user agent detection. As a result, it returns the short name of the bots or "false".
A test is attached to be called directly, as well as 2 front end module as a demo for the implementation in your own modules.
Version 1.4.1:
- IPv6 Support
- Contao 2.10 Support (Token and Templates)
New Bots found with my detection script:
- RSpider
- dombo
- FlightDeckReportsBot
- RSpider
- dombot
- FlightDeckReportsBot
- NerdByNature
- TalkTalk
- Sitedomain-Bot
- ibot
- crawler4j
- ExDomain
- panelbot
- SEOkicks-Robot
and a new browscap.ini as the basis for the Bot Database generation.