Printer Friendly Version
Email this thread to a friend
|
Featured Web Site Template |
|
Reflects user activity within the last 5 minutes
|
|
| Member |
Message |
turboface
Joined: May 07, 2004
# Posts: 3
|
Posted: 2004-May-08 05:40
This is my first post here, so hi everyone!
I deal with vast amounts of traffic each day and need to try to minimize the amount of useless traffic that is in my network. The main type of traffic that I want to filter out is my no cookie traffic. I want to just send this traffic to a sponsor that doesn't rely on cookies to track sales. From the research I have done so far on this, I see that a cookie cannot be placed and read in the same session, at least when using php. Are there any simple fixes for this?
I also want to block sitesuckers, spiders and other similar sorts of traffic, but the most difficult type of traffic to filter out obviously would be proxy traffic. Is there any good solutions out there for this? Blocking all proxy traffic wouldn't be an option, because I would be losing all the AOL users.
Whatever advice you guys could give me on this, I would appreciate it.
|
 |
unreviewed
Joined: Dec 07, 2000
# Posts: 6776
|
Posted: 2004-May-08 19:11
Well this is interesting, I've never seen a post from someone who wanted less traffic.
To filter visitors that do not accept cookies, simply try to write a cookie, if cookie fails, redirect. Keep in mind that the type of people that have cookies turned off, may also disallow redirects.
As for proxy, we are all behind a proxy server, everyone. They are called ISP's. You would need to do a reverse lookup on all incoming traffic IP addresses to filter by proxy. This could cause big delays in the loading of your pages, and really put a lot of stress on your busy system. It would be better to identify and redirect by IP assignment blocks. That said, your server still needs to handle the traffic, in both cases.
Fact is, if someone clicks on a link that resolves to your server, it is you that must deal with it, regardless if you redirect or serve up a page.
|
 |
daditto
Joined: Apr 16, 2004
# Posts: 11
|
Posted: 2004-May-09 07:14
This should be easy with php... Dont forget to replace url's
cookietest.php --
<?php
if($_REQUEST['checkcookie']==1) {
if($_COOKIE['cookieworks']==1) {
header('Location: http://goood.traffic.com');
die;
} else {
header('Location: http://nocookies.traffic.com');
die;
}
} else {
setcookie('cookieworks',1);
header('Location: '.$_SERVER['PHP_SELF'].'?checkcookie=1');
die;
}
?>
|
 |
turboface
Joined: May 07, 2004
# Posts: 3
|
Posted: 2004-May-09 08:50
Daditto, I was a little sceptical at first, because I have read that you cannot place and check for a cookie in the same step using php, but your code works like a charm!
Thanks so much. If you have any other advice for filtering out spiders, sitesuckers, etc, please lemme know.
|
 |
daditto
Joined: Apr 16, 2004
# Posts: 11
|
Posted: 2004-May-09 09:46
Unreviewed, I think turboface is getting low quality popup/popunder traffic. The traffic that is usually advertised like 'Get XXXXX visitors for $$$'. Such traffic could be sorted out.
Filtering proxies make no sense, until they are public and anonymous. Such proxies are usually used for credit cards fraud and other illegal activities. Filtering them is possible, but requires more computing power and a database of them, which is not free. There are databases like Maxmind GeoIP that contain a list of anonymous proxies. As the world changes the database snapshot should be also updated frequently.
Unfortunately, I think that sorting by useragent won't be very effective. Actually, almost all sitesuckers cloak as they are regular browsers. So it is almost impossible to identify them. But it maybe usefull to filter out uncompatible with your site browsers, like an old one or maybe text-only like Lynx. Edit variable $browsers to according to your needs.
-- here comes the code
<?php
// Setup URLs
$badtrafficurl = 'http://bad.traffic.com';
$goodtrafficurl = 'http://goood.traffic.com';
$browsers = '/(MSIE 4MSIE 5MSIE 6OperaGeckoNetscape)/i';
//User Agents Check
if(!preg_match($browsers,$_SERVER['HTTP_USER_AGENT'])) {
header('Location: '.$badtrafficurl);
die;
}
if($_REQUEST['checkcookie']==1) {
if($_COOKIE['cookieworks']==1) {
header('Location: '.$goodtrafficurl);
die;
} else {
header('Location: '.$badtrafficurl);
die;
}
} else {
setcookie('cookieworks',1);
header('Location: '.$_SERVER['PHP_SELF'].'?checkcookie=1');
die;
}
?>
|
 |
unreviewed
Joined: Dec 07, 2000
# Posts: 6776
|
Posted: 2004-May-09 10:21
daditto, hope to see you around this board more often.
|
 |
daditto
Joined: Apr 16, 2004
# Posts: 11
|
Posted: 2004-May-09 16:09
Eh, I just noticed that JimWorld's board cut off Shift-BackSlash character. The line should look like this if you replace [Shift-Backslash] with a real character.
$browsers = '/(MSIE 4[Shift-Backslash]MSIE 5[Shift-Backslash]MSIE 6[Shift-Backslash]Opera[Shift-Backslash]Gecko[Shift-Backslash]Netscape)/i';
|
 |
unreviewed
Joined: Dec 07, 2000
# Posts: 6776
|
Posted: 2004-May-09 21:00
It might help if you place the examples within [code*] [/code*] without the *
Sometimes ... our roll your own board still is Alfa.
|
 |
g1smd
Staff
Joined: Jul 28, 2002
# Posts: 10465
|
Posted: 2004-May-09 23:41
That "nocookie traffic" also includes googlebot.
Are you sure you want to keep that out?
|
 |
You are not permitted to post messages in this forum or topic, because of one or more of the following reasons:
- You have not yet logged in, or registered properly as a member
- You are a member, but no longer have posting rights.
- This is a private forum, for which you do not have permissions.
If you are a recent member, it's possible that you simply have not yet confirmed your account. Please
check your email for a message entitled 'JimWorld Forums: Confirm Your Account' and follow the instructions
contained within.
If you cannot find this message, click here to Re-Send it.
|
If you are still experiencing problem, please read the
Login Assistance
Article for some advice on what may be causing your login not to work properly.
|
Switch to Advanced Editor and ...
Create a New Topic
or Reply to this Thread
|
|