homepage Welcome to WebmasterWorld Guest from 54.242.126.9
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

    
Apache mod to limit monthly traffic?
xereeto



 
Msg#: 4573179 posted 10:48 pm on May 11, 2013 (gmt 0)

Hi,

I have an Apache server, and I'd like to set up a traffic/bandwidth limit of 100GB/Month on a virtual host. Unfortunately, my google-fu has failed me: googling "apache bandwidth (or traffic) limit" has led me to nothing but mods that limit connection speeds...

I tried a mod called "mod_cband", but it didn't appear to work. After testing by setting a quota of 1MB, then downloading some files from the site (using more than 1MB), I found the site continued to operate, even after I cleared my cache, instead of sending the expected "509 Quota Exceeded". The admin 'scoreboard' page provided by the mod, however, reported that the site was over quota.

Does anyone know what the problem is? Or can anyone point me in the direction of another mod that will do the job?

Thanks.

 

lucy24

WebmasterWorld Senior Member lucy24 us a WebmasterWorld Top Contributor of All Time Top Contributors Of The Month



 
Msg#: 4573179 posted 11:59 pm on May 11, 2013 (gmt 0)

:: detour to look at cband docs (which come out looking very weird when content is formatted for browser display-- < and the like-- but is delivered as plain text) ::

Not enough information. The mod comes with a heck of a lot of settings; you'd need to spell them all out.

Before even looking at the docs, my first guess is that the mod comes with a "document only" mode that simply tells you when you've gone over limit, without preventing you from doing so. Second guess is that you intentionally coded an exemption for your own IP, meaning that it will never work for you-- because you don't want it to!

Then again, it might be easier if I knew Polish ;)

xereeto



 
Msg#: 4573179 posted 12:50 am on May 12, 2013 (gmt 0)

Thanks for the reply.

I dug through the docs: it's supposed to return a 509 Error when over quota by default, which it isn't doing.

I've kind of given up on fixing mod_cband, currently looking for other mods.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved