Considering a familiarity with Cloudflare DNS records and configuration, the issue that most of us encounter with ads.txt can be resolved with Github Pages.
This is particularly applicable for the root or apex domain, where ads.txt shall be attached directly, and which doesn't take any subdomain at all including the usual www that we type in our internet browser.
Some browsers automatically use, or point to, www even when you only type the root domain. Majority of popular browsers appeared to be consistent with such a simple but important mechanism especially in the world of both ads and making a profit from getting them displayed in your domain regardless if you are using the root domain or a subdomain for your website.
With blogger.com's Settings and Monetization, upon enabling ads.txt, its content will be displayed along, like "subdomain\ads.txt", as you check through any browser if it's indeed showing the required content.
Simply follow the complete instructions here:
https://docs.github.com/en/pages.
Find the DNS A (IPv4) and AAAA (IPv6) records and configure them to your Cloudflare DNS or any registrar you're currently using--it's where you bought your domain name and let it stayed there.
If you want to have them right away since you are here, here they are:
For A records--
185.199.108.153,
185.199.109.153,
185.199.110.153,
185.199.111.153,
For AAAA records--
2606:50c0:8000::153,
2606:50c0:8001::153,
2606:50c0:8002::153,
2606:50c0:8003::153.
The IP addresses above completes your Github Pages serving as a website and texts files after applying your initial settings. It should be easy to follow as you initiate your custom domain configuration for your Github Pages under your chosen repository's "Settings" and "Pages" sections.
Comments