PHPackages                             codeblog/crawlerdetect - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. codeblog/crawlerdetect

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

codeblog/crawlerdetect
======================

A CodeBlog CrawlerDetect class is easy and quick to use. Detecting bots/crawlers/spiders via the user agent!

v1.0.0(7y ago)9553MITPHPPHP &gt;=5.6

Since Mar 27Pushed 6y ago2 watchersCompare

[ Source](https://github.com/whallysson/crawlerdetect)[ Packagist](https://packagist.org/packages/codeblog/crawlerdetect)[ Docs](http://www.codeblog.com.br)[ RSS](/packages/codeblog-crawlerdetect/feed)WikiDiscussions master Synced 4d ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

Crawler Detect
==============

[](#crawler-detect)

[![Maintainer](https://camo.githubusercontent.com/ba3200569409e72085b945f85a8f330b9cc2721bf789ab0d990b120d6b7998e0/687474703a2f2f696d672e736869656c64732e696f2f62616467652f6d61696e7461696e65722d407768616c6c7973736f6e2d626c75652e7376673f7374796c653d666c61742d737175617265)](https://twitter.com/whallysson)[![Source Code](https://camo.githubusercontent.com/65fd949be2733fd617cdc17341d19c73c73cf3fad4d6be5fd0dfd9a55aceedde/687474703a2f2f696d672e736869656c64732e696f2f62616467652f736f757263652d636f6465626c6f672f637261776c65726465746563742d626c75652e7376673f7374796c653d666c61742d737175617265)](https://github.com/whallysson/crawlerdetect)[![PHP from Packagist](https://camo.githubusercontent.com/7e5c27af6a62cdeca0603f1ff6d5a9884d658d88960880b3633a39ef16295fa9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f636f6465626c6f672f637261776c65726465746563742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/codeblog/crawlerdetect)[![Latest Version](https://camo.githubusercontent.com/651568e2c45edb3de2f69f057d1e2b2577ed8a2da11419963a65049f8d1b61bf/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f7768616c6c7973736f6e2f637261776c65726465746563742e7376673f7374796c653d666c61742d737175617265)](https://github.com/whallysson/crawlerdetect/releases)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Build](https://camo.githubusercontent.com/2273d8fdd956d05325915424ef54cea9ecea37a6bf8685333a438b5466e72d1c/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f6275696c642f672f7768616c6c7973736f6e2f637261776c65726465746563742e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/whallysson/crawlerdetect)[![Quality Score](https://camo.githubusercontent.com/a4228b4d3918919d6cc8e097ff6aaee4f139f586d1db13247224d17a3e666cef/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f7768616c6c7973736f6e2f637261776c65726465746563742e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/whallysson/crawlerdetect)[![Total Downloads](https://camo.githubusercontent.com/11f1eddd5d73e0a2f1f891edf302b3cd0f0ff3ac5c3b445ff31e5e64f11b1d92/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f636f6465626c6f672f637261776c65726465746563742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/codeblog/crawlerdetect)

###### CrawlerDetect is a PHP class for detecting bots / crawlers / spiders through the user agent and http header. Currently capable of detecting thousands of bots.

[](#crawlerdetect-is-a-php-class-for-detecting-bots--crawlers--spiders-through-the-user-agent-and-http-header-currently-capable-of-detecting-thousands-of-bots)

O CrawlerDetect é uma classe PHP para detectar bots/crawlers/spiders através do agente do usuário e cabeçalho http. Atualmente capaz de detectar milhares de bots.

### Highlights

[](#highlights)

- Simple installation (Instalação simples)
- Check the user agent of the current 'visitor' (Verifique o agente do usuário do 'visitante' atual)
- Pass a user agent as a string (Passar um agente do usuário como uma string)
- Output the name of the bot that matched if any (Emita o nome do bot que combinou se hover)

Installation
------------

[](#installation)

CrawlerDetect is available via Composer:

```
"codeblog/crawlerdetect": "^1.0"
```

or run

```
composer require codeblog/crawlerdetect
```

Documentation
-------------

[](#documentation)

###### For details on how to use, see a sample folder in the component directory. In it you will have an example of use for each class. It works like this:

[](#for-details-on-how-to-use-see-a-sample-folder-in-the-component-directory-in-it-you-will-have-an-example-of-use-for-each-class-it-works-like-this)

Para mais detalhes sobre como usar, veja uma pasta de exemplo no diretório do componente. Nela terá um exemplo de uso para cada classe. Ele funciona assim:

#### Usage:

[](#usage)

```
