Author Topic: Help with a script  (Read 2332 times)

0 Members and 1 Guest are viewing this topic.

Offline jinxmchue

  • Hero Member
  • *****
  • Posts: 3841
  • Reputation: +114/-26
Help with a script
« on: September 22, 2009, 11:41:17 AM »
I found a referral-based blocking script and I'd like to know if I can change the effect of a successful block from this:

if (failed>0){
alert("Access to the page denied!")
history.go(-1)

To a redirect.

Offline Texacon

  • Super
  • Hero Member
  • *****
  • Posts: 12309
  • Reputation: +1248/-55
  • All The Way!
Re: Help with a script
« Reply #1 on: September 22, 2009, 11:58:31 AM »
I found a referral-based blocking script and I'd like to know if I can change the effect of a successful block from this:

if (failed>0){
alert("Access to the page denied!")
history.go(-1)

To a redirect.

There's your problem right there.  Your little 'man' figure has the wrong HAIR!  You need to have some other hair ... try it like this;

=0){ 

See ... he is much cooler now.

Good Luck!

KC

 :-)

Yeah, I'm a smart ass.  Sorry.
  Build a man a fire and he'll be warm for a day.  Set a man on fire and he will be warm for the rest of his life.

*Stolen

Offline jinxmchue

  • Hero Member
  • *****
  • Posts: 3841
  • Reputation: +114/-26
Re: Help with a script
« Reply #2 on: September 22, 2009, 12:13:13 PM »
I think I found it.  Change the last line to this:

window.location='http://www.dynamicdrive.com';

Or whatever url I want.
« Last Edit: September 22, 2009, 12:14:56 PM by jinxmchue »