Menu

Test links to external sites for 404s but do not follow or crawl

Help
Anonymous
2016-11-09
2016-11-22
  • Anonymous

    Anonymous - 2016-11-09

    I want to find all broken links (404s) on a site. If setFollowMode = 0 then PHPCrawl can find broken links to external sites, but it will also then crawl external sites. If setFollowMode > 0 it will not find broken links to external sites.

    How can I get PHPCrawl to find all 404s, including broken links to external sites, but not crawl through external sites?

     

    Last edit: Anonymous 2016-11-11
  • James Shaver

    James Shaver - 2016-11-22

    I think you're looking for the status code.
    $DocInfo->http_status_code

    This is in the base example page:
    http://phpcrawl.cuab.de/example.html

     

Anonymous
Anonymous

Add attachments
Cancel