> > I created a small javascript code that redirects the
> > pages if the referrers include any of those domains.

> I'd appreciate seeing that code.

Sure. Here it is...

var str = document.referrer

var wbsite = new Array(3) //--- number 3 changes depending on lengh of array

wbsite[0] = "domain1.com"  // --- list of unwanted domains
wbsite[1] = "domain2.org"
wbsite[2] = "domain3.net"
// ...etc ... depending on lengh of array


//--- number 2 below changes depending on lengh of array

for (i = 0; i <= 2; i++)  {
  if (str.match(wbsite[i])) {
  document.location="http://www.yourdomain.com/redirectpage.html";
  }
}


+------------------------------------------------------------------------
|  TO UNSUBSCRIBE from this list:
|    http://lists.meer.net/mailman/listinfo/analog-help
|
|  Usenet version: news://news.gmane.org/gmane.comp.web.analog.general
|  List archives:  http://www.analog.cx/docs/mailing.html#listarchives
+------------------------------------------------------------------------

Reply via email to