upstream-team/laravel-crawler-detect 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

upstream-team/laravel-crawler-detect

最新稳定版本:0.1.10

Composer 安装命令:

composer require upstream-team/laravel-crawler-detect

包简介

Wrapper for the crawler detection package

README 文档

README

About

Welcome to the Laravel Crawler Detect repository, your powerful ally in identifying and handling web crawlers and bots within your Laravel applications. In the vast world of web traffic, being able to discern between genuine users and automated crawl bots is crucial. This tool is designed to seamlessly integrate with your Laravel projects, giving you the ability to efficiently detect spiders, bots, and crawler software.

Install

composer require upstream-team/laravel-crawler-detect

Usage

1. Macros

request()->isCrawler();

2. Middleware

    protected $middlewareGroups = [
        'web' => [
            // ...
            UpstreamTeam\CrawlerDetect\Middleware\CrawlerFilter::class,
        ],
        // ...

3. Service

app('crawler-detect')->isCrawler();
// or
app('crawler-detect')->isCrawler($userAgent);

4. Facade

CrawlerDetectFacade::isCrawler();
// or
CrawlerDetectFacade::isCrawler($userAgent);

统计信息

  • 总下载量: 245
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 4
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-11-21