Solved

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

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

Complete Microsoft Windows PC® & Mac Backup

Backup and recovery solutions to protect all your PCs & Mac– on-premises or in remote locations. Acronis backs up entire PC or Mac with patented reliable disk imaging technology and you will be able to restore workstations to a new, dissimilar hardware in minutes.

Join & Write a Comment

This document is written for Red Hat Enterprise Linux AS release 4 and ORACLE 10g.  Earlier releases can be installed using this document as well however there are some additional steps for packages to be installed see Metalink. Disclaimer: I hav…
The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

744 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now