What Are security.txt and ads.txt?
security.txt is a small text file at /.well-known/security.txt (RFC 9116) that tells security researchers how to report vulnerabilities. ads.txt and app-ads.txt are IAB Tech Lab standards that list which advertising systems are authorized to sell a publisher's inventory, preventing ad fraud and domain spoofing.
- security.txt
- Contact, Expires, Canonical, Policy, Encryption & PGP signature
- ads.txt
- Record syntax, DIRECT/RESELLER counts, ad systems, variables
- app-ads.txt
- Same validation for mobile and CTV app publishers
- Error Report
- Line-by-line errors with clear fixes
Make Vulnerability Reporting Easy
Without a published contact, researchers who find a flaw may not know whom to tell, and reports can end up on social media instead. A valid security.txt with a monitored address and a disclosure policy shows that you take security seriously and is increasingly expected by enterprise customers and bug bounty platforms.
Required Fields
| File | Required | Recommended |
|---|---|---|
| security.txt | Contact, Expires (< 1 year) | Canonical, Policy, Preferred-Languages, PGP signature |
| ads.txt | domain, publisher ID, DIRECT|RESELLER | Certification authority ID, contact=, ownerdomain= |
| app-ads.txt | Same as ads.txt | Hosted on the developer website listed in app stores |
How to Validate These Files
-
1 Enter your domain
Type the site domain; files are fetched from their standard locations.
-
2 Review each file
See parsed fields, record counts and any errors with line numbers.
-
3 Fix and re-check
Update the files on your server and validate again.
Frequently Asked Questions
Where must security.txt be placed?
At https://yourdomain/.well-known/security.txt, served as text/plain over HTTPS. A copy at /security.txt is optional.
Why does security.txt need an Expires date?
It prevents researchers from relying on outdated contact details. RFC 9116 recommends setting it less than a year ahead and renewing it regularly.
Do I need ads.txt if I do not show ads?
No. ads.txt is only needed by publishers that sell programmatic advertising.
What is the difference between DIRECT and RESELLER?
DIRECT means you control the ad account yourself; RESELLER means a third party is authorized to resell your inventory through that ad system.