Home / Guides / Setting up ads.txt
How to upload ads.txt on cPanel, hPanel and aaPanel hosting
By the ads-txt.in team · Published November 8, 2026
Most websites run on a hosting control panel. The exact menus differ, but the goal is always the same: put a file named ads.txt in the folder that serves your domain’s home page.
cPanel
- Open File Manager.
- Go to public_html for your main domain, or to the document root of an addon domain (shown in the Domains section).
- Click + File, name it ads.txt, then edit it and paste your lines. Or upload the file you made with our generator.
Hostinger hPanel
Open Files → File Manager for the website and upload the file into public_html.
aaPanel
- Open Website and note the site’s root directory, usually /www/wwwroot/yourdomain.com.
- Open Files, go to that folder and create or upload ads.txt.
- Check that the file owner is the web server user (often www) and permissions are 644, so the server can read it.
Apache vs Nginx
Both servers send .txt files as text/plain by default, which is what ad crawlers expect. Problems usually come from rewrite rules. On Apache, a .htaccess rule that sends every request to index.php normally skips real files, so ads.txt still works. On Nginx, a try_files $uri $uri/ /index.php rule also serves real files first. If you see your home page instead of the file, the file is probably not in the root folder you think it is.
Redirects and HTTPS
It is fine to redirect http to https, and the root domain to www or the other way round. Keep the redirects within your own domain and avoid long chains. Our checker shows every redirect it follows.
Cloudflare and firewalls
If your site uses Cloudflare or another firewall, aggressive bot protection can challenge crawlers. If our checker or AdSense cannot read the file while your browser can, look at the firewall events for blocked requests to /ads.txt and create an exception for that path.