Input validation.

Input cannot be empty.
Input must be a valid URL.
Input cannot have the same host address as the service. This prevents redirect loops.