Latest ASP Version No Text File (Uses Application Variable instead) More robust way of making calls to dp server (should help stop being banned)
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
When a site is being blocked, do the ads still show but validate fails? In that case www.aanbodpagina.nl was probably blocked too . 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.
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.
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.
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.
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
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.
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
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.
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?
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.
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.
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.