How to detect if link is from a particular domain
<p>I need to be able to detect with PHP if a link is from a particular domain. I can not just check if domain is present in the link because it can be faked by appending domain.</p>

<p>Thanks.</p>
