|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today! |
|
#1
|
|||
|
|||
|
How do I block IP's
How do I block IP addresses from APACHE? I am using apache 2 and I have 5 or 6 persistant IP addresses that nightly search for files that don't exist or try and find other flaws in my server, I could block them via PHP but I don't trust this method I wold rather have it done from Apache, is this possible?
I am sure I read somewhere you can limit access to Apache via IP address, does anyone know how, for example if I wanted to block 66.66.66.66 an 55.55.55.55 how would I do it? (these are obviously not the real IP's I want to block) Thanks |
|
#2
|
||||
|
||||
|
Using mod_access, try something like this:
Code:
<Directory />
Order Deny,Allow
Deny from 55.55.55.55
</Directory>
|
![]() |
| Viewing: Dev Articles Community Forums > Web Design > Web Server Configuration > How do I block IP's |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|