1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

ASP - March 11 2005

Discussion in 'Co-op Advertising Network' started by stupot, Mar 11, 2005.

  1. #1
    Latest ASP Version
    SEMrush
    No Text File (Uses Application Variable instead)
    More robust way of making calls to dp server (should help stop being banned)
     
    stupot, Mar 11, 2005 IP
    SEMrush
  2. stupot

    stupot Peon

    Messages:
    61
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Shawn

    I now have this new code on all my sites, it would be great if you could release my IP from the ban now.

    thanks

    Stupot
     
    stupot, Mar 11, 2005 IP
  3. Dirkjan

    Dirkjan The Dutch SEO Guy

    Messages:
    528
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    138
    #3
    When a site is being blocked, do the ads still show but validate fails? In that case www.aanbodpagina.nl was probably blocked too :p. I installed this new code from stupor. Could aanbodpagina.nl be unblocked too? :)

    If the ads do not show.. then I have no clue why aanbodpagina.nl fails :/ some directories still work /antiek/ works, but root does not although it has the ads.
     
    Dirkjan, Mar 11, 2005 IP
  4. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,116
    Likes Received:
    2,578
    Best Answers:
    457
    Trophy Points:
    710
    Digital Goods:
    29
    #4
    It would need to be able to recover from a restart of the server (without loosing the cached ads).
     
    digitalpoint, Mar 11, 2005 IP
  5. stupot

    stupot Peon

    Messages:
    61
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #5
    In the unlikely event that this happens the server would get new ads without falling over. If it is imperitive that the same ads are kept then i can return to the previous file method for the data but still use the extra code i implemented to prevent too many calls to the dp server.

    Please let me know which solution is preferable.
     
    stupot, Mar 11, 2005 IP
  6. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,116
    Likes Received:
    2,578
    Best Answers:
    457
    Trophy Points:
    710
    Digital Goods:
    29
    #6
    The same ads should be kept. The easiest method I would think is to do it like the PHP setup. Check that the cache file is writable.
     
    digitalpoint, Mar 11, 2005 IP
  7. stupot

    stupot Peon

    Messages:
    61
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #7
    This one is a mix and works fine on my main site.
     
    stupot, Mar 11, 2005 IP
  8. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,116
    Likes Received:
    2,578
    Best Answers:
    457
    Trophy Points:
    710
    Digital Goods:
    29
    #8
    Just looking at it without actually running it, it looks like it has the same problem... It should NEVER make a request to the ad network server if the cache file is missing or happens to not be writable.
     
    digitalpoint, Mar 11, 2005 IP
  9. stupot

    stupot Peon

    Messages:
    61
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #9
    In ASP you don't create the file manually, the asp creates it on the fly and then subsequently owns the file and inherently has full permissions to read / write to and from the file. The reason that you were getting too many calls to the server was not related to the writability of the file but to the way I handled the error when your server goes down. I am guessing that you have some sort of firewall that detects the traffic and automatically banns IPs. If for some reason your site was down the ASP sites would go into overload and hammer your firewall. I have now fixed this and it should work much better now.

    My sites still seem to be banned and now they try to contact your server once every 100 seconds until they succeed, which is much better for my sites and yours.

    Hope this makes sense. It's getting to the end of my day.

    Stupot
     
    stupot, Mar 11, 2005 IP
  10. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,116
    Likes Received:
    2,578
    Best Answers:
    457
    Trophy Points:
    710
    Digital Goods:
    29
    #10
    That's not what was going on... the ad server has not been down (not even rebooted in more than a month).

    The blocking of an IP is based on successful requests to the ad server. Some ASP sites have been getting into the range of 10,000 successful requests for ads per day. This makes me think that they are simple requesting an a new ad every time it wants to serve one up. Either way, *something* isn't right with it.
     
    digitalpoint, Mar 11, 2005 IP
  11. stupot

    stupot Peon

    Messages:
    61
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #11
    10,000 is obviously some sort of problem.

    I don't know how best to test what the problem is. Can you let my sites back in and keep an eye on the requests and see if this version is any better?

    Stupot
     
    stupot, Mar 11, 2005 IP
  12. sji2671

    sji2671 Self Made Mind

    Messages:
    1,992
    Likes Received:
    144
    Best Answers:
    0
    Trophy Points:
    170
    #12
    If the new code would mean only make a call once every 100 seconds until it succeeds then would this not solve the problem, ie could we have the sites unblocked.

    There wouldn't be the same problem with the newer code -as Stupot describes it- as no asp site would hammer the DP server 10,000 times now.
     
    sji2671, Mar 11, 2005 IP
  13. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,116
    Likes Received:
    2,578
    Best Answers:
    457
    Trophy Points:
    710
    Digital Goods:
    29
    #13
    Well the 100 second lag isn't going to do anything to actually fix whatever the actual problem is. It's a band-aid, but doesn't actually fix it. Sites will end up being blocked automatically if they request ads faster than the ad network server tells them to.

    Currently the ad network server instructs servers to get one new ad no faster than every 4 seconds for the initial filling of the cache, then no faster than 900 seconds between new ads there after.

    A *better* thing to do would be to setup the ASP to comply with the directives of the ad server (in case it changes). Also, you should think about resolving the validate.digitalpoint.com IP address, rather than hard-coding it, as that is going to cause future problems when the IP changes.

    stupot - what is your IP address that is blocked?
     
    digitalpoint, Mar 11, 2005 IP
  14. stupot

    stupot Peon

    Messages:
    61
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #14
    These sites have been running for months without being banned so this is all very puzzling to me.
     
    stupot, Mar 11, 2005 IP
  15. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,116
    Likes Received:
    2,578
    Best Answers:
    457
    Trophy Points:
    710
    Digital Goods:
    29
    #15
    The banning mechanism isn't completely automated at this point... I manually review the ones it wants to ban for now... so that's why the bans happen in sweeps one day. Your IP is unbanned now.
     
    digitalpoint, Mar 11, 2005 IP
  16. sji2671

    sji2671 Self Made Mind

    Messages:
    1,992
    Likes Received:
    144
    Best Answers:
    0
    Trophy Points:
    170
    #16
    213.171.193.34

    Could you unblock mine as well?, if this doesnt work I think I will just take the site out of the coop.
     
    sji2671, Mar 11, 2005 IP
  17. stupot

    stupot Peon

    Messages:
    61
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #17
    Hold fire, just doing a little testing.
     
    stupot, Mar 11, 2005 IP
  18. stupot

    stupot Peon

    Messages:
    61
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #18
    Tested good on my banned IP and validated ok also. Thanks.
     

    Attached Files:

    stupot, Mar 11, 2005 IP
  19. sji2671

    sji2671 Self Made Mind

    Messages:
    1,992
    Likes Received:
    144
    Best Answers:
    0
    Trophy Points:
    170
    #19
    Yes, my site is back!
    Validated it as well , great work Stupot and thanks for your patience Shawn.
     
    sji2671, Mar 11, 2005 IP
  20. Dirkjan

    Dirkjan The Dutch SEO Guy

    Messages:
    528
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    138
    #20
    Odd... Mine still doesnt work. Should I PM you Stupot? Maybe you know whats going wrong on my ASP website. www.mysite/directory/ works so I guess its not banned or something.
     
    Dirkjan, Mar 14, 2005 IP