404 error for ads.txt file in root folder

I added an ads.txt file to my website around 12 hours ago (at time of writing), https://stephenallwright.com/ads.txt/ , by adding it to the root folder and deploying it via GitHub actions.

But when I try to load the page I get a 404 page not found error.

The debugging steps I have tried so far:

  1. I downloaded the theme from the design dashboard and I can see that the ads.txt file is there in the root folder as expected.
  2. I use Cloudflare so I suspected it could be a cache issue, so I purged the cache but this didn’t solve the problem
  3. I’ve deleted my local cache which also didn’t solve the issue
  4. I upgraded to the latest version of Ghost

Any thoughts on why this wouldn’t be showing up?

https://stephenallwright.com/ads.txt does not 404 for me :slight_smile:

Can you attach a screenshot?

Make sure to remove the trailing slash in the url you specified!

$ curl -i --silent https://stephenallwright.com/ads.txt | grep -i -e '^status:' -e google
status: 200 OK
google.com, pub-4403729770430105, DIRECT, f08c47fec0942fa0
2 Likes

How do you add the ads.txt to a hosted blog (not self-hosted)?