Page 1 of 1

How a particular URL is processed by ip address in apache ?

PostPosted: 02. June 2008 12:53
by sandeep
I want a particular URL request is processed by only limited Ip address.
For Example:
An Url - "www.exapmle.local/index.php?option=changePassword" is processed by only limited IPs say 256.160.2. By using apache configurations.
I tried to use <Location> in httpd.conf but its not working
Please help me.

Re: How a particular URL is processed by ip address in apac

PostPosted: 03. June 2008 14:33
by liquidx
sandeep wrote:I want a particular URL request is processed by only limited Ip address.
For Example:
An Url - "www.exapmle.local/index.php?option=changePassword" is processed by only limited IPs say 256.160.2. By using apache configurations.
I tried to use <Location> in httpd.conf but its not working
Please help me.


just do it inside the php code using $_SERVER['REMOTE_ADDR']. reject all the access attempt from unauthorized users, say from IP that are not in ur white list

good luck