|
|||||||
| Securing / Hardening / Updating / Configuring / Tweaking Talk about securing, hardening, updating your system, compiling softwares, tweaking your configurations etc. NO OFFER/PROMOTION PLEASE! |
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
Apache Security
Hi,
anyone knows how to configure http access to only a certain ip range? like an access list on apache. like when an ip range of 123.x.x.x , I will allow them to access http://myserver.com else, deny. Thanks in advance. Regards |
|
#2
|
||||
|
||||
|
Create a .htaccess file with the following content in the folder which you want to restrict IP addresses:
Code:
order deny,allow allow from 123.456.789. allow from .yourdomain allow from .yourisp.com deny from all Kindest regards,
__________________
Giam Teck Choon CHOON.NET :: Join choon.net Community today to share your tips and tricks on server issues please :: :: Singapore Co-location :: Singapore Dedicated Servers :: Singapore Virtual Private Servers :: Linux/FreeBSD Server Management :: |
![]() |
| Thread Tools | |
| Display Modes | |
|
|