Thread: javascript
View Single Post
Old 04-16-2014, 03:21 AM  
CPA-Rush
small trip to underworld
 
Industry Role:
Join Date: Mar 2012
Location: first gen intel 80386/nintendo-gb/arcade/ps1/internet person
Posts: 4,927
sarettah this worked with me just after doing little change


Code:
if (document.referrer.indexOf('https://gfy.com/') > -1)
    {
     window.location='http://yahoo.com';
}
else if (document.referrer.indexOf('https://gfy.com/forum') > -1)
    {
     window.location='http://msn.com';
}
else 
  {
     window.location='http://www.google.com';
}



thanks

Quote:
Browsers do not always provide a document.referrer. If the referrer is from a https it is blocked, or if the security settings in the broswer block it none is provided. These people will never get past the page and will be cut off from being able to use your site
they will go to http://www.google.com , right ?
__________________

automatic exchange - paxum , bitcoin,pm, payza

. daizzzy signbucks caution will black-hat black-hat your traffic

ignored forever :zuzana designs
CPA-Rush is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook