...
Replace
{domain}
with the actual website domainThe protocol can be either HTTP or HTTPS. The file is available through an HTTPS and HTTP connection. However, it is advisable to prefer HTTPS connections over HTTP when crawling ads.txt files
The ads.txt file is automatically updated on the CDN to reflect the latest state of the website setup. The website must always use the latest ads.txt version available to maximize revenue.
...
The IAB ads.txt specification allows multiple redirects within the scope of the website’s root domain, but only a single redirect to a destination outside the original root domain. In addition, it authorizes the response to have the following status codes: 301, 302, and 307. The redirect must be implemented as a single hop to the Snigel CDN.
Implement Redirect on CMS
Many of the available CMSs in the market support redirect, and since some will even override CDN settings, this is the advised place to do the redirect whenever possible.
Implement Redirect on CDN
If the website is delivered through a CDN, like for example Cloudflare, implement the redirect on the CDN level through the CDN provider UI or API. Consult your CDN provider's documentation on how to implement redirects.
Cloudflare Guide: https://support.cloudflare.com/hc/en-us/articles/4729826525965-Configuring-URL-forwarding-or-redirects-with-Page-Rules
Note |
---|
Traffic must pass through Cloudflare for Page Rules to work. If you only use Cloudflare for DNS, Page Rules are not active. |
Implement Redirect on Apache Web Server using .htaccess
...
If you have implemented ads.txt using a redirect to the Snigel CDN, you should see in the browser address bar http://cdn.snigelweb.com/adengine/{domain}/ads.txt
or https://cdn.snigelweb.com/adengine/{domain}/ads.txt
.
The browser should show an ads.txt file similar to the following example:
...