First lets define a \"URL\" according to my requirements.
The only protocols optionally allowed are http:// and https://
http://
https://
then a man
You could use parse_url to break up the address into its components. While it's explicitly not built to validate a URL, analyzing the resulting components and matching them against your requirements would at least be a start.