Join the Webstudio community

Updated 2 months ago

Ads.txt in main directory

At a glance

The post asks how to add an ads.txt file, which is required for sites monetized with Adsense, to the main directory. The community members discuss several options, including rerouting through a Cloudflare account, rewriting the routing to serve the file from any hosting, and adding the ability to create and edit files directly in the builder. However, there is no explicitly marked answer in the comments.

All sites monetized with Adsense, etc. need an ads.txt file in the main directory. How can this be done?
O
v
5 comments
currently via your cloudflare account by rerouting it
Thank you @Oleg Isonen . By "rerouting" do you mean a 302/301 redirect or something else?
well you could just rewrite the routing to anything you want and serve that file from any hosting including from a cloudflare worker or any static file hosting, even from a github repo
Got it. Thanks Oleg.
that being said we already decided to add ability to create files and edit them in the builder
Add a reply
Sign up and join the conversation on Discord