| 
 
 
 | 
| Keep Server Online 
 If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
 
 or
 
 
   
 A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
 
 Thank You! Steffen
 
 Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
 |  | 
 | 
| | 
| | 
|  Topic: mod_security is there a way to ban certains ips? |  |  
| Author |  |  
| mewbie 
 
 
 Joined: 23 May 2009
 Posts: 25
 
 
 | 
|  Posted: Fri 12 Jun '09 5:58    Post subject: mod_security is there a way to ban certains ips? |   |  
| 
 |  
| Where would I add ip's that I would like to ban from being able to access my site? 
 Thank you
  |  |  
| Back to top |  |  
| glsmith Moderator
 
  
 Joined: 16 Oct 2007
 Posts: 2268
 Location: Sun Diego, USA
 
 | 
|  Posted: Fri 12 Jun '09 9:31    Post subject: |   |  
| 
 |  
| no need for mod_security for that ... 
 Order Allow,Deny
 Allow from all
 deny from xxx.xxx.xxx.xxx
 deny from xxx.xxx.xxx.xxx
 deny from xxx.xxx.xxx.xxx
 deny from xxx.xxx.xxx.xxx
 
 that will 403 them .. use a Rewrite if you want to send them off to somewhere else.
 |  |  
| Back to top |  |  
| mewbie 
 
 
 Joined: 23 May 2009
 Posts: 25
 
 
 | 
|  Posted: Sat 13 Jun '09 7:51    Post subject: |   |  
| 
 |  
| Great, thats easy  Thank you glsmith! |  |  
| Back to top |  |  
 
 | 
 |  | 
 |  |