Unix/Linux Go Back    

Security Discuss UNIX and Linux computer and network security, cyber security, cyber attacks, IT security, and more.

configure apache to accept request form specific IP


apache2, security

Thread Tools Search this Thread Display Modes
Old Unix and Linux 03-21-2011   -   Original Discussion by programAngel
programAngel's Unix or Linux Image
programAngel programAngel is offline
Registered User
Join Date: Nov 2010
Last Activity: 19 November 2016, 1:55 AM EST
Posts: 105
Thanks: 47
Thanked 0 Times in 0 Posts
configure apache to accept request form specific IP


What should I change in the httpd.conf so that the apache will accept request from page from specific IP and deny all the rest IP.

I am reading the document of the apache but it is very long (700 pages) and I searched but I could not find something about this.
So if someone can explain me how to do this specific thing, I will be glad?

The direction that I think about is:

<Directory / >
Order allow,deny
Allow from IP1,IP2

while IP1 and IP2 are replaced with the IP numbers that I want to allow.
However I want to make sure it will reject all other IP request.

Thanks in advance.
Sponsored Links

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Copy and forward apache http request JCR Web Programming 1 06-04-2010 01:48 PM
Apache log with long strings of Xs in GET request z1dane Web Programming 4 08-21-2009 07:15 PM
Configure apache prefork MPM LinuxCommandos Linux 0 11-06-2008 05:43 PM
configure php with postgresql and apache sdbeng UNIX for Advanced & Expert Users 5 09-21-2008 01:21 PM
Shell program to accept multiple request at the same time tcskurra Shell Programming and Scripting 3 06-05-2008 11:29 AM

All times are GMT -4. The time now is 04:12 AM.