Skip to content

Commit 9982fb0

Browse files
committed
Improve docs
1 parent 7d35727 commit 9982fb0

File tree

2 files changed

+7
-10
lines changed

2 files changed

+7
-10
lines changed

README.md

+5-9
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,17 @@
1-
# block-robots middleware [![Build Status](https://travis-ci.org/php-middleware/block-robots.svg)](https://travis-ci.org/php-middleware/block-robots)
2-
Middleware to avoid search engine indexing
1+
# block-robots middleware [![Build Status](https://travis-ci.org/php-middleware/block-robots.svg?branch=master)](https://travis-ci.org/php-middleware/block-robots)
2+
PSR-15 middleware to avoid search engine indexing with PSR-7
33

44
This middleware provide framework-agnostic possibility to preventing your site from being indexed.
55

66
## How it works?
77

88
* Add `X-Robots-Tag` header with `noindex, nofollow` value.
9-
* Add `robots.txt` "file" with `Disallow: /` body
9+
* Add `robots.txt` "file" with `User-Agent: * Disallow: /` body
1010

1111
## Installation
1212

13-
```json
14-
{
15-
"require": {
16-
"php-middleware/block-robots": "^1.0.0"
17-
}
18-
}
13+
```bash
14+
composer require php-middleware/block-robots
1915
```
2016

2117
```php

composer.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
{
22
"name": "php-middleware/block-robots",
3-
"description": "Middleware to avoid search engine indexing with PSR-7",
3+
"description": "PSR-15 middleware to avoid search engine indexing with PSR-7",
44
"type": "library",
55
"keywords": [
66
"middleware",
77
"psr",
88
"psr-7",
9+
"psr-15",
910
"seo",
1011
"robots"
1112
],

0 commit comments

Comments
 (0)