GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   how to refilter traffic with php? (https://gfy.com/showthread.php?t=257661)

savas 03-24-2004 07:47 AM

how to refilter traffic with php?
 
i have good amout of traffic and i wanna refilter it and than redirect it.

grumpy 03-24-2004 08:07 AM

filter on what? referal....ip ?

savas 03-24-2004 08:09 AM

Quote:

Originally posted by grumpy
filter on what? referal....ip ?
ip or browser language

savas 03-24-2004 08:12 AM

Quote:

Originally posted by Mr.Andersen
Why not use our FREE filter scripts ? :)

www.smskings.com

because i don't want promore your sites

swedguy 03-24-2004 08:13 AM

http://www.maxmind.com/ - Their geo database + mod_geoip

grumpy 03-24-2004 08:14 AM

ip you must use php for browser language you can use j a v a s c r i p t

savas 03-24-2004 08:21 AM

Quote:

Originally posted by Mr.Andersen


yeah send it to dialers, that should do the trick :1orglaugh

i wanna send this traffic to tgp and engish traffic to paysite

savas 03-24-2004 08:21 AM

Quote:

Originally posted by grumpy
ip you must use php for browser language you can use j a v a s c r i p t
i wanna use php

boyw_utr 03-24-2004 08:39 AM

it's not so hard to write it in PHP redirect based on IP
I can do that for ya..

The browser language you have to call with hahahahahahahahahaha
but with geo you can refer the country so why should you
use that any way...

A sollution is putting up a frontpage and get the language with hahahahahahahahahaha and post this to the php page and then redirect based upon the 2 values..

Add a DB for countrys so you add the country and the url which page they have to get...

simple as that..

note: hahahahahahahahahaha= j a v a s c r i p t

Fucking Auke 03-24-2004 08:41 AM

Oke, Go here : http://www.ip2nation.com/

you can download there database of ip adresses.
They even got an few examples of php mysql scripting.

I use it myself so i don't depend on sponsor programms.
Befor i used this on my sites I used an browser tracking script i wrote but you can't realy trust an users browser...

Ip tracking is the best way!

Example script:

PHP Code:

<?php
$server   
""// MySQL hostname
$username ""// MySQL username
$password ""// MySQL password
$dbname   ""// MySQL db name


$db mysql_connect($server$username$password) or die(mysql_error());
      
mysql_select_db($dbname) or die(mysql_error());

$sql "SELECT 
            country 
        FROM 
            ip2nation 
        WHERE 
            ip < INET_ATON('"
.$_SERVER['REMOTE_ADDR']."') 
        ORDER BY 
            ip DESC 
        LIMIT 0,1"
;

$country =  mysql_result(mysql_query($sql), 00);

// Redirect users based on their country
switch ($country) {
    case 
'en':
        echo
"<hahahahahahahahalocation.href=('http://www.yourpaysite.com');</hahahahahahahaha";
        break;
    default:
        echo
"<hahahahahahahahalocation.href=('http://www.yourdefaultsite.com');</hahahahahahahaha";
}
?>


swedguy 03-24-2004 10:39 AM

Quote:

Originally posted by boyw_utr

The browser language you have to call with ja vascr ipt

No, you don't have to.
$_SERVER["HTTP_ACCEPT_LANGUAGE"] is the browser language variable in PHP.

butcherboy 03-29-2004 01:38 AM

Hi there!
Please, check our service - there is a free and paid version.
I think you'll be satisfied.

http://www.traffic-splitter.com/

10x for attention :glugglug


All times are GMT -7. The time now is 06:25 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123