[cups.general] How to restrict the print access ?
pipitas
k1pfeifle at gmx.net
Tue Oct 12 11:22:03 PDT 2004
Tomas Davidek wrote:
> Apparently, "Browsing Off" just turns off
> advertising the printers, but one can still print.
Correct
> I hope someone can provide me with some hints how to disable remote
> printing....
Putt in this section into cupsd.conf:
-----------------------------------------------------
<Location /printers>
AuthType None
# change AuthType as needed
Order Deny,Allow
Deny From All
Allow From localhost
Allow From 1stHost
Allow From 2ndHost
# insert more settings as needed
</Location>
-----------------------------------------------------
You could even have s.th. like this:
-----------------------------------------------------
<Location /printers>
AuthType None
# change AuthType as needed
Order Deny,Allow
Deny From All
Allow From localhost
# dont allow from any remote host
</Location>
<Location /printers/printername1>
AuthType None
# change AuthType as needed
Order Deny,Allow
Deny From All
Allow From localhost
Allow From 1stHost
Allow From 2ndHost
# allow 2 remote hosts to print to printername1
# insert more settings as needed
</Location>
<Location /printers/printername2>
AuthType None
# change AuthType as needed
Order Deny,Allow
Deny From All
Allow From localhost
Allow From 3rdHost
Allow From 4thHost
Allow From 5thHost
Allow From 6thHost
# allow 4 remote hosts to print to printername2
# insert more settings as needed
<(Location>
-----------------------------------------------------
Remember to restart cupsd to make the settings take effect.
> Regards
> Tomas
Cheers,
Kurt
More information about the cups
mailing list