root/LayoutTests/http/tests/security/resources/no-referrer.php

/* [<][>][^][v][top][bottom][index][help] */
<?php
header("Cache: no-cache, no-store");

$refer = $_SERVER['HTTP_REFERER'];
if ($refer && $refer != "")
    print("log('External script (HTTP Referer): FAIL');\n");
else
    print("log('External script (HTTP Referer): PASS');\n");
?>
if (document.referrer.toString() != "")
    log('External script (JavaScript): FAIL');
else
    log('External script (JavaScript): PASS');

/* [<][>][^][v][top][bottom][index][help] */