PackageTrack
Sign in Get early access

spatie/robots-txt

Determine if a page may be crawled from robots.txt and robots meta tags

2.5.4 20M downloads/mo #752 most downloaded on Packagist spatie/robots-txt

What this package is like to depend on

Last release 5 months ago

25 Feb 2026

Release timing varies

gaps range from 4 weeks to 1.5 years

Most releases are documented

notes for 26 of 31 stable releases

Nothing withdrawn

no release was ever pulled

8 years old

31 releases · first in 2018

3 releases in the last 12 months

see the full history below

Release timeline

31 releases · Mar 2018 to Feb 2026
2019 2020 2021 2022 2023 2024 2025 2026
Release Pre-release

Releases

latest 31
  1. 2.5.4 25 Feb 2026
    Release notes

    Send user agent header with file_get_contents requests to prevent Cloudflare and similar WAFs from blocking requests

    Open source →
    Release notes

    Send user agent header with file_get_contents requests to prevent Cloudflare and similar WAFs from blocking requests

    Open source →
  2. 2.5.3 20 Nov 2025
    Release notes

    What's Changed

    • Bump stefanzweifel/git-auto-commit-action from 6 to 7 by @dependabot[bot] in #78
    • Revert meta content change by @Nathanw in #80

    New Contributors

    Full Changelog: 2.5.2...2.5.3

    Open source →
    Release notes

    What's Changed

    • Bump stefanzweifel/git-auto-commit-action from 6 to 7 by @dependabot[bot] in https://github.com/spatie/robots-txt/pull/78
    • Revert meta content change by @Nathanw in https://github.com/spatie/robots-txt/pull/80

    New Contributors

    • @Nathanw made their first contribution in https://github.com/spatie/robots-txt/pull/80

    Full Changelog: https://github.com/spatie/robots-txt/compare/2.5.2...2.5.3

    Open source →
  3. 2.5.2 19 Sep 2025
    Release notes

    What's Changed

    New Contributors

    Full Changelog: 2.5.1...2.5.2

    Open source →
    Release notes

    What's Changed

    • Bump aglipanci/laravel-pint-action from 2.5 to 2.6 by @dependabot[bot] in https://github.com/spatie/robots-txt/pull/73
    • Bump actions/checkout from 4 to 5 by @dependabot[bot] in https://github.com/spatie/robots-txt/pull/72
    • Update issue template by @AlexVanderbist in https://github.com/spatie/robots-txt/pull/77
    • fix(#75) : fix an issue that subsequence file_get_contents calls can cause 429 status error by @sebestenyb in https://github.com/spatie/robots-txt/pull/76

    New Contributors

    • @AlexVanderbist made their first contribution in https://github.com/spatie/robots-txt/pull/77
    • @sebestenyb made their first contribution in https://github.com/spatie/robots-txt/pull/76

    Full Changelog: https://github.com/spatie/robots-txt/compare/2.5.1...2.5.2

    Open source →
  4. 2.5.1 01 Jul 2025
    Release notes

    What's Changed

    • Bump stefanzweifel/git-auto-commit-action from 5 to 6 by @dependabot in #68
    • fix: fix warnings and avoid unused variables by @chapeupreto in #71

    New Contributors

    Full Changelog: 2.5.0...2.5.1

    Open source →
    Release notes

    What's Changed

    • Bump stefanzweifel/git-auto-commit-action from 5 to 6 by @dependabot in https://github.com/spatie/robots-txt/pull/68
    • fix: fix warnings and avoid unused variables by @chapeupreto in https://github.com/spatie/robots-txt/pull/71

    New Contributors

    • @chapeupreto made their first contribution in https://github.com/spatie/robots-txt/pull/71

    Full Changelog: https://github.com/spatie/robots-txt/compare/2.5.0...2.5.1

    Open source →
  5. 2.5.0 23 May 2025
    Release notes

    What's Changed

    • Implement RobotsTxt->whyDisallows($path, $userAgent) to find why a path was disallowed by @gvlasov in #66

    Full Changelog: 2.4.0...2.5.0

    Open source →
    Release notes

    What's Changed

    • Implement RobotsTxt->whyDisallows($path, $userAgent) to find why a path was disallowed by @gvlasov in https://github.com/spatie/robots-txt/pull/66

    Full Changelog: https://github.com/spatie/robots-txt/compare/2.4.0...2.5.0

    Open source →
  6. 2.4.0 22 May 2025
    Release notes

    What's Changed

    • Bump aglipanci/laravel-pint-action from 2.4 to 2.5 by @dependabot in #63
    • Bump dependabot/fetch-metadata from 2.3.0 to 2.4.0 by @dependabot in #64
    • Implement crawl-delay directive for robots.txt by @gvlasov in #65

    New Contributors

    Full Changelog: 2.3.1...2.4.0

    Open source →
    Release notes

    What's Changed

    • Bump aglipanci/laravel-pint-action from 2.4 to 2.5 by @dependabot in https://github.com/spatie/robots-txt/pull/63
    • Bump dependabot/fetch-metadata from 2.3.0 to 2.4.0 by @dependabot in https://github.com/spatie/robots-txt/pull/64
    • Implement crawl-delay directive for robots.txt by @gvlasov in https://github.com/spatie/robots-txt/pull/65

    New Contributors

    • @gvlasov made their first contribution in https://github.com/spatie/robots-txt/pull/65

    Full Changelog: https://github.com/spatie/robots-txt/compare/2.3.1...2.4.0

    Open source →
  7. 2.3.1 31 Jan 2025
    Release notes

    What's Changed

    • Bump dependabot/fetch-metadata from 2.2.0 to 2.3.0 by @dependabot in #62
    • RobotsTxt: add missing class property - allowsPerUserAgent by @DavidGoodwin in #61

    New Contributors

    Full Changelog: 2.3.0...2.3.1

    Open source →
    Release notes

    What's Changed

    • Bump dependabot/fetch-metadata from 2.2.0 to 2.3.0 by @dependabot in https://github.com/spatie/robots-txt/pull/62
    • RobotsTxt: add missing class property - allowsPerUserAgent by @DavidGoodwin in https://github.com/spatie/robots-txt/pull/61

    New Contributors

    • @DavidGoodwin made their first contribution in https://github.com/spatie/robots-txt/pull/61

    Full Changelog: https://github.com/spatie/robots-txt/compare/2.3.0...2.3.1

    Open source →
  8. 2.3.0 27 Jan 2025
    Release notes

    What's Changed

    New Contributors

    Full Changelog: 2.2.3...2.3.0

    Open source →
    Release notes

    What's Changed

    • Update phpunit/phpunit requirement from ^9.0|^10.0 to ^11.5.2 by @dependabot in https://github.com/spatie/robots-txt/pull/59
    • "Allow" Handling by @Dwarfex in https://github.com/spatie/robots-txt/pull/60

    New Contributors

    • @Dwarfex made their first contribution in https://github.com/spatie/robots-txt/pull/60

    Full Changelog: https://github.com/spatie/robots-txt/compare/2.2.3...2.3.0

    Open source →
  9. 2.2.3 22 Oct 2024
    Release notes

    What's Changed

    • avoid expensive queries that do not change certain results by @elcapo in #53

    New Contributors

    Full Changelog: 2.2.2...2.2.3

    Open source →
    Release notes

    What's Changed

    • avoid expensive queries that do not change certain results by @elcapo in https://github.com/spatie/robots-txt/pull/53

    New Contributors

    • @elcapo made their first contribution in https://github.com/spatie/robots-txt/pull/53

    Full Changelog: https://github.com/spatie/robots-txt/compare/2.2.2...2.2.3

    Open source →
  10. 2.2.2 25 Sep 2024
    Release notes

    What's Changed

    • Bump actions/checkout from 2 to 4 by @dependabot in #47
    • Bump stefanzweifel/git-auto-commit-action from 4 to 5 by @dependabot in #48
    • Fixes "case-sensitive" URI matching for Disallow rules in robots.txt by @mattfo0 in #46

    New Contributors

    Full Changelog: 2.2.1...2.2.2

    Open source →
    Release notes

    What's Changed

    • Bump actions/checkout from 2 to 4 by @dependabot in https://github.com/spatie/robots-txt/pull/47
    • Bump stefanzweifel/git-auto-commit-action from 4 to 5 by @dependabot in https://github.com/spatie/robots-txt/pull/48
    • Fixes "case-sensitive" URI matching for Disallow rules in robots.txt by @mattfo0 in https://github.com/spatie/robots-txt/pull/46

    New Contributors

    • @dependabot made their first contribution in https://github.com/spatie/robots-txt/pull/47
    • @mattfo0 made their first contribution in https://github.com/spatie/robots-txt/pull/46

    Full Changelog: https://github.com/spatie/robots-txt/compare/2.2.1...2.2.2

    Open source →
  11. 2.2.1 09 Aug 2024
    Release notes

    What's Changed

    • Add missing use statement for InvalidArgumentException by @remcom in https://github.com/spatie/robots-txt/pull/44

    New Contributors

    • @remcom made their first contribution in https://github.com/spatie/robots-txt/pull/44

    Full Changelog: https://github.com/spatie/robots-txt/compare/2.2.0...2.2.1

    Open source →
  12. 2.2.0 22 Apr 2024
    Release notes

    What's Changed

    • optionally allow partial matches and global groups by @resohead in https://github.com/spatie/robots-txt/pull/43

    New Contributors

    • @resohead made their first contribution in https://github.com/spatie/robots-txt/pull/43

    Full Changelog: https://github.com/spatie/robots-txt/compare/2.1.0...2.2.0

    Open source →
  13. 2.1.0 19 Apr 2024
    Release notes

    What's Changed

    • Add some efficiencies to prevent unnecessary requests by @tsjason in https://github.com/spatie/robots-txt/pull/42

    New Contributors

    • @tsjason made their first contribution in https://github.com/spatie/robots-txt/pull/42

    Full Changelog: https://github.com/spatie/robots-txt/compare/2.0.3...2.1.0

    Open source →
  14. 2.0.3 22 Nov 2023
    Release notes

    What's Changed

    • Update .gitattributes and ignore php_cs cache by @angeljqv in https://github.com/spatie/robots-txt/pull/36
    • Update PHPUnit config to latest schema by @patinthehat in https://github.com/spatie/robots-txt/pull/39
    • Add PHP 8.2 Support by @patinthehat in https://github.com/spatie/robots-txt/pull/38
    • Fix deprecation message by @buismaarten in https://github.com/spatie/robots-txt/pull/41

    New Contributors

    • @angeljqv made their first contribution in https://github.com/spatie/robots-txt/pull/36
    • @buismaarten made their first contribution in https://github.com/spatie/robots-txt/pull/41

    Full Changelog: https://github.com/spatie/robots-txt/compare/2.0.2...2.0.3

    Open source →
  15. 2.0.2 18 May 2022

    Nothing published for this version

  16. 2.0.1 06 May 2021
    Release notes
    • added x-robots-tag: none (#32)
    Open source →
  17. 2.0.0 28 Mar 2021
    Release notes
    • require PHP 8+
    • drop support for PHP 7.x
    • convert syntax to PHP 8
    • remove deprecated methods
    • use php-cs-fixer & github workflow
    Open source →
  18. 1.0.10 07 Dec 2020
    Release notes
    • handle multiple user-agent (#29)
    Open source →
  19. 1.0.9 27 Nov 2020
    Release notes
    • add support for PHP 8.0 + move to GitHub actions (#27)
    Open source →
  20. 1.0.7 29 Apr 2020
    Release notes
    • fix find robots meta tag line if minified code (#23)
    Open source →
  21. 1.0.6 18 Apr 2020
    Release notes
    • fix headers checking (nofollow, noindex) for custom userAgent (#21)
    Open source →
  22. 1.0.5 07 Aug 2019
    Release notes
    • improvements around handling of wildcards, end-of-string, query string
    Open source →
  23. 1.0.4 07 Aug 2019
    Release notes
    • improve readability
    Open source →
  24. 1.0.3 11 Mar 2019
    Release notes
    • fix parsing robotstxt urls with keywords (#14)
    Open source →
  25. 1.0.2 11 Jan 2019
    Release notes
    • make robots.txt check case insensitive
    Open source →
  26. 1.0.1 08 May 2018
    Release notes
    • prevent exception if the domain has no robots.txt
    Open source →
  27. 1.0.0 07 May 2018
    Release notes
    • initial release
    Open source →
  28. 0.1.3 04 May 2018

    Nothing published for this version

  29. 0.1.2 04 May 2018

    Nothing published for this version

  30. 0.1.1 04 May 2018

    Nothing published for this version

  31. 0.1.0 09 Mar 2018

    Nothing published for this version

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive