![]() |
|
|
#1
|
||||
|
||||
|
Block International Traffic
Ok I found one very complicated script to block out the international traffic but I get confused when I have to read a manual.
Has anyone seen a small easy to install script to not display YPN ads to anyone outside the US? I wonder why someone hasnt made one yet and marketed it. Could get a ton of $5 orders! ![]() Thanks!
__________________
|
|
#2
|
||||
|
||||
|
They'd have a customer with me.
__________________
StudioPress | Professionally Designed WordPress Themes |
|
#3
|
||||
|
||||
|
I have a script but it's very resource consuming and requires a database.
|
|
#4
|
||||
|
||||
|
I used the free maxmind db and tied it in with my mysql for quick resolving when the user goes through multiple pages. Its very fast and I haven't noticed any slowups or heavy resource usage.
Basically, in your index.php (for example), you grab the IP of the user, check whether its already in mysql, if not, then look it up in the binary file maxmind country db, and store it in mysql. Then my banners being pulled from mysql have a country field. In there I can specify 'us', or '!us' (for everything international), or even 'gb', etc if I wanted to. I also have it set to default to 'us', in case its not found in the maxmind db (an option I couldn't find in the maxmediamanager tool). I was getting crappy money from ADSense, so I turned off (its easy to turn on/off) my alternative ads this morning while I set up different banners that work better on a game and video site , but its still checking. It's cool to see live whos coming and going... If you think there's a real market for such a thing, I'll happily script something up and give it away free to DP testers .-Matt |
|
#5
|
||||
|
||||
|
I think there is a market. Only if its small and VERY simple to install.
__________________
|
|
#6
|
||||
|
||||
|
Quote:
|
|
#7
|
|||
|
|||
|
please use the search function
![]() this is from the thread: http://forums.digitalpoint.com/showt...+geo+targeting How not to display YPN to international traffics. Step by step: 1. Download these files: - GeoIP.dat from http://www.maxmind.com/app/geoip_country - geoip.inc from http://www.maxmind.com/download/geoip/api/php/ and put them where your php banner script will be. 2. insert this code for you YPN. Quote:
|
|
#8
|
||||
|
||||
|
Would that not be slow having to poll that 800K flatfile db on every page hit?
|
|
#9
|
||||
|
||||
|
will one of the mod of this board please combine all the INT TRAFFIC threads....
please, please... |
|
#10
|
||||
|
||||
|
I have seen that thread but I am looking for something smaller, faster, and easier.
__________________
|
|
#11
|
|||
|
|||
|
Quote:
If you need a database, I think there are some free hosting companies out there with PHP MySQL or I could even give you a remote one to connect to if you really need it. |
|
#12
|
|||
|
|||
|
ashiezai,
This code only works ONCE per page, if you have more than one ad unit it will not work like this. Some suggested putting another close like at the end for $gi, but that doesnt work either. |
|
#13
|
|||
|
|||
|
just do a search and replace. That is easy.
|
|
#14
|
||||
|
||||
|
Would it be possible to include the ip range for the US and hard code it in the php script on the web page? I've never looked at an ip data base before so I don't know how much data / country ip there is but it could be a simple solution to eliminate most of the international add servings.
With no mysql required. |
|
#15
|
||||
|
||||
|
So besides general speed concerns, what's the issue here - people don't have/want to use PHP and/or MySQL?
|
|
#16
|
|||
|
|||
|
Quote:
|
|
#17
|
|||
|
|||
|
I for one would love to use this and would prefer php and mysql. I also think it would be easier to just us a php include to show the ads.
quaffapint, the way you're doing this, does it default back to adsense if the ip does not come from the U.S.? |
|
#18
|
||||
|
||||
|
I'm going to run with ashiezai post for now. It seems to run smoothly.
I had to make a couple of mods to the script so could someone with a non US ip address check the results at http://www.enfollc.com/test.php and let me know what they receive? ashiezai- Where could an if else be incorporated to run adsense when the ip isn't US? Since I can't test the script myself for international ips I'm not confident. Good stuff thanks. |
|
#19
|
||||
|
||||
|
Quote:
Its turned on at my arcade site now (for all ads except the one on the right side), if any international DP visitors want to test it out for me .-Matt |
![]() |
| Bookmarks |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Sending Adsense international traffic | Citizen | AdSense | 3 | Mar 3rd 2006 1:14 am |
| Am I taking advantage of international traffic? | GPS Mapper | Affiliate Programs | 2 | Feb 26th 2006 8:25 pm |
| Does chitika accept international traffic and clicks? | nikolay | Chitika | 8 | Nov 10th 2005 3:25 am |
| Anyone got earnings "corrected" for international traffic? | dzcap | Publisher Network | 5 | Nov 8th 2005 12:35 pm |
| tags for Block usage system flag and Remaining block hours credit | spacelink | Optigold ISP | 1 | Sep 1st 2005 11:12 am |