Welcome to WebmasterWorld Guest from

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

Apache mod to limit monthly traffic?

10:48 pm on May 11, 2013 (gmt 0)

New User

joined:May 11, 2013
posts: 3
votes: 0


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?

11:59 pm on May 11, 2013 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member lucy24 is a WebmasterWorld Top Contributor of All Time 5+ Year Member Top Contributors Of The Month

joined:Apr 9, 2011
votes: 552

:: 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 ;)
12:50 am on May 12, 2013 (gmt 0)

New User

joined:May 11, 2013
posts: 3
votes: 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.

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members