![]() |
![]() |
![]() |
||||
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. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Registered User
Join Date: Jul 2004
Location: Canada
Posts: 459
|
.htaccess question
is there a way i can give all my type-in traffic a referrer code? i think i can do this in htaccess, any ideas?
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Join Date: Jan 2007
Location: Vienna, Austria
Posts: 374
|
You can redirect the traffic without a referrer to a different URI, look for mod_rewrite to do this.
Or you can check the referrer using JavaScript and change all links. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Registered User
Join Date: Jul 2004
Location: Canada
Posts: 459
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Confirmed User
Join Date: Jan 2007
Location: Vienna, Austria
Posts: 374
|
Actually I wrote something similar in JavaScript some time ago, here you go:
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>Amazing MGP</title> <script type="text/javascript"> function change_referral_code(old_code, new_code) { // fetch all links var links = document.getElementsByTagName('a'); for (var i = 0; i < links.length; i++) { alert(links[i].href); links[i].href = links[i].href.replace(new RegExp(old_code), new_code); } } function change_all_referrals() { // If there is no referrer if ((document.referrer == null) || (document.referrer == "")) { change_referral_code('revid=11111', 'revid=22222'); // ... add some more for other sponsors } } </script> </head> <body onload="change_all_referrals()"> <h1>Amazing MGP</h1> <p>Here are some galleries for you:</p> <ul> <li><a href="http://www.pinkvisualhdgalleries.com/asp/008/01/vid?campaign=0&revid=11111&s=1">Gallery 1</a></li> <li><a href="http://www.pinkvisualhdgalleries.com/asp/010/01/vid?campaign=0&revid=11111&s=1">Gallery 2</a></li> <li><a href="http://www.pinkvisualhdgalleries.com/asp/020/01/vid?campaign=0&revid=11111&s=1">Gallery 3</a></li> <li><a href="http://www.pinkvisualhdgalleries.com/asp/028/01/vid?campaign=0&revid=11111&s=1">Gallery 4</a></li> <li><a href="http://www.pinkvisualhdgalleries.com/asp/030/01/vid?campaign=0&revid=11111&s=1">Gallery 5</a></li> </ul> </body> </html> |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 | |
Registered User
Join Date: Jul 2004
Location: Canada
Posts: 459
|
Quote:
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
there's no $$$ in porn
Industry Role:
Join Date: Jul 2005
Location: icq: 195./568.-230 (btw: not getting offline msgs)
Posts: 33,063
|
all of your type-in traffic? No.
some of it? yes depends on the browser. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
Registered User
Join Date: Jul 2004
Location: Canada
Posts: 459
|
well, we are using google analytics right now(which does not record referring urls), and just got a new affiliate software package, so i wanted to see if i could get it on the type in traffic in order to get as close to all traffic going through the affiliate system
|
![]() |
![]() ![]() ![]() ![]() ![]() |