anyone know a good one ? i wanna block traffic outside USA, but cant find a solution yet. anybody uses a realiable script ? where to buy one thank you very much for your help sincerely smily
Dear Smile, I have one. It is reliable and updated as well as there is a option to update often. I can sell the script to you. If you want Please Contact me via PM. My Messenger handles are Given Below. (Also in my Profile) Yahoo Messanger : pritthi2600 MSN. : pritthi1980 Gmail : Skypee : hagioteam Thanks. Coolsaint
Do you have a dedicated server or a shared account? If you have a shared account, you can use an ip script. You take the ip and look into the database to see the country. The script and database is 1mb. You can make it even smaller if you want only the us IP's.
Script is a great solution with only one limitation . you cannot target migrated traffic ... lets say you want to display matrimonial website to indians your script will work fine for those who living in india ,, but it will fail for indians living in usa . and i think these scripts will cost you too .. one more simple solution is Display world map on index page and ask users to choose country . Or display option menu and ask visitors to select country and display page accordingly .
as others said, there are free scripts to do this. however, I would strongly advise against doing this. I run a downloads site. I make virtually no money from non-US/non-UK/non-Canadian visitors. however, they do add value to the site... they link to it, because it's a valuable service. they tell people about it. the visitors themselves may not be helping, but the people they send there? definitely helping.
This is a small snip of code I use for US traffic. You have to install the geoip country database from here http://www.maxmind.com/app/geoip_country and ad a table with that data on your database. $ip=$_SERVER['REMOTE_ADDR']; $pieces=explode(".",$ip); $w=$pieces[0]; $x=$pieces[1]; $y=$pieces[2]; $z=$pieces[3]; $ipnum = (16777216*$w + 65536*$x + 256*$y + $z); $queryip1=mysql_query("Select * from geoip where $ipnum BETWEEN beginnum AND endnum"); $rowip1=mysql_fetch_array($queryip1); if ($rowip1['country']=="US"){ This is what is done if it is from the US } Code (markup): Hope it helps.
hi thanks evreyone but is there a out of the box ready script for this ? i have my dedicated server thank you very much for your help smily