# robots.txt

**URL:** <https://community.hubspot.com/t/robots-txt/101101>\
**Category:** Content Strategy & SEO\
**Created:** [February 26, 2024, 5:00pm UTC](https://community.hubspot.com/t/robots-txt/101101 "2024-02-26T17:00:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![JaganPrasath](https://avatars.discourse-cdn.com/v4/letter/j/d6d6ee/32.png) [@JaganPrasath](https://community.hubspot.com/u/JaganPrasath)\
**Post date:** [February 26, 2024, 5:00pm UTC](https://community.hubspot.com/t/robots-txt/101101/1 "2024-02-26T17:00:48Z")

</div>

If we are not adding robots.txt file to a website,crawlers will crawl through all the contents in the webpage, so why do we need to crawl define the statement?.

I know the main function is to block crawlers from accessing few specified content. Other then this in what way it helps?

---

<div class="post-metadata">

**Author:** ![jnix284](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jnix284/32/29_2.png) [@jnix284](https://community.hubspot.com/u/jnix284)\
**Post date:** [February 26, 2024, 5:30pm UTC](https://community.hubspot.com/t/robots-txt/101101/2 "2024-02-26T17:30:03Z")

</div>

Hi @JaganPrasath you’ll want to use the robots.txt to exclude any landing pages you don’t want crawled (this could be for ad campaigns or other landing pages you don’t want revealed in search).

[This blog about robots.txt](https://blog.hubspot.com/marketing/robots-txt-file) is really comprehensive to answer your questions!
