Skip to main content

path_allowed

Function path_allowed 

Source
pub fn path_allowed(path: &str, disallows: &[&str]) -> bool
Expand description

Returns true when path is allowed by a simple robots Disallow set. Empty disallow list means allow all. Exact prefix match on path.