HTTP

 Referer: ' . $_SERVER["HTTP_REFERER"] . '' : 'None' ?>

JavaScript

 window.opener: Enable JavaScript

 document.referrer: Enable JavaScript

 window.name: Enable JavaScript

Test yourself

window.open()

<a>

<iframe>