Introduction | robots-txt-rust | Spatie      

 SPATIE  

robots-txt-rust
===============

spatie.be/open-source

  [Docs](https://spatie.be/docs)  [Robots-txt-rust](https://spatie.be/docs/robots-txt-rust/v1)  Introduction

 Version   v1      

 Other versions for crawler [v1](https://spatie.be/docs/robots-txt-rust/v1) 

  Introduction    
- [ Introduction ](https://spatie.be/docs/robots-txt-rust/v1/introduction)
- [ Support us ](https://spatie.be/docs/robots-txt-rust/v1/support-us)
- [ Installation ](https://spatie.be/docs/robots-txt-rust/v1/installation-and-setup)
- [ Usage ](https://spatie.be/docs/robots-txt-rust/v1/usage)
- [ Testing ](https://spatie.be/docs/robots-txt-rust/v1/testing)
- [ Changelog ](https://spatie.be/docs/robots-txt-rust/v1/changelog)
- [ PHP compatibility ](https://spatie.be/docs/robots-txt-rust/v1/compatibility)

  Robots-txt-rust 
=================

 Parse robots.txt, robots meta tags and X-Robots-Tag headers 

### Useful links

- [Repository](https://github.com/spatie/robots-txt-rust)
- [Discussions](https://github.com/spatie/robots-txt-rust/discussions)

Introduction
------------

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

This is the Rust port of [spatie/robots-txt](https://github.com/spatie/robots-txt). It includes robots.txt rules and crawl delays, robots meta tags, X-Robots-Tag headers, and a checker that combines them.

```
let robots_txt = RobotsTxt::new("
  User-agent: *
  Disallow: /admin
  Crawl-delay: 1.5
");

robots_txt.allows_for("/admin", "google"); // false
robots_txt.crawl_delay(); // Some("1.5")
```

Continue with [installation](installation-and-setup) and [usage](usage).

 A good
match?
-------------

### What we do best

- All things Laravel
- Custom frontend components
- Building APIs
- AI-powered features
- Simplifying things
- Clean solutions
- Integrating services

### Not our cup of tea

- WordPress themes
- Cutting corners
- Free mockups to win a job
- "Just execute the briefing"

 In short: we'd like to be a **substantial part** of your project.

 [ Get in touch via email ](mailto:info@spatie.be?subject=A%20good%20match%21&body=Tell%20us%20as%20much%20as%20you%20can%20about%0A-%20your%20online%20project%0A-%20your%20planning%0A-%20your%20budget%0A-%20%E2%80%A6%0A%0AAnything%20that%20helps%20us%20to%20start%20straightforward%21)
