File tree 2 files changed +7
-10
lines changed
2 files changed +7
-10
lines changed Original file line number Diff line number Diff line change 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
3
3
4
4
This middleware provide framework-agnostic possibility to preventing your site from being indexed.
5
5
6
6
## How it works?
7
7
8
8
* 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
10
10
11
11
## Installation
12
12
13
- ``` json
14
- {
15
- "require" : {
16
- "php-middleware/block-robots" : " ^1.0.0"
17
- }
18
- }
13
+ ``` bash
14
+ composer require php-middleware/block-robots
19
15
```
20
16
21
17
``` php
Original file line number Diff line number Diff line change 1
1
{
2
2
"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" ,
4
4
"type" : " library" ,
5
5
"keywords" : [
6
6
" middleware" ,
7
7
" psr" ,
8
8
" psr-7" ,
9
+ " psr-15" ,
9
10
" seo" ,
10
11
" robots"
11
12
],
You can’t perform that action at this time.
0 commit comments