?
Solved

Deny From -- How do I ban abusers server wide?

Posted on 2004-09-19
1
Medium Priority
?
1,072 Views
Last Modified: 2013-12-05
I have banned certain users using Deny From IP address in my sites .htaccess file. How, do I ban abusers "server wide" not just on my site?

I am a Linux/Apache nube so some detail as to the name and location of files I'll need to modify will be appreciated.
0
Comment
Question by:kiqkinas
1 Comment
 
LVL 15

Accepted Solution

by:
periwinkle earned 500 total points
ID: 12101208
One of the easiest methods to ban an IP address from being able to access your Linux server is to change the route on that IP address.  From the command line, as the superuser or root:

/sbin/route add xxx.xxx.xxx.xxx gw 127.0.0.1

where xxx.xxx.xxx.xxx is the IP address that you want to ban.

This will stay in place until your server has rebooted;  to keep it in place, you'd want to put that line in your system startup.  This location will vary a bit between Linux distributions;  if you are using RedHat Linux, an appropriate location would be to put this at the end of your /etc/rc.d/rc.local file.
0

Featured Post

Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Over the last year I have answered a couple of basic URL rewriting questions several times so I thought I might as well have a stab at: explaining the basics, providing a few useful links and consolidating some of the most common queries into a sing…
If you use Debian 6 Squeeze and you are tired of looking at the childish graphical GDM login screen that is used by default, here's an easy way to change it. If you've already tried to change it you've probably discovered that none of the old met…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
As many of you are aware about Scanpst.exe utility which is owned by Microsoft itself to repair inaccessible or damaged PST files, but the question is do you really think Scanpst.exe is capable to repair all sorts of PST related corruption issues?
Suggested Courses
Course of the Month15 days, 11 hours left to enroll

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question