% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/security.R
\name{sanitize_domain}
\alias{sanitize_domain}
\title{Sanitize domain input}
\usage{
sanitize_domain(domain)
}
\arguments{
\item{domain}{Character string representing a domain name}
}
\value{
Sanitized domain or throws error if invalid
}
\description{
Validates and sanitizes domain names to prevent injection attacks
while allowing legitimate domain analysis.
}
\seealso{
Other security: 
\code{\link{is_api_key_configured}()},
\code{\link{sanitize_file_path}()},
\code{\link{sanitize_hash}()},
\code{\link{sanitize_ip}()},
\code{\link{sanitize_url}()},
\code{\link{security-utilities}}
}
\concept{security}
\keyword{internal}
