2017 © Pedro Peláez
 

library robots-checker

Class to check a URL for robots exclusion using all possible methods of robots exclusion

image

nickmoline/robots-checker

Class to check a URL for robots exclusion using all possible methods of robots exclusion

  • Tuesday, April 3, 2018
  • by nickmoline
  • Repository
  • 6 Watchers
  • 1 Stars
  • 184 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 1 Open issues
  • 9 Versions
  • 10 % Grown

The README.md

Robots Exclusion Protocol Checking Classes v1.0.5 Build Status

These classes allow you to check all of the different ways you can exclude a URL from search engines., (*1)

#

Classes

You can instantiate the following classes:, (*2)

  • NickMoline\Robots\RobotsTxt : Checks the corresponding robots.txt file for a url
  • NickMoline\Robots\Status : Checks the HTTP Status code for an indexable URL
  • NickMoline\Robots\Header : Checks the HTTP X-Robots-Tag Header
  • NickMoline\Robots\Meta : Checks the <meta name="robots"> tag (as well as bot specific tags)
  • NickMoline\Robots\All : Wrapper class that will run all of the above checks

Example Usage

<?php

require NickMoline\Robots\RobotsTxt;
require NickMoline\Robots\Header as RobotsHeader;
require NickMoline\Robots\All as RobotsAll;

$checker = new RobotsTxt("http://www.example.com/test.html");
$allowed = $checker->verify();                              // By default it checks Googlebot
$allowed = $checker->setUserAgent("bingbot")->verify();     // Checks to see if blocked for bingbot by robots.txt file

echo $checker->getReason();              // Get the reason the url is allowed or denied

$checker2 = new RobotsHeader("http://www.example.com/test.html");
$allowed = $checker->verify();           // Same as above but will test the X-Robots-Tag HTTP headers

$checkerAll = new RobotsAll("http://www.example.com/test.html");
$allowed = $checker->verify();           // This one runs all of the available tests

The Versions

03/04 2018

dev-master

9999999-dev https://github.com/nickmoline/robots-checker

Class to check a URL for robots exclusion using all possible methods of robots exclusion

  Sources   Download

MIT

The Requires

 

The Development Requires

robots.txt x-robots-tag meta robots

03/04 2018

v1.0.5

1.0.5.0 https://github.com/nickmoline/robots-checker

Class to check a URL for robots exclusion using all possible methods of robots exclusion

  Sources   Download

MIT

The Requires

 

The Development Requires

robots.txt x-robots-tag meta robots

12/09 2017

dev-brokenhandling

dev-brokenhandling https://github.com/nickmoline/robots-checker

Class to check a URL for robots exclusion using all possible methods of robots exclusion

  Sources   Download

MIT

The Requires

 

The Development Requires

robots.txt x-robots-tag meta robots

27/01 2017

v1.0.4

1.0.4.0 https://github.com/nickmoline/robots-checker

Class to check a URL for robots exclusion using all possible methods of robots exclusion

  Sources   Download

MIT

The Requires

 

The Development Requires

robots.txt x-robots-tag meta robots

27/01 2017

dev-nickmoline-patch-1

dev-nickmoline-patch-1 https://github.com/nickmoline/robots-checker

Class to check a URL for robots exclusion using all possible methods of robots exclusion

  Sources   Download

MIT

The Requires

 

The Development Requires

robots.txt x-robots-tag meta robots

30/12 2016

v1.0.3

1.0.3.0 https://github.com/nickmoline/robots-checker

Class to check a URL for robots exclusion using all possible methods of robots exclusion

  Sources   Download

MIT

The Requires

 

The Development Requires

robots.txt x-robots-tag meta robots

30/12 2016

v1.0.2

1.0.2.0 https://github.com/nickmoline/robots-checker

Class to check a URL for robots exclusion using all possible methods of robots exclusion

  Sources   Download

MIT

The Requires

 

The Development Requires

robots.txt x-robots-tag meta robots

27/12 2016

v1.0.1

1.0.1.0 https://github.com/nickmoline/robots-checker

Class to check a URL for robots exclusion using all possible methods of robots exclusion

  Sources   Download

MIT

The Requires

 

The Development Requires

robots.txt x-robots-tag meta robots

27/12 2016

v1.0.0

1.0.0.0 https://github.com/nickmoline/robots-checker

Class to check a URL for robots exclusion using all possible methods of robots exclusion

  Sources   Download

MIT

The Requires

 

The Development Requires

robots.txt x-robots-tag meta robots