Google Answers Logo
View Question
 
Q: targeting ads by client IP address in PhpAdsNew ( Answered 5 out of 5 stars,   1 Comment )
Question  
Subject: targeting ads by client IP address in PhpAdsNew
Category: Computers > Software
Asked by: bennetthaselton-ga
List Price: $20.00
Posted: 25 Apr 2002 23:05 PDT
Expires: 02 May 2002 23:05 PDT
Question ID: 6128
How do you target ads by client IP address in PhpAdsNew?  We tried
following the directions in the manual but it didn't work.  We created
a banner "campaign" with a weight of 100, and created one banner
within that campaign and gave it a weight of 100, and then set the
banner so it would only be displayed to IP addresses in 216.12.18.*
(our client machine's IP address was 216.12.18.80).  Still, the ad
didn't come up.
Answer  
Subject: Re: targeting ads by client IP address in PhpAdsNew
Answered By: alexander-ga on 26 Apr 2002 05:50 PDT
Rated:5 out of 5 stars
 
It sounds like you might not be specifying the address range
correctly. According to
http://sourceforge.net/forum/message.php?msg_id=221924 , you need to
specify 216.12.18.* as an address of 216.12.18.0 and a mask of
255.255.255.0.

If this does not correct your problem, are you able to target to a
single IP?

If you need further assistance, I would highly recommend posting a
detailed message to the phpAdsNew Help forum on SourceForge, the home
of the project:
http://sourceforge.net/forum/forum.php?forum_id=35712

The project's forums (there's also an "Open Discussion" forum at
http://sourceforge.net/forum/?group_id=11386 ) are probably the
definitive source for help with and information regarding phpAdsNew.

I hope this answers your question, or at least provides the referral
to the people who can.

Request for Answer Clarification by bennetthaselton-ga on 27 Apr 2002 18:23 PDT
According to
http://www.linux.kiev.ua/banner/documentation/english/5.5-acls.html#3
you can specify the IP address range using wildcards as well as a
combination of IP and subnet mask.  But I'll try with an IP/subnet
mask combination instead of wildcards.

Clarification of Answer by alexander-ga on 27 Apr 2002 22:55 PDT
I hope it works for you; if it doesn't, I'm serious about the forum
thing, the developers hang out there and everything. :)
bennetthaselton-ga rated this answer:5 out of 5 stars
This is probably the best answer someone could have come up with under
the circumstances (although what I was really looking for was for the
problem to be solved) so it should get the highest rating.  (I
probably overpaid for the answer, but $20 was what I would have been
willing to pay for a *solution*; however the answer was the best that
a researcher probably could have done, and a deal's a deal.)

Comments  
Subject: Re: targeting ads by client IP address in PhpAdsNew
From: tsschneider-ga on 26 Apr 2002 06:16 PDT
 
It seems to me that there is a bug in the most recent version of
PHPAdsNew.

The Client IP is never checked.
You can verify this by insering the following piece of
code in line 126 in acl.inc.php:

echo $request['remote_host'];exit;

You'll see that nothing happens, e.g. the function
acl_check_clientip() is never called. Im still in the process of
figuring out whether this is a configuration or a programming error.
I'll be back at you as soon as I find out.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy