title: Python Twisted: restricting access by IP address
body: <p>What would be the best method to restrict access to my XMLRPC server by IP address?  I see the class CGIScript in web/twcgi.py has a render method that is accessing the request... but I am not sure how to gain access to this request in my server.  I saw an example where someone patched twcgi.py to set environment variables and then in the server access the environment variables... but I figure there has to be a better solution.</p>
  
  <p>Thanks.</p>