Solved

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

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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

This article will explain how to establish a SSH connection to Ubuntu through the firewall and using a different port other then 22. I have set up a Ubuntu virtual machine in Virtualbox and I am running a Windows 7 workstation. From the Ubuntu vi…
You ever wonder how to backup Linux system files just like Windows System Restore?  Well you can use Timeshift in Linux to perform those similar action.  This tutorial will show you how to backup your system files and keep regular intervals. Note…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

737 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