Download the PHP package setono/bot-detection-bundle without Composer
On this page you can find all versions of the php package setono/bot-detection-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download setono/bot-detection-bundle
More information about setono/bot-detection-bundle
Files in setono/bot-detection-bundle
Package bot-detection-bundle
Short Description A Symfony bundle that allows you to test if a user agent is a bot
License MIT
Informations about the package bot-detection-bundle
Symfony Bot Detection Bundle
Detect if the user agent is a bot and act upon it. Under the hood this bundle uses the matomo-org/device-detector, but instead of just using that library this library has a very small subset of user agents that it checks first (i.e. major search engines). This makes it much faster in detecting those very common bots and hence speeds up your request cycle.
Installation
This installs and enables the plugin automatically if you're using Symfony Flex. If not, add the bundle manually
to bundles.php
.
Usage
You can use the bot detector in your services:
and you can use it inside your twig templates:
All versions of bot-detection-bundle with dependencies
setono/symfony-main-request-trait Version ^1.0
symfony/config Version ^4.4 || ^5.4 || ^6.0
symfony/dependency-injection Version ^4.4 || ^5.4 || ^6.0
symfony/http-foundation Version ^4.4 || ^5.4 || ^6.0
symfony/http-kernel Version ^4.4 || ^5.4 || ^6.0
twig/twig Version ^2.14 || ^3.4