Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 3 Mar 2011 19:11:43 +0000
From:      Frank Shute <frank@shute.org.uk>
To:        Jorge Biquez <jbiquez@intranet.com.mx>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Simplest way to deny access to a class C
Message-ID:  <20110303191143.GA61384@orange.esperance-linux.co.uk>
In-Reply-To: <3382016411-764985335@intranet.com.mx>
References:  <3382016411-764985335@intranet.com.mx>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
On Thu, Mar 03, 2011 at 10:59:59AM -0600, Jorge Biquez wrote:
>
> Hello all.
> 
> I am sorry in advance if this question sounds too stupid.
> 
> I have a small server for personal use of webpages running:
> 
> 7.3-PRERELEASE FreeBSD 7.3-PRERELEASE #0
> 
> it is working fine , no problem very stable.
> 
> I just need to block some IP class C address that are always trying 
> to "discover" directories or applications under the web server. They 
> do not do and can not do anything since this server has nothing 
> installed but i am tired of seeing in the logs all the intents they 
> do every 2-3 seconds.
> 
> I have not installed any kind of firewall yet.
> What do you think is the best way to accomplish this task? If 
> possible the easiest one. I do not want to do anything else but just 
> bloc IP's, at this moment at least.
> 
> Thanks in advance.
> 
> Jorge Biquez
> 

I'm assuming you're running Apache, in which case you can block
addresses using .htaccess

http://www.webmasterworld.com/apache/3118159.htm


Regards,

-- 

 Frank

 Contact info: http://www.shute.org.uk/misc/contact.html



[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.16 (FreeBSD)

iEYEARECAAYFAk1v5+4ACgkQHduKvUAgeK6/VwCaAyHQAGKQxoixqClEJmsaqqtg
zQwAoIp+Bh1DmgalA7mbODby/bNdcSQt
=dxPE
-----END PGP SIGNATURE-----
help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110303191143.GA61384>