Solved

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

Posted on 2004-09-19
1
1,038 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 125 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

Create the perfect environment for any meeting

You might have a modern environment with all sorts of high-tech equipment, but what makes it worthwhile is how you seamlessly bring together the presentation with audio, video and lighting. The ATEN Control System provides integrated control and system automation.

Question has a verified solution.

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

Suggested Solutions

Are you sitting there reading this and wondering how to get started with Linux? It almost seems like picking the right Linux distribution is about like picking the right college or buying a new car if you read some of the article out there. Relax… l…
In Solr 4.0 it is possible to atomically (or partially) update individual fields in a document. This article will show the operations possible for atomic updating as well as setting up your Solr instance to be able to perform the actions. One major …
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

820 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