php-middleware/block-robots
最新稳定版本:1.1.0
Composer 安装命令:
composer require php-middleware/block-robots
包简介
PSR-15 middleware to avoid search engine indexing with PSR-7
README 文档
README
PSR-15 middleware to avoid search engine indexing with PSR-7
This middleware provide framework-agnostic possibility to preventing your site from being indexed.
How it works?
- Add
X-Robots-Tagheader withnoindex, nofollowvalue. - Add
robots.txt"file" withUser-Agent: * Disallow: /body
Installation
composer require php-middleware/block-robots
$blockRobotsMiddleware = new PhpMiddleware\BlockRobots\BlockRobotsMiddleware(); $app = new MiddlewareRunner(); $app->add($blockRobotsMiddleware); $app->run($request, $response);
It's just works with any modern php framework!
Middleware tested on:
Middleware should works with:
And any other modern framework supported middlewares and PSR-7.
统计信息
- 总下载量: 33.24k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 7
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2015-09-22