How to Set Up Your Ads.txt Redirection with Cloudflare

Redirecting your ads.txt file through Cloudflare allows you to point advertisers to the correct authorized sellers list without hosting it manually. This is useful if you want Sevio to host and manage your ads.txt file while still making it accessible under your domain (e.g., domain.com/ads.txt).

With this method, you ensure your ads.txt is always accurate, up to date, and compliant with Sevio Ad Manager requirements.

Before you begin, make sure you have:

  • An active Cloudflare account connected to your domain.
  • The destination ads.txt URL is provided by Sevio Ad Manager.

Step-by-Step: Setting Up Ads.txt Redirection in Cloudflare

Step 1. Log in to Cloudflare and Select Your Domain

Go to cloudflare.com and sign in. From your dashboard, click the domain where you want to set up the ads.txt redirection.

Step 2. Navigate to Page Rules and Create a New Rule

In the left-hand menu, click "Rules" and then select "Page Rules." Click "Create Page Rule" to start configuring the redirect.

Step 3. Enter the URL Pattern

  1. Type your full ads.txt address in the URL field using this format: https://yourdomain.com/ads.txt. Replace yourdomain.com with your actual domain name.
  2. For "Then the settings are", select "Forwarding URL".
  3. In the status code dropdown, choose 301 – Permanent Redirect.
  4. In the Destination URL field, paste the ads.txt link provided by Sevio Ad Manager. Make sure to use the exact link you received in the platform, as it will be unique to your account. It looks something like "https://cdn.adx.ws/adstxt/xxxxxxxx-xxx-xxx-xxxxx.txt".

Step 4. Save and Deploy the Page Rule

Click "Save and Deploy". Your redirection will now be active, and your Sevio-hosted ads.txt will be accessible under your domain.

FAQ

Why use a redirect for ads.txt?

Redirecting ensures your ads.txt file is always up-to-date without manual edits, reducing the risk of errors and maintaining advertiser trust.

Why does Sevio require ads.txt?

Sevio Ad Manager prioritizes inventory integrity. Using a valid ads.txt file ensures only authorized sellers can monetize your ad space, helping prevent ad fraud.

Can I use this setup for multiple domains?

Yes. Repeat these steps for each domain you manage, using the correct ads.txt link from your Sevio account.

Where can I find the ads.txt destination URL provided by Sevio Ad Manager?

You can find your unique ads.txt destination URL in Step 3 of the ad inventory creation process inside Sevio Ad Manager. When you choose Sevio to host your ads.txt file, the platform will display your specific link, which you can copy and use in your Cloudflare Page Rule.

Was this article helpful?
0 out of 0 found this helpful

Got a more specific question?

Please consider discussing it with one of our specialists.

Contact Us