Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 07-20-2005, 07:50 PM   #1
raster
Confirmed User
 
Join Date: Aug 2003
Posts: 784
ISO Redirection Script

I get a lot of 404 traffic. Often, the same IP hits a page that no longer exists multiple times in a day.

Is there a basic script I could use that would take this user, redirect him to an affiliate. If the same IP comes to a 404 page again in say a 24 hour period, the script would send him to another affiliate.

Thanks
raster is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-20-2005, 07:52 PM   #2
JD
Too lazy to set a custom title
 
Industry Role:
Join Date: Sep 2003
Posts: 22,651
willing to pay for it? if you are I can IM mrkris he's a leet c0deR y0
JD is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-20-2005, 07:59 PM   #3
Lycanthrope
Confirmed User
 
Lycanthrope's Avatar
 
Industry Role:
Join Date: Jan 2004
Location: Wisconsin
Posts: 4,517
ATO Script's Gallery Admin will do this. You can also use the scripts for TGPs, other links, any type of traffic.

Alternately, just setup your 404 page to redirect to random links like so, put this in the head:

<SCRIPT>
<!--
//Specify as many random links as you want below and number accordingly
var randomlinks=new Array()

randomlinks[0]="http://www.url.one"
randomlinks[1]="http://www.url.two"

function randomlink(){
window.location=randomlinks[Math.floor(Math.random()*randomlinks.length)]
}
//-->
</SCRIPT>

and throw this in your body tag:

<BODY ONLOAD="randomlink()">

This will redirect them to a random specified url every page load
__________________
Lycanthrope is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-20-2005, 08:16 PM   #4
woj
<&(©¿©)&>
 
woj's Avatar
 
Industry Role:
Join Date: Jul 2002
Location: Chicago
Posts: 47,882
if you still need it and want to invest a few bucks, icq: 33375924
__________________
Custom Software Development, email: woj#at#wojfun#.#com to discuss details or skype: wojl2000 or gchat: wojfun or telegram: wojl2000
Affiliate program tools: Hosted Galleries Manager Banner Manager Video Manager
Wordpress Affiliate Plugin Pic/Movie of the Day Fansign Generator Zip Manager
woj is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-20-2005, 08:18 PM   #5
raster
Confirmed User
 
Join Date: Aug 2003
Posts: 784
Thanks Lycanthrope, I'll check out ATO script.

That random redirect script is nice, but I'm looking to have it so that

The first hit by an IP always goes to sponsor 1
The second hit by an IP always goes to sponsor 2All consecutive hits by this IP goes to a final sponsor

Quote:
Originally Posted by Lycanthrope
ATO Script's Gallery Admin will do this. You can also use the scripts for TGPs, other links, any type of traffic.

Alternately, just setup your 404 page to redirect to random links like so, put this in the head:

<SCRIPT>
<!--
//Specify as many random links as you want below and number accordingly
var randomlinks=new Array()

randomlinks[0]="http://www.url.one"
randomlinks[1]="http://www.url.two"

function randomlink(){
window.location=randomlinks[Math.floor(Math.random()*randomlinks.length)]
}
//-->
</SCRIPT>

and throw this in your body tag:

<BODY ONLOAD="randomlink()">

This will redirect them to a random specified url every page load
raster is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-20-2005, 08:28 PM   #6
European Lee
Confirmed User
 
Join Date: Dec 2002
Location: Daytona Beach
Posts: 7,133
Just set a cookie on your 404 page, that gets read wen the page loads, if the cookie exists, redirect to wherever, if it doesnt, redirect to a diff url.

Regards,

Lee
European Lee is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-20-2005, 08:35 PM   #7
raster
Confirmed User
 
Join Date: Aug 2003
Posts: 784
Quote:
Originally Posted by European Lee
Just set a cookie on your 404 page, that gets read wen the page loads, if the cookie exists, redirect to wherever, if it doesnt, redirect to a diff url.

Regards,

Lee
Lee, would you know of a snippet of code that could accomplish this...
raster is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-20-2005, 08:56 PM   #8
European Lee
Confirmed User
 
Join Date: Dec 2002
Location: Daytona Beach
Posts: 7,133
You should check out http://www.javascripts.com for the cookie codes the redirect part id figure you could pick up from http://www.hotscripts.com

Regards,

Lee
European Lee is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks
Thread Tools



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.