3 ms·
You must have a browser setting that blocks Referer headers or disables JavaScript by default. Here is the snippet of code that does the redirect: <script
by divbzero 4y ago
You must have a browser setting that blocks Referer headers or disables JavaScript by default.
Here is the snippet of code that does the redirect:
<script>
try {
if (document.referrer) {
const ref = new URL(document.referrer);
if (ref.host === 'news.ycombinator.com') {
window.location.href = 'https://google.com/';
}
}
} catch (e) {}
</script>