[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

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

Posted on 2004-09-19
1
Medium Priority
?
1,065 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

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…
The purpose of this article is to show how we can create Linux Mint virtual machine using Oracle Virtual Box. To install Linux Mint we have to download the ISO file from its website i.e. http://www.linuxmint.com. Once you open the link you will see …
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Suggested Courses
Course of the Month14 days, 16 hours left to enroll

649 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