Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Robots Txt Laravel Package

spatie/robots-txt

Spatie's robots-txt package checks whether a page may be indexed or followed using robots.txt rules, robots meta tags, and HTTP headers. It supports custom user agents, custom robots.txt locations, disallow reasons, and crawl delays.

View on GitHub
Deep Wiki
Context7
2.5.5

Fixed

  • Allow rules containing wildcards (*) or end anchors ($) can now override less-specific Disallow rules. Fixes #88.
  • Allow and Disallow specificity now use the same pattern matching, so a longer matching wildcard Disallow also correctly overrides a shorter Allow.
  • Allow wins when matching Allow and Disallow rules have equal lengths, following RFC 9309 section 2.2.2.

Compatibility note

These corrections can change crawl decisions in either direction: some previously denied URLs become allowed, and some previously allowed URLs become denied. There are no public API or dependency changes.

Verification

  • Full local suite: 57 tests, 172 assertions, no skips or failures.
  • GitHub CI passed on PHP 8.2, 8.3, 8.4, and 8.5.

Full Changelog: https://github.com/spatie/robots-txt/compare/2.5.4...2.5.5

2.5.4

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

2.5.3

What's Changed

New Contributors

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

2.5.2

What's Changed

New Contributors

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

2.5.1

What's Changed

New Contributors

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

2.5.0

What's Changed

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

2.4.0

What's Changed

New Contributors

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

2.3.1

What's Changed

New Contributors

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

2.3.0

What's Changed

New Contributors

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

2.2.3

What's Changed

New Contributors

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

2.2.2

What's Changed

New Contributors

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

2.2.1

What's Changed

New Contributors

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

2.2.0

What's Changed

New Contributors

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

2.1.0

What's Changed

New Contributors

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

2.0.3

What's Changed

New Contributors

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

2.0.2

What's Changed

New Contributors

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

2.0.1
  • added x-robots-tag: none (#32)
2.0.0
  • 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.10
  • handle multiple user-agent (#29)
1.0.9
  • add support for PHP 8.0 + move to GitHub actions (#27)
1.0.7
  • fix find robots meta tag line if minified code (#23)
1.0.6
  • fix headers checking (nofollow, noindex) for custom userAgent (#21)
1.0.5
  • improvements around handling of wildcards, end-of-string, query string
1.0.4
  • improve readability
1.0.3
  • fix parsing robotstxt urls with keywords (#14)
1.0.2
  • make robots.txt check case insensitive
1.0.1
  • prevent exception if the domain has no robots.txt
1.0.0
  • initial release
0.1.3

Even more header parsing improvements.

0.1.2

Better header parsing

0.1.1
  • Add extra null check.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
novasa/laravel-language-center
opencage/geocode
adolfoholzer/parameters
livenetworks/ln-starter
shitoudev/permissionmanager
johannesclimacus/laravel-tui
hocvt/seotools
vitalybaev/sypexgeo
amphibee/themosis-ignition
gito-me/fast-excel
frankyso/laravel-ipaymu
geolize-studio/laravel-chile
boomerangui/chat
cgv/localized-resource
noith/settings
kda/laravel-package
kda/filament-dynamic-navigation
bypersoft/signbox
pairus/product-data
fayne/laravel-filament-cms-core