This n8n workflow automates the process of extracting, validating, and analyzing domain names from URLs or email addresses. It is designed to efficiently handle a wide range of URL formats and top-level domains (TLDs), including complex and country-specific TLDs like ‘co.uk’ or ‘com.au’. The system can identify whether a domain belongs to a free email provider such as Gmail or Outlook, making it ideal for filtering or categorizing email sources.
The workflow begins with a trigger to activate the process, followed by a preparation step that allows dynamic input of URLs or emails. A custom function node then performs domain extraction using advanced parsing logic, which strips away protocols, ports, paths, and other URL components to isolate the core domain. It also matches TLDs against an extensive list to handle diverse domain extensions.
A secondary function checks if the extracted domain is from a free email provider, facilitating actions like spam filtering or account validation. The workflow’s output includes the original input, the cleaned domain name, and a boolean indicator if the domain is a free email provider.
This automation is highly practical for businesses that need to analyze incoming URLs and email addresses in real-time, such as onboarding processes, email validation, web scraping, or data cleansing tasks. It ensures precise domain parsing and source identification, streamlining operational workflows and improving data accuracy.
Reviews
There are no reviews yet.