定制 jtaurus/blockseobots 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

jtaurus/blockseobots

Composer 安装命令:

composer require jtaurus/blockseobots

包简介

Block Ahrefs, MajesticSEO and Seomoz robots from crawling your site.

README 文档

README

This package blocks SEO link analytics crawlers from accessing your website. Use it if you don't want the competition snooping around your website or if you just want to save some bandwidth.

It block crawlers of:

  • Ahrefs
  • MajesticSEO
  • Seomoz

##Installation:

add

"jtaurus/blockseobots": "dev-master"

to require in your composer.json file

in command line, run:

composer update

Next, add:

Jtaurus\BlockSeoBots\ServiceProviders\BlockSeoBotsServiceProvider::class

to providers array inside config/app.php

The final step is to add:

\Jtaurus\BlockSeoBots\Middleware\BlockSeoBotsMiddleware::class

into the the middleware array inside kernel.php

Config:

The array of forbidden user agents is located inside BlockSeoBots class. If you want to block another crawler, simply add a part of its user agent there.

protected $forbiddenUserAgentSubstrings = array( 'ahrefsBot', 'mjseo', 'seomoz', 'rogerbot');

统计信息

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

GitHub 信息

  • Stars: 6
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: Apache-2.0
  • 更新时间: 2015-08-20