<% 'AdMinder Redirect Script Copyright AdMinder 2005 '############################################################################ '##### OVERVIEW ############################################################# '############################################################################ ' This simple script allows you to use your own domain name in all of ' your tracking URLs, and you only need to set this up one time. This ' script will simply redirect all traffic to the appropriate AdMinder ' URL based on the username and adcode provided, as explained below. ' ' So now, instead of using tracking URLs like this in your ads: ' ' http://www.adminder.com/c.cgi?username&adcode ' ' You can use your own domain in your tracking URLs like this: ' ' http://www.yoursite.com/go.asp?adcode ' ' No one will ever know you are using the AdMinder tracking system! '############################################################################ '##### INSTALLATION ######################################################### '############################################################################ ' The simple instructions below should work fine for you. All servers ' are different though, so if this doesn't work for you please consult ' your webmaster or system administrator - they will know what to do. ' ' 1. Edit the 2 variables in the next section below. ' ' 2. Rename this file to any valid Windows ASP filename, like "go.asp" ' ' 3. Upload this file to any directory in your web site that can run ASP pages. ' ' 4. Done! Depending on the filename and where you uploaded it, your ' tracking links will now look like the following: ' ' http://www.yoursite.com/redirect.asp?adcode ' http://www.yoursite.com/misc/go.asp?adcode ' etc. '############################################################################ '##### EDIT THESE 2 VARIABLES ############################################### '############################################################################ ' Replace xxx below with your AdMinder Username ' Example: strUsername = "myusername" strUsername = "xxx" ' Replace zzz below with the URL of your homepage ' Example: strHomepage = "http://www.mysite.com" strHomepage = "zzz" '############################################################################ '##### DO NOT EDIT BELOW THIS LINE ########################################## '############################################################################ strAdCode = Request.ServerVariables("QUERY_STRING") Set regExUsername = New RegExp regExUsername.Pattern = "^[a-zA-Z0-9]{4,12}$" Set regExAdCode = New RegExp regExAdCode.Pattern = "^[a-zA-Z0-9]{1,10}$" IF regExUsername.Test(strUsername) AND regExAdCode.Test(strAdCode) THEN Response.Redirect "http://www.adminder.com/c.cgi?" & strUsername & "&" & strAdCode ELSE Response.Redirect strHomepage END IF %>