Can you set ads.txt to redirect to a file on another server?

Viewed 3184

I've hit a bit of a problem with creating an ads.txt file. I'm working with an advertiser, and they would like to host the ads.txt file so they can easily make changes to it.

Is it possible to set up a redirect in at

mysite.com/ads.txt 

which points to something like

theirsite.com/mysite/ads.txt 

If so, what would be the code to you in mysite.com/ads.txt to make the redirect work?

3 Answers

Per IAB's ads.txt Specification 1.0.1 (September 2017), section 3.1 "ACCESS METHOD",

Only a single HTTP redirect to a destination outside the original root domain is allowed to facilitate one-hop delegation of authority to a third party's web server domain.

So you should be fine with a single redirection from mysite.com/ads.txt >> theirsite.com/mysite/ads.txt.

Related