Skip to contents

Validates and sanitizes domain names to prevent injection attacks while allowing legitimate domain analysis.

Usage

sanitize_domain(domain)

Arguments

domain

Character string representing a domain name

Value

Sanitized domain or throws error if invalid