Date: Wed, 2 Jan 2002 17:17:27 +0300 From: Odhiambo Washington <wash@wananchi.com> To: freebsd-questions@freebsd.org Cc: Jayyness@mindspring.com Subject: Re: Kicking a single user off httpd Message-ID: <20020102171727.E49613@ns2.wananchi.com> In-Reply-To: <000f01c19394$42196d10$0300a8c0@jayyness.com> References: <000f01c19394$42196d10$0300a8c0@jayyness.com>
next in thread | previous in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 * Totally Jayyness <Jayyness@mindspring.com> [20020102 16:48]: wrote: > I know how to kill and restart this process... just don't know how to kick a > single user. Better explain the situation as I am not sure how to ask my > question really. > > I recently set up a FreeBSD 4.4 mp3/ftp server. If you go to my website, it > is just a directory listing of all my mp3s with playlist songs to stream > mp3s from the web. > > Well, while trying to listen to my mp3s this morning, they were super > choppy. Winamp couldn't keep up with the buffer. I log into my server and > find that there are like 40+ connections to port 80 from one single IP.... > So this person must be d/ling MP3s directly from my web interface instead of > requesting ftp access to my site.... so I do a killall -HUP httpd which > kills all the connections and restarts my daemon... check netstat -Aan and > everything looks normal.... my mp3s start streaming nicely... for about 1 > minute (probably less). Check netstat -Aan again and all the 40+ > connections are back... > > Can I kill that user off of httpd? If so, what commands do I use? Kill is rather difficult, IMO. Why don't you use the restrictions that come as directives in httpd.conf to restrict who can access your server? <Directory /path/to/mp3z> Order allow,deny AllowOverride None Allow from .some_domain.com </Directory> Or so I think ;) - -Wash S y s t e m s A d m i n. - -- Odhiambo Washington <wash@wananchi.com> "The box said 'Requires Wananchi Online Ltd. www.wananchi.com Windows 95, NT, or better,' Tel: 254 2 313985-9 Fax: 254 2 313922 so I installed FreeBSD." GSM: 254 72 743 223 GSM: 254 733 744 121 This sig is McQ! :-) ++ Why can't you be a non-conformist like everyone else? -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iD8DBQE8MxZ1n7LIsuxjem8RAvIqAJ44vkhhiwZQNIcmBG9Cu5bhGGxv/gCeOQCA 8EB3vH5ftOF4L72CAfHna8s= =Ptwx -----END PGP SIGNATURE----- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020102171727.E49613>