Sanitize and Validate URLs by Following this PHP Filtering Example