[cups.general] limit page prints by ip and hour

Jerome Alet alet at librelogiciel.com
Wed May 28 07:08:40 PDT 2008

On Wed, May 28, 2008 at 06:59:42AM -0700, wolfbuda wrote:
> Hi there,
> I would to like to know if it's possible to limit print pages on 
> client ip by hour. For example the ip only can print 
> 20 pages per hour

To the best of my knowledge this is not possible with CUPS' accounting

You can do this easily with PyKota (http://www.pykota.com) on top of 
CUPS though. There's no real documentation for this, but you simply need
to use the 'overwrite_jobticket' directive to replace the job's username
with the client's ip address, and then use ip addresses everywhere you
would use an username. Then in a cron job reset quotas every hour. 
Really easy.


Jerome Alet

More information about the cups mailing list