Poor mans trust seal starter

<!-- Add this link to the page to display the seal -->

<script type="text/javascript" src="http://myhyperspace.com/seal.php?host_name=testing.myhyperspace.com"></script>

<?php //Add this to the file on the trust seal site pooled when loading verified sites

$accepted_host_name = 'testing.myhyperspace.com';//For example only the below conditional would be a check to the database using referer domain name

$referring_domain = parse_url($_SERVER['HTTP_REFERER']);

if($referring_domain['host'] == $accepted_host_name) echo 'document.write("Domain Verified");';//Serve seal image instead of text
else echo 'document.write("Denied, not the right domain");'; //Serve not verified image or something of the sort here



You must be logged in to post a comment.