This is a Python script that validates a list of domains against a set of valid top-level domains (TLDs). It provides a summary report of the valid and invalid domains.
- Validates domains against a list of valid TLDs
- Provides a summary report with the number of valid and invalid domains
- Supports displaying valid or invalid domains separately
- Clone the repository:
git clone https://github.com/your-username/tld-validation-tool.git
- Install the required dependencies:
pip3 install -r requirements.txt
- Run the script with the necessary arguments:
python3 tld_validation.py -df domains.txt
options:
-h, --help show this help message and exit
-df DOMAINS, --domains domains file
-tf VALIDTLD, --validtld valid TLD file (default valid_tld.txt from SecLists )
-in, --invaliddomains invalid domains list in result
-ex EXCLUDE, --exclude EXCLUDE exclude tld (.tld1,.tld2,...)
-s, --silent silent report
If you find any issues or have suggestions for improvements, feel free to open an issue or submit a pull request.