---
title: How to Ensure the ads.txt file is Accessible and Crawlable
description: An ads.txt file helps you control who is authorized to sell your ad inventory and protects your brand from fraudulent or unauthorized reselling.
---

[Skip to content](https://help.mgid.com/how-to-ensure-the-ads.txt-file-is-accessible-and-crawlable#main-content)

- [English](https://help.mgid.com/how-to-ensure-the-ads.txt-file-is-accessible-and-crawlable)
- [Español](https://help.mgid.com/es/how-to-ensure-the-ads.txt-file-is-accessible-and-crawlable)
- [Français](https://help.mgid.com/fr/how-to-ensure-the-ads.txt-file-is-accessible-and-crawlable)
- [Italiano](https://help.mgid.com/it/how-to-ensure-the-ads.txt-file-is-accessible-and-crawlable)
- [Polski](https://help.mgid.com/pl/how-to-ensure-the-ads.txt-file-is-accessible-and-crawlable)
- [Português - Brasil](https://help.mgid.com/pt-br/how-to-ensure-the-ads.txt-file-is-accessible-and-crawlable)
- [Tiếng Việt](https://help.mgid.com/vi/how-to-ensure-the-ads.txt-file-is-accessible-and-crawlable)
- [Українська](https://help.mgid.com/uk/how-to-ensure-the-ads.txt-file-is-accessible-and-crawlable)
- [ไทย](https://help.mgid.com/th/how-to-ensure-the-ads.txt-file-is-accessible-and-crawlable)

English

Show submenu for translations

![MGID\_Logo\_Help\_Center\_W\_R\_Swoosh.svg\]](https://help.mgid.com/hubfs/MGID_Logo_Help_Center_W_R_Swoosh.svg)

- [Advertisers](https://www.mgid.com/advertisers)
- [Publishers](https://www.mgid.com/publishers)
- [Contact Us](https://www.mgid.com/about#tabs-contactus)

Open main navigation

Close main navigation

- [Advertisers](https://www.mgid.com/advertisers)
- [Publishers](https://www.mgid.com/publishers)
- [Contact Us](https://www.mgid.com/about#tabs-contactus)
- - [English](https://help.mgid.com/how-to-ensure-the-ads.txt-file-is-accessible-and-crawlable)
    - [Español](https://help.mgid.com/es/how-to-ensure-the-ads.txt-file-is-accessible-and-crawlable)
    - [Français](https://help.mgid.com/fr/how-to-ensure-the-ads.txt-file-is-accessible-and-crawlable)
    - [Italiano](https://help.mgid.com/it/how-to-ensure-the-ads.txt-file-is-accessible-and-crawlable)
    - [Polski](https://help.mgid.com/pl/how-to-ensure-the-ads.txt-file-is-accessible-and-crawlable)
    - [Português - Brasil](https://help.mgid.com/pt-br/how-to-ensure-the-ads.txt-file-is-accessible-and-crawlable)
    - [Tiếng Việt](https://help.mgid.com/vi/how-to-ensure-the-ads.txt-file-is-accessible-and-crawlable)
    - [Українська](https://help.mgid.com/uk/how-to-ensure-the-ads.txt-file-is-accessible-and-crawlable)
    - [ไทย](https://help.mgid.com/th/how-to-ensure-the-ads.txt-file-is-accessible-and-crawlable)

  English
  
  Show submenu for translations
- Contact us

 Contact us

 Welcome to MGID! How can we help you?

- There are no suggestions because the search field is empty.

1. [Help Center Home](https://help.mgid.com/?hsLang=en)
2. [Publishers](https://help.mgid.com/publishers?hsLang=en)
3. [Types of integration](https://help.mgid.com/publishers?hsLang=en#types-of-integration)

# How to Ensure the ads.txt file is Accessible and Crawlable

An ads.txt file helps you control who is authorized to sell your ad inventory and protects your brand from fraudulent or unauthorized reselling. For it to work effectively, ad platforms must be able to crawl and read your file without issues.

Once your ads.txt file is created and placed at your domain’s root, crawlers will attempt to access it. Follow the steps below to ensure everything is set up correctly and functioning smoothly.

Key checks to ensure proper crawling:

**1. Make sure the ads.txt file is available**

Open domain.com/ads.txt in your browser and confirm it loads successfully. Avoid errors like: 404 (Not Found) and 500 (Server Error). These indicate the file is inaccessible and cannot be crawled.

**2. Confirm that the ads.txt file can be reached from the root domain**

Your ads.txt must be accessible from the root domain. 

- *Example:* domain.com/ads.txt

If your site uses “www”, ensure proper redirection:

- from domain.com/ads.txt to www.domain.com/ads.txt

Without this, crawlers may not find your file.

**3. Check robots.txt permissions**

Your robots.txt file should not block access to the ads.txt file.

Make sure it does **NOT:**

- Restrict the ads.txt URL path
- Block specific crawlers (user agents)

Otherwise, your ads.txt may be ignored.

**4. Confirm a successful response (HTTP 200)**

Your ads.txt file must return a 200 OK status, which confirms:

- The file is correctly implemented
- The request is successful

**5. Avoid formatting issues**

Even small errors can cause problems. Watch out for:

- Invalid characters
- Incorrect spacing or hidden whitespace

These issues can prevent crawlers from processing your file properly.

**6. Ensure an ads.txt file access via HTTP and HTTPS**

Crawlers check both versions:

- http://domain.com/ads.txt
- https://domain.com/ads.txt

You should:

- Either make the file available on both
- Or set up proper redirects between them

*Examples:*

**For HTTP only** (e.g., http://domain.com/ads.txt): set up a redirection so that when the crawler searches https://domain.com/ads.txt the site redirects to http://domain.com/ads.txt.

**For HTTPS only** (e.g., https://domain.com/ads.txt): set up a redirection so that when the crawler searches http://domain.com/ads.txt the site redirects to https://domain.com/ads.txt.

**For both HTTP and HTTPs protocols**: requesting http://domain.com/ads.txt and https://domain.com/ads.txt should show the ads.txt file.

- [Advertisers](https://help.mgid.com/advertisers?hsLang=en#main-content)

    - [Get started with MGID Ads](https://help.mgid.com/advertisers?hsLang=en#get-started-with-mgid-ads)
    - [Campaign Setup & Management](https://help.mgid.com/advertisers?hsLang=en#campaign-setup-management)
    - [CPA Tune](https://help.mgid.com/advertisers?hsLang=en#cpa-tune)
    - [Conversion tracking: general](https://help.mgid.com/advertisers?hsLang=en#conversion-tracking-general)
    - [Tracking with MGID Pixel](https://help.mgid.com/advertisers?hsLang=en#tracking-with-mgid-pixel)
    - [Postback & Trackers](https://help.mgid.com/advertisers?hsLang=en#postback-trackers)
    - [Affiliate Networks Integration](https://help.mgid.com/advertisers?hsLang=en#affiliate-networks-integration)
    - [Webhook tracking method & Integrations](https://help.mgid.com/advertisers?hsLang=en#webhook-tracking-method-integrations)
    - [Native integrations](https://help.mgid.com/advertisers?hsLang=en#native-integrations)
    - [Ad Creatives Management](https://help.mgid.com/advertisers?hsLang=en#ad-creatives-management)
    - [Campaign Optimization & Performance](https://help.mgid.com/advertisers?hsLang=en#campaign-optimization-performance)
    - [FAQ](https://help.mgid.com/advertisers?hsLang=en#faq)
    - [MGID Video Guides](https://help.mgid.com/advertisers?hsLang=en#mgid-video-guides)
- [Publishers](https://help.mgid.com/publishers?hsLang=en#main-content)

    - [General](https://help.mgid.com/publishers?hsLang=en#general)
    - [Prohibited content and practices](https://help.mgid.com/publishers?hsLang=en#prohibited-content-and-practices)
    - [Types of integration](https://help.mgid.com/publishers?hsLang=en#types-of-integration)
    - [Compliance](https://help.mgid.com/publishers?hsLang=en#compliance)
    - [Payment](https://help.mgid.com/publishers?hsLang=en#payment)
    - [FAQ](https://help.mgid.com/publishers?hsLang=en#faq)
- [Ad Quality Policies and Creative Guidelines](https://help.mgid.com/ad-quality-policies-and-creative-guidelines?hsLang=en#main-content)

    - [Ad Approval & Compliance Guidelines](https://help.mgid.com/ad-quality-policies-and-creative-guidelines?hsLang=en#ad-approval-compliance-guidelines)
    - [Creative AI Hub](https://help.mgid.com/ad-quality-policies-and-creative-guidelines?hsLang=en#creative-ai-hub)
    - [Creative Hub](https://help.mgid.com/ad-quality-policies-and-creative-guidelines?hsLang=en#creative-hub)
    - [Compliance & Security](https://help.mgid.com/ad-quality-policies-and-creative-guidelines?hsLang=en#compliance-security)
- [Advertisers Super Client Account](https://help.mgid.com/advertisers-super-client-account?hsLang=en#main-content)

    - [Clients](https://help.mgid.com/advertisers-super-client-account?hsLang=en#clients)
- [Fraud Prevention](https://help.mgid.com/fraud-prevention?hsLang=en#main-content)

    - [Fraud Prevention](https://help.mgid.com/fraud-prevention?hsLang=en#fraud-prevention)
- [API](https://help.mgid.com/api?hsLang=en)
- [DSP](https://help.mgid.com/dsp?hsLang=en)
- [SSP](https://help.mgid.com/ssp?hsLang=en)

- [Advertisers](https://www.mgid.com/advertisers)
- [Publishers](https://www.mgid.com/publishers)
- [Contact Us](https://www.mgid.com/about#tabs-contactus)

[![Chill listening crop-3](https://help.mgid.com/hubfs/MGID_Logo_Icon_HC.svg "Chill listening crop-3")](https://www.mgid.com)

Native performance through innovation

<https://facebook.com/mgidglobal/> <https://twitter.com/mgid/> <https://www.linkedin.com/company/mgid-inc->

Copyright © 2026, MGID Inc.