View Single Post
Old 2008-04-12, 09:16   Link #5
Epyon9283
Geek
 
 
Join Date: Dec 2005
Location: New Jersey
Age: 40
Send a message via ICQ to Epyon9283 Send a message via AIM to Epyon9283
Quote:
Originally Posted by SeijiSensei View Post
(This is for Linux and, I think, the BSD's as well now. I know nothing about OS X firewalling methods, and this certainly won't get you anywhere on Windows.)
BSDs and OS X use either pf or ipfw. They thankfully don't use the same awful syntax as iptables. I'm only really familiar with ipfw (OS X uses it) and the command would look like this:
Code:
ipfw -q add 001 deny all from 3.0.0.0/8 to any

In the wild and wooly world of web servers make sure no files are executable unless they absolutely need to be. Give only read access to the user apache is running as to the .htaccess file if you go that route (instead of the firewalling route). Don't make anything in your docroot writable by the apache user unless it needs to be.
Epyon9283 is offline   Reply With Quote