well yeah, but why would they want to block out the "orange website"?
if (document.referrer === 'https://news.ycombinator.com/')
window.location = 'https://cdn.jwz.org/images/2016/hn.png'
Or something along those lines should work. <script>
if(document.referrer == "https://news.ycombinator.com/") {
// Mess with HN users here...
}
</script> <!-- DO HN STUFF HERE
<script>
if(document.referrer == "https://news.ycombinator.com/") {
window.location = 'https://bbenchoff.github.io/images/Brogrammers.png'
}
</script>
-->[1]: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Re...