Check the authenticity of given link and store it in a mysql table using php
<p>How to check if the user given link is a link belonging to a particular website or not? I am using php. Should I use preg or is there a function for it? Can i also check if the link is broken or not? Is there a function for it? How can i make sure to delete malacious links or is it not possible to handle it automatically? Should i us the following function?
    <code>$link=mysql_real_escape_string($_GET['link']);</code></p>
