LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices



Reply
 
Search this Thread
Old 04-25-2004, 01:47 PM   #1
mortsahl
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
</Directory>

<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 64.162.177.122
deny from 64.173.177.207
deny from 64.175.106.20
deny from 64.230.86.30
deny from 67.126.114.77
deny from 208.59.199.232
allow from all
</Limit>
 
Old 04-25-2004, 09:22 PM   #2
Technoslave
Member
 
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
dominant
Member
 
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.
 
  


Reply


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


All times are GMT -5. The time now is 07:13 PM.

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