Digital Point Forums
Winn Law Group

Go Back   Digital Point Forums > Search Engines > Yahoo > Publisher Network
Google Analytics
Log In to view
your analytics

Reply
 
Thread Tools
  #1  
Old Mar 14th 2006, 6:00 pm
aaron_nimocks's Avatar
aaron_nimocks aaron_nimocks is offline
Im kind of a big deal
 
Join Date: Jul 2005
Location: Virginia Beach
Posts: 5,356
aaron_nimocks has a reputation beyond reputeaaron_nimocks has a reputation beyond reputeaaron_nimocks has a reputation beyond reputeaaron_nimocks has a reputation beyond reputeaaron_nimocks has a reputation beyond reputeaaron_nimocks has a reputation beyond reputeaaron_nimocks has a reputation beyond reputeaaron_nimocks has a reputation beyond reputeaaron_nimocks has a reputation beyond reputeaaron_nimocks has a reputation beyond reputeaaron_nimocks has a reputation beyond repute
Phone Verified
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!
Reply With Quote
  #2  
Old Mar 14th 2006, 6:08 pm
SkiRat44's Avatar
SkiRat44 SkiRat44 is offline
Hand of A'dal
 
Join Date: Jan 2006
Location: Chicago
Posts: 479
SkiRat44 will become famous soon enough
They'd have a customer with me.
__________________
StudioPress | Professionally Designed WordPress Themes
Reply With Quote
  #3  
Old Mar 14th 2006, 6:12 pm
DomainMaster's Avatar
DomainMaster DomainMaster is offline
Banned
 
Join Date: Feb 2006
Location: Domain Planet
Posts: 576
DomainMaster will become famous soon enough
I have a script but it's very resource consuming and requires a database.
Reply With Quote
  #4  
Old Mar 15th 2006, 9:18 am
quaffapint's Avatar
quaffapint quaffapint is offline
Hand of A'dal
 
Join Date: Jan 2006
Location: West Chester, PA
Posts: 300
quaffapint is on a distinguished road
Smile

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
__________________
Whisper Bot ^Secure Email^ * mySimpleAds
Reply With Quote
  #5  
Old Mar 15th 2006, 12:06 pm
aaron_nimocks's Avatar
aaron_nimocks aaron_nimocks is offline
Im kind of a big deal
 
Join Date: Jul 2005
Location: Virginia Beach
Posts: 5,356
aaron_nimocks has a reputation beyond reputeaaron_nimocks has a reputation beyond reputeaaron_nimocks has a reputation beyond reputeaaron_nimocks has a reputation beyond reputeaaron_nimocks has a reputation beyond reputeaaron_nimocks has a reputation beyond reputeaaron_nimocks has a reputation beyond reputeaaron_nimocks has a reputation beyond reputeaaron_nimocks has a reputation beyond reputeaaron_nimocks has a reputation beyond reputeaaron_nimocks has a reputation beyond repute
Phone Verified
I think there is a market. Only if its small and VERY simple to install.
Reply With Quote
  #6  
Old Mar 15th 2006, 12:16 pm
quaffapint's Avatar
quaffapint quaffapint is offline
Hand of A'dal
 
Join Date: Jan 2006
Location: West Chester, PA
Posts: 300
quaffapint is on a distinguished road
Quote:
Originally Posted by aaron_nimocks
I think there is a market. Only if its small and VERY simple to install.
Do you have PHP and MySQL ? The only large file is the binary db file from maxmind, which is around 800K.
__________________
Whisper Bot ^Secure Email^ * mySimpleAds
Reply With Quote
  #7  
Old Mar 15th 2006, 12:50 pm
ashiezai ashiezai is offline
Twilight Vanquisher
 
Join Date: Jan 2005
Location: Digitalpoint :D
Posts: 927
ashiezai will become famous soon enough
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:
<?
// This part gets the ip of the visitor and matches it to a country name/code

include("geoip.inc");
$gi = geoip_open("GeoIP.dat",GEOIP_STANDARD);

$visitor_country_code=geoip_country_code_by_addr($gi, $_SERVER['REMOTE_ADDR']);
$visitor_country_name=geoip_country_name_by_addr($gi, $_SERVER['REMOTE_ADDR']);

//This part shows banners/codes that YOU decide for each country

switch ($visitor_country_name) {
case "United States": { ?>

<script language="JavaScript">
<!--
ctxt_ad_partner = "xxxxxxxxxx";
ctxt_ad_section = "";
ctxt_ad_bg = "";
ctxt_ad_width = 250;
ctxt_ad_height = 250;
ctxt_ad_bc = "FFFFFF";
ctxt_ad_cc = "FFFFFF";
ctxt_ad_lc = "FFFFFF";
ctxt_ad_tc = "111111";
ctxt_ad_uc = "111111";
// -->
</script>
<script language="JavaScript" src="http://ypn-js.overture.com/partner/js/ypn.js">
</script>
<? }
}
?>
__________________
SeekAbove Directory PR5 - Free Text Messages -
Reply With Quote
  #8  
Old Mar 15th 2006, 1:05 pm
quaffapint's Avatar
quaffapint quaffapint is offline
Hand of A'dal
 
Join Date: Jan 2006
Location: West Chester, PA
Posts: 300
quaffapint is on a distinguished road
Would that not be slow having to poll that 800K flatfile db on every page hit?
__________________
Whisper Bot ^Secure Email^ * mySimpleAds
Reply With Quote
  #9  
Old Mar 15th 2006, 1:49 pm
wentworth's Avatar
wentworth wentworth is offline
Twilight Vanquisher
 
Join Date: Dec 2005
Location: ...
Posts: 968
wentworth is on a distinguished road
will one of the mod of this board please combine all the INT TRAFFIC threads....

please, please...
__________________
Explode your online earnings at themostclicks.com!
Top Online Income Secrets
Reply With Quote
  #10  
Old Mar 15th 2006, 2:00 pm
aaron_nimocks's Avatar
aaron_nimocks aaron_nimocks is offline
Im kind of a big deal
 
Join Date: Jul 2005
Location: Virginia Beach
Posts: 5,356
aaron_nimocks has a reputation beyond reputeaaron_nimocks has a reputation beyond reputeaaron_nimocks has a reputation beyond reputeaaron_nimocks has a reputation beyond reputeaaron_nimocks has a reputation beyond reputeaaron_nimocks has a reputation beyond reputeaaron_nimocks has a reputation beyond reputeaaron_nimocks has a reputation beyond reputeaaron_nimocks has a reputation beyond reputeaaron_nimocks has a reputation beyond reputeaaron_nimocks has a reputation beyond repute
Phone Verified
I have seen that thread but I am looking for something smaller, faster, and easier.
Reply With Quote
  #11  
Old Mar 15th 2006, 4:35 pm
thame thame is offline
Peon
 
Join Date: Dec 2005
Posts: 29
thame is an unknown quantity at this point
Quote:
Originally Posted by aaron_nimocks
I have seen that thread but I am looking for something smaller, faster, and easier.
It won't actually be downloading the db every time someone accesses the site. I think a simple PHP script like this (not involving PHPAdsNew or other programs) is the quickest way for your users.

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.
Reply With Quote
  #12  
Old Mar 15th 2006, 10:55 pm
JoaT JoaT is offline
Champion of the Naaru
 
Join Date: Feb 2006
Posts: 202
JoaT is on a distinguished road
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.
Reply With Quote
  #13  
Old Mar 16th 2006, 4:27 am
ashiezai ashiezai is offline
Twilight Vanquisher
 
Join Date: Jan 2005
Location: Digitalpoint :D
Posts: 927
ashiezai will become famous soon enough
just do a search and replace. That is easy.
__________________
SeekAbove Directory PR5 - Free Text Messages -
Reply With Quote
  #14  
Old Mar 16th 2006, 5:28 am
flyguy's Avatar
flyguy flyguy is offline
Champion of the Naaru
 
Join Date: Feb 2005
Location: Michigan
Posts: 196
flyguy is on a distinguished road
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.
__________________
Fish pictures | Whitetail deer pictures | |
Reply With Quote
  #15  
Old Mar 16th 2006, 5:56 am
quaffapint's Avatar
quaffapint quaffapint is offline
Hand of A'dal
 
Join Date: Jan 2006
Location: West Chester, PA
Posts: 300
quaffapint is on a distinguished road
So besides general speed concerns, what's the issue here - people don't have/want to use PHP and/or MySQL?
__________________
Whisper Bot ^Secure Email^ * mySimpleAds
Reply With Quote
  #16  
Old Mar 16th 2006, 7:30 am
JoaT JoaT is offline
Champion of the Naaru
 
Join Date: Feb 2006
Posts: 202
JoaT is on a distinguished road
Quote:
Originally Posted by quaffapint
So besides general speed concerns, what's the issue here - people don't have/want to use PHP and/or MySQL?
In my opinion, the issue is not about capabilities. Anyone can get PHP & MySQL even on a free host! The problem is, there is no working script thats just a cut and paste job to make work without modification. The one post above in this thread only works once per page, if you try to use it again it does not work and nobody has been able to give an exact code scenario that will work multiple times per page for people that don't know programming. Hence, why it would be such a lucrative business if someone where to develope something that worked multiple times per page and offer it for $5-10 per license etc.
Reply With Quote
  #17  
Old Mar 16th 2006, 7:33 am
Caveman Caveman is offline
Twilight Vanquisher
 
Join Date: Apr 2005
Posts: 592
Caveman will become famous soon enough
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.?
Reply With Quote
  #18  
Old Mar 16th 2006, 8:06 am
flyguy's Avatar
flyguy flyguy is offline
Champion of the Naaru
 
Join Date: Feb 2005
Location: Michigan
Posts: 196
flyguy is on a distinguished road
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.
__________________
Fish pictures | Whitetail deer pictures | |
Reply With Quote
  #19  
Old Mar 16th 2006, 8:08 am
quaffapint's Avatar
quaffapint quaffapint is offline
Hand of A'dal
 
Join Date: Jan 2006
Location: West Chester, PA
Posts: 300
quaffapint is on a distinguished road
Quote:
Originally Posted by Caveman
quaffapint, the way you're doing this, does it default back to adsense if the ip does not come from the U.S.?
Yea - I have my adsense banners country field set to '!us' (not US) - so they display in every country other than the US. (I also have some specific ones for 'gb'.)

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
__________________
Whisper Bot ^Secure Email^ * mySimpleAds
Reply With Quote
  #20  
Old Mar 16th 2006, 8:41 am
Caveman Caveman is offline
Twilight Vanquisher
 
Join Date: Apr 2005
Posts: 592
Caveman will become famous soon enough
I'd be interested in this. I've already got the DB set up using the instructions found here. I'm just having a time with the actual php code to make it work.
Reply With Quote
Reply

Bookmarks

Thread Tools

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


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


All times are GMT -8. The time now is 1:45 pm.