# $Id: openbsd-ftpd_block_ie.diff,v 1.1 2008/12/17 03:42:45 jcs Exp $ # # refuse ftpd connections from internet explorer users to prevent it # from creating tons of duplicate connections/transfers. # # jcs@jcs.org # Index: ftpd.c =================================================================== RCS file: /mirror/anoncvs/cvs/src/libexec/ftpd/ftpd.c,v retrieving revision 1.175 diff -u -r1.175 ftpd.c --- ftpd.c 1 Mar 2007 20:06:27 -0000 1.175 +++ ftpd.c 13 Dec 2008 19:25:11 -0000 @@ -946,6 +946,17 @@ fatal("Out of memory."); } + if (strcmp(passwd, "IEUser@") == 0) { + /* fucking ie users */ + syslog(LOG_INFO|LOG_AUTH, + "ANONYMOUS FTP LOGIN REFUSED FROM %s: IE user", + remotehost); + reply(530, "FTP access from Internet Explorer " + "denied; use a real FTP client."); + kill_slave("approval failure"); + _exit(0); + } + authok = auth_approval(as, lc, pw->pw_name, "ftp"); auth_close(as); as = NULL;