Is there a way to find if ad url is valid
I tried this code
if (filter_var($url, FILTER_VALIDATE_URL) === FALSE) {
echo 'Not a valid URL';
}
else
echo 'Ok';
but if I try with http://www.gsrgrs.grsgsrg
, for example, the result is ok.
Edit: The goal is to see if there's a live website there.