Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Security
User Name
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.


  Search this Thread
Old 04-25-2004, 01:47 PM   #1
LQ Newbie
Registered: Aug 2003
Location: Littleton, CO
Distribution: Red Hat 9
Posts: 8

Rep: Reputation: 0
IP Blocking Help

I'm trying to block specific IP address and IP address ranges from accessing my web site. The following is that I have in my /usr/local/apache/htdocs/.htaccess file ... all it seems to do it deny all ... what I am doing wrong?

<Directory "/usr/local/apache/htdocs">
AllowOverride Options

<Limit GET>
order deny,allow
deny from 64.81.87.
deny from 64.81.95.
deny from 64.81.102.
deny from 64.81.240.
deny from
deny from
deny from
deny from
deny from
deny from
allow from all
Old 04-25-2004, 09:22 PM   #2
Registered: Dec 2003
Location: Northern VA
Posts: 493

Rep: Reputation: 30
*shrug* instead of denying via apache, why not just deny them via iptables?
Old 04-26-2004, 09:29 AM   #3
Registered: Jan 2004
Posts: 409

Rep: Reputation: 30
remove the order deny,allow and
put the <Limit GET> into <Directory> container
and try again

Last edited by dominant; 04-26-2004 at 09:53 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Port Blocking adtomar Linux - Networking 6 12-14-2004 04:35 AM
Non blocking file IO bstark Programming 5 12-01-2004 01:36 PM
Blocking IP Addresses toejam Linux - Security 2 05-01-2004 01:14 AM
Blocking porn shea1roh Linux - Software 0 08-14-2003 09:11 PM
IP blocking merlin371 Linux - Networking 2 08-04-2003 11:42 AM > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 09:24 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration