Using adlogger on proxy

Discussion in 'Site & Server Administration' started by Kalyse, Mar 12, 2007.

  1. #1
    I just heavily click bombed on a proxy site I run. I have reported it to google, but I seem to be reporting every day now.

    The email notification works great, but the problem is I thought adlogger could stop displaying the ads. How do I get this feature to work?
    The script is a cgi proxy script, but the adlogger cache control to stop the ads from displaying is a PHP script right?

    How can I get this to work. Has anyone on their proxy script.
     
    Kalyse, Mar 12, 2007 IP
  2. ThreeGuineaWatch

    ThreeGuineaWatch Well-Known Member

    Messages:
    1,489
    Likes Received:
    69
    Best Answers:
    0
    Trophy Points:
    140
    #2
    One way round this is to call your CGIProxy as a form target from a PHP page.

    However, if people are absolutely determined to click bomb you (as it seems like they are from you mentioning this occurring almost every day) then adlogger will not prevent it since it does not prevent them from right clicking and opening in a new window all the ads on your page(s).

    If it is the same IP of an address from the same range that is a repeated offender, then it is best to deny them access either using tcpwrappers, firewall or Apache access/deny.

    By the way, the cache control include code is not directly responsible for preventing the ads from being displayed - the wrapper code does this. The cache control code forces the browser of a user to load a fresh copy of the page each time the page is accessed (as opposed to relying on a locally cached page.)
     
    ThreeGuineaWatch, Mar 12, 2007 IP
  3. Kalyse

    Kalyse Peon

    Messages:
    1,221
    Likes Received:
    24
    Best Answers:
    0
    Trophy Points:
    0
    #3
    This is going to sound nooby, however I have never programmed a CGI application, I just know 'to some degree' how they work, however I have never called it from a PHP page.

    Would you be able to explain how this is acheived?

    Thanks for your help.
     
    Kalyse, Mar 12, 2007 IP
  4. ThreeGuineaWatch

    ThreeGuineaWatch Well-Known Member

    Messages:
    1,489
    Likes Received:
    69
    Best Answers:
    0
    Trophy Points:
    140
    #4
    Essentially, you'll have a page of your own creation that will be your front page. Something like this:

    AdLogger Cache Control Code goes here
    
    <html>
    <head>
    <title></title>
    </head>
    <body>
    <form name="URLform" action="http://YOUR_DOMAIN.COM/cgi-bin/nph-proxy.cgi/010110A/x-proxy/start" method="post">
                  <input name="browse" type="submit" value="Go!" align="right" />
                  <input size="24" name="URL" type="text" value="http://www.myspace.com" />
                </form>
    
    AdLogger JS include goes here
    
    </body>
    </html>
    Code (markup):
    You can customise it as necessary (even change most of what I have offered by way of example) however, the important aspect is that you are calling your CGI proxy script as the target of the form.

    Make sure you have the AdLogger cache control code in at the very first line of the file and nothing (not even whitespace) before it (otherwise PHP will complain about headers already sent.) Ensure you have the AdLogger tracking JS included right before your close BODY tag.

    Save it as index.php and drop it in the DOC_ROOT of your domain.

    Hope this sheds a little light on it.

    Cheers!
     
    ThreeGuineaWatch, Mar 12, 2007 IP
    Kalyse likes this.
  5. Kalyse

    Kalyse Peon

    Messages:
    1,221
    Likes Received:
    24
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Great information.

    Very for thank very useful
     
    Kalyse, Mar 12, 2007 IP