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 11-19-2008, 01:11 PM   #1
whatif_3
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?
whatif_3 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-19-2008, 01:38 PM   #2
donborno
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.
donborno is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-19-2008, 01:46 PM   #3
whatif_3
Registered User
 
Join Date: Jul 2004
Location: Canada
Posts: 459
Quote:
Originally Posted by donborno View Post
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.
thanks for the reply man, ill check this out
whatif_3 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-19-2008, 02:13 PM   #4
donborno
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>
Didn't test it in real life

Last edited by donborno; 11-19-2008 at 02:16 PM..
donborno is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-19-2008, 04:06 PM   #5
whatif_3
Registered User
 
Join Date: Jul 2004
Location: Canada
Posts: 459
Quote:
Originally Posted by donborno View Post
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 
	<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>
Didn't test it in real life
thank you very much for helping, you are very kind to take the time out of your day to assist, its appreciated
whatif_3 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-19-2008, 04:37 PM   #6
u-Bob
there's no $$$ in porn
 
u-Bob's Avatar
 
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.
u-Bob is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-19-2008, 04:41 PM   #7
whatif_3
Registered User
 
Join Date: Jul 2004
Location: Canada
Posts: 459
Quote:
Originally Posted by u-Bob View Post
all of your type-in traffic? No.
some of it? yes

depends on the browser.
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
whatif_3 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.