承接 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
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

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