filter incoming requests

How do I filter incoming requests into my q process ? Is there any sample code out there. A few use cases are below :

  1. Disable select statements 

  2. Disable HTTP get requests 

  3. Log all requests

http://code.kx.com/wiki/Contrib/UsingDotz

http://code.kx.com/wiki/Cookbook/Firewalling_Notes

http://code.kx.com/wiki/Cookbook/AuthenticationAndAccessControl