Buy Sell Discuss UK Domain Names at AcornDomains.co.uk Price Freeze on Business Hosting frm £4.95/month

Today's Drop Dates are: 19-02-2012 or 26-02-2012   All times are GMT. The time now is 10:03:47 AM.
Domain Name Sales Domain Software Calculate UK Domain Drop Dates Domain Registration NameDrive Domain Parking Subscribe to our Domains For Sale newsletter
Go Back   Domain Forum Acorn Domains Buy Sell Auction UK Domains > Domain Parking > General Domain Parking
Connect with Facebook

General Domain Parking Discuss Domain Parking options for your portfolio. click here for a Domain Parking guide

Closed Thread
 
LinkBack Thread Tools Display Modes
Old 19-03-2008, 11:46:53 AM     #1 (permalink)
Junior Member
 
Join Date: Dec 2006
Posts: 29
austriadomain is on a distinguished road

Test parking companies...

Hi all,

I try to write a script to test which parking companies will pay more.

The script should work like this:

- if a domain gets a type in it will redirect to parking company "1"
- the next type in will redirect to parking company "2"
- ...

On the end of the day I can compare the clicks, payouts,...

Does anybody have already a tool like this? Is anybody interested in it?

greetings from Austria
Sebastian
austriadomain is offline  
Old 20-03-2008, 08:12:03 AM     #2 (permalink)
Junior Member
 
Join Date: Apr 2007
Posts: 28
Aotearoa is on a distinguished road

Hi, this isn't quite what you're after but is close and should be easy enough to modify. Please no laughter, it was the very first PHP I wrote.

What this script does is create a logfile per domain that I could feed into a logfile analysis tool like webalizer then randomly redirects to trafficz or namedrive with a few domains shunted off to 1plus

I wrote it about 2 years back and used it for a few weeks while I did some analysis. It's not very robust, but I only intended it for short term use and was happy to monitor it fairly closely.

Depending on how your server is set up you'll need to change the log file address in the line reading
Code:
$logFile = $_SERVER["DOCUMENT_ROOT"] . "/../mylogs/".$domain."-".date("Ym").".log";
Bruce

Code:
<?php
// Copyright (C) 2006 Bruce Clement
// You may use this under the terms of the GPL version 3
$startServer = $_SERVER["SERVER_NAME"];
if ($startServer=="") {$startServer =$_SERVER["HTTP_HOST"];}
$namedrive="http://www.ndparking.com/";
$trafficz="http://landing.trafficz.com/index.php?domain=";
$oneplus="http://www.1plus.net/";
srand( ((int)((double)microtime()*1000003)) );
$sel=rand( 0,1);
switch( $sel )
{
    case 0:
	$target=$oneplus;
	break;
    default:
	$target=$namedrive;
	break;
}
$domain=str_replace("www.","",strtolower($startServer));
$targe2="$domain";
$targe3="";
if (stristr($domain,"school.nz")) {$target=$namedrive;}
if (stristr($domain,".ac.nz")) {$target=$oneplus;}
if (stristr($domain,".gen.nz")) {$target=$oneplus;}
switch( $domain ) {
    case "DOMAIN1.co.nz":
        $target=$namedrive;
       break;
    case "DOMAIN2.co.nz":
        $target=$trafficz;
       break;
    default:
	break;
}
if( $target==$trafficz ) {$target = $namedrive;}
if( $target==$oneplus  ) {$targe3 = "/";}
if (!stristr($domain,"Where-the-script-is.com"))
{
	$host=$_SERVER['REMOTE_ADDR'];
	$ident=$_SERVER['REMOTE_IDENT'];
	$auth=$_SERVER['REMOTE_USER'];
	$timeStamp=date("d/M/Y:H:i:s O");
	$reqType=$_SERVER['REQUEST_METHOD'];
	$servProtocol=$_SERVER['SERVER_PROTOCOL'];
	$userAgent=$_SERVER['HTTP_USER_AGENT'];
	$referrer=$_SERVER['HTTP_REFERER'];
	$fileName=$_SERVER['REQUEST_URI'];
	$fileSize="92";
	$statusCode="200";
	if ($host==""){ $host="-"; }
	if ($ident==""){ $ident="-"; }
	if ($auth==""){ $auth="-"; }
	if ($reqType==""){ $reqType="-"; }
	if ($servProtocol==""){ $servProtocol="-"; }
	if ($userAgent==""){ $userAgent="-"; }
	if ($referrer==""){ $referrer="-"; }
	if ($fileName=="" || stristr($userAgent,"gigablast")){ $fileName="/"; }
	// Create CLF formatted string
	$clfString=$host." ".$ident." ".$auth." [".$timeStamp."] \"".$reqType." ".$fileName." ".$servProtocol."\" ".$statusCode." ".$fileSize." \"".$referrer."\" \"".$userAgent."\"\n";
	if( $host != "223.132.212.226" )
	{
		$logFile = $_SERVER["DOCUMENT_ROOT"] . "/../mylogs/".$domain."-".date("Ym").".log";
		if (file_exists($logFile)){
			// If YES, Open Existing Log File
			$fileWrite = fopen($logFile,"a");}
		else {
			// If NO, Create a New Log File
			$fileWrite = fopen($logFile,"w");
		}
		flock($fileWrite, LOCK_SH);
		fwrite($fileWrite,$clfString);
		flock($fileWrite, LOCK_UN);
		fclose($fileWrite);
		if( 1 ) {
			$log2=$_SERVER["DOCUMENT_ROOT"] . "/../mylogs/info.txt";
			if (file_exists($log2)){
				// If YES, Open Existing Log File
				$file2 = fopen($log2,"a");
			} else {
				$file2 = fopen($log2,"w");
			}
			flock($file2, LOCK_SH);
			$clfString = $target . $targe2 . $targe3 . "\n";
			fwrite($file2, $clfString );
			flock($file2, LOCK_UN);
			fclose($file2);
		}
	}
	header("HTTP/1.1 302 Found");
	header("Location: $target$targe2$targe3");
	exit();
}
?>
<html>
<body>
<?php
echo "startServer: " . $startServer . "<br />";
echo "target: " . $target . "<br />";
echo "targe2: " . $targe2 . "<br />";
echo "Host: " . $_SERVER["HTTP_HOST"] . "<br />";
echo "Server Name: " . $_SERVER["SERVER_NAME"] . "<br />";
echo "Request uri: " . $_SERVER["REQUEST_URI"] . "<br />";
echo "Referer: " . $_SERVER["HTTP_REFERER"] . "<br />";
echo "Script Name: " . $_SERVER["SCRIPT_NAME"] . "<br />";
echo "Query String: " . $_SERVER["QUERY_STRING"] . "<br />";
echo "Browser: " . $_SERVER["HTTP_USER_AGENT"] . "<br />";
echo "User's IP address: " . $_SERVER["REMOTE_ADDR"] . " " . $_SERVER["HTTP_X_FORWARDED_FOR"] . "<br />";
?>
</body>
</html>
Aotearoa is offline  
Old 20-03-2008, 08:58:15 AM     #3 (permalink)
Junior Member
 
Join Date: Dec 2006
Posts: 29
austriadomain is on a distinguished road

Thank you for your code. Did you already get any "usefull" statistic information - or is the time period to short to say anything?

best
Sebastian
austriadomain is offline  
Old 20-03-2008, 09:19:13 AM     #4 (permalink)
Junior Member
 
Join Date: Apr 2007
Posts: 28
Aotearoa is on a distinguished road

Quote:
Originally Posted by austriadomain View Post
Did you already get any "usefull" statistic information - or is the time period to short to say anything?
This is all from 2 years ago & I only ran it in that form for a short while but I got a good understanding of the traffic on many of my domains.

Unfortunately almost none of the domains I had back then really were traffic domains & most of the so-called traffic was things like hotlinks to images (These were mostly expired domains I'd caught in drops).

For reasons I never understood my revenue dropped while I was using it so I only ever used it on domains with low CTR & RPM to try and understand the why.
Aotearoa is offline  
Old 21-03-2008, 09:42:03 AM     #5 (permalink)
Junior Member
 
Join Date: Dec 2006
Posts: 29
austriadomain is on a distinguished road

Thank you again - I will try it with some domains ...

best
Sebastian
austriadomain is offline  
Closed Thread



Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Domain Name Community Replies Last Post
The end of domain parking? admin Contextual Advertising 10 14-04-2008 08:49:25 PM
Parking Hopping script wanted SecNam General Domain Parking 8 14-12-2006 01:19:49 PM
ADSL speedtest domaingenius ISP 13 10-11-2006 01:42:51 PM

75% off Domains at Network Solutions®.


All times are GMT. The time now is 10:03:47 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.6.0 RC 2
All content on Acorn Domains is member generated and is not moderated before posting. All content is viewed and used by you at your own risk and AD does not warrant the accuracy or reliability of any of the information. The views expressed are those of the individual contributors and not necessarily those of AD. Please contact us to report any issues or send a PM to "Admin".