Here is how you jam various types of invalid requests. Requires v1.21 (only available at code.google.com//web2py). Will be officially released within the week.
in applications/myapp/controllers/default.py
class Jammer(): def read(self,n): return 'x'*n
def jammer(): return response.stream(Jammer(),40000)