Zope/Medusa: Response to CONNECT method

Klaus Alexander Seistrup jakabov+20021231 at magnetic-ink.dk
Tue Dec 31 09:59:52 EST 2002


Hi,

Several times a day spammers try to exploit my Zope server by sending
CONNECT requests:

#v+
CPE-144-137-74-146.nsw.bigpond.net.au - Anonymous [31/Dec/2002:05:46:03 +0200] "CONNECT ananzi03.mx.smtphost.com:25 HTTP/1.0" 404 264 "" ""
a250.161.maxdsl.nl - Anonymous [31/Dec/2002:09:08:22 +0200] "CONNECT ananzi01.mx.smtphost.net:25 HTTP/1.0" 404 264 "" ""
ppp3-28.mol.com.mk - Anonymous [31/Dec/2002:10:09:56 +0200] "CONNECT 195.205.35.87:25 HTTP/1.0" 404 264 "" ""
63.171.185.123 - Anonymous [31/Dec/2002:10:11:46 +0200] "CONNECT besttvdeal.com:25 HTTP/1.0" 404 264 "" ""
63.171.185.123 - Anonymous [31/Dec/2002:12:37:38 +0200] "CONNECT mailin-04.mx.aol.com:25 HTTP/1.0" 404 264 "" ""
#v-

Zope responds with a "404: Not Found".  Howeever, I would like Zope to
return a "405: Method Not Allowed" instead.  I have tried to change a
few lines in ZPublisher/BaseRequest.py, but to no avail.  Does anyone
here know where I should change what in order to obtain the desired
response?

I'm running Zope with its own ZServer/Medusa webserver.


Cheers,

  // Klaus

-- 
 ><> 	vandag, môre, altyd saam



More information about the Python-list mailing list