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 2026Releases
latest 31-
2.5.425 Feb 2026Release notes
Open source →Send user agent header with file_get_contents requests to prevent Cloudflare and similar WAFs from blocking requests
Release notes
Open source →Send user agent header with file_get_contents requests to prevent Cloudflare and similar WAFs from blocking requests
-
2.5.320 Nov 2025Release notes
Open source →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
Release notes
Open source →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
-
2.5.219 Sep 2025Release notes
Open source →What's Changed
- Bump aglipanci/laravel-pint-action from 2.5 to 2.6 by @dependabot[bot] in #73
- Bump actions/checkout from 4 to 5 by @dependabot[bot] in #72
- Update issue template by @AlexVanderbist in #77
- fix(#75) : fix an issue that subsequence file_get_contents calls can cause 429 status error by @sebestenyb in #76
New Contributors
- @AlexVanderbist made their first contribution in #77
- @sebestenyb made their first contribution in #76
Full Changelog: 2.5.1...2.5.2
Release notes
Open source →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
-
2.5.101 Jul 2025Release notes
Open source →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
- @chapeupreto made their first contribution in #71
Full Changelog: 2.5.0...2.5.1
Release notes
Open source →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
-
2.5.023 May 2025Release notes
Open source →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
Release notes
Open source →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
-
2.4.022 May 2025Release notes
Open source →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
Release notes
Open source →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
-
2.3.131 Jan 2025Release notes
Open source →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
- @DavidGoodwin made their first contribution in #61
Full Changelog: 2.3.0...2.3.1
Release notes
Open source →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
-
2.3.027 Jan 2025Release notes
Open source →What's Changed
- Update phpunit/phpunit requirement from ^9.0|^10.0 to ^11.5.2 by @dependabot in #59
- "Allow" Handling by @Dwarfex in #60
New Contributors
Full Changelog: 2.2.3...2.3.0
Release notes
Open source →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
-
2.2.322 Oct 2024Release notes
Open source →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
-
2.2.225 Sep 2024Release notes
Open source →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
- @dependabot made their first contribution in #47
- @mattfo0 made their first contribution in #46
Full Changelog: 2.2.1...2.2.2
Release notes
Open source →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
-
2.2.109 Aug 2024Release notes
Open source →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
-
2.2.022 Apr 2024Release notes
Open source →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
-
2.1.019 Apr 2024Release notes
Open source →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
-
2.0.322 Nov 2023Release notes
Open source →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
-
2.0.218 May 2022Nothing published for this version
-
2.0.106 May 2021 -
2.0.028 Mar 2021Release notes
Open source →- require PHP 8+
- drop support for PHP 7.x
- convert syntax to PHP 8
- remove deprecated methods
- use php-cs-fixer & github workflow
-
1.0.1007 Dec 2020 -
1.0.927 Nov 2020 -
1.0.729 Apr 2020 -
1.0.618 Apr 2020 -
1.0.507 Aug 2019 -
1.0.407 Aug 2019 -
1.0.311 Mar 2019 -
1.0.211 Jan 2019 -
1.0.108 May 2018 -
1.0.007 May 2018 -
0.1.304 May 2018Nothing published for this version
-
0.1.204 May 2018Nothing published for this version
-
0.1.104 May 2018Nothing published for this version
-
0.1.009 Mar 2018Nothing published for this version