Re: [users@httpd] How to retrieve IP address of incoming packets in text file using httpd source code

2012-12-26 Thread Nick Kew
On 26 Dec 2012, at 19:31, John Iliffe wrote: > Maybe I'm missing something following this discussion, but doesn't the > following PHP command fetch the information you need? If so, I'm sure the > same results can be obtained in other scripting languages. > > $_SERVER['REMOTE_ADDR']; You ma

Re: [users@httpd] How to retrieve IP address of incoming packets in text file using httpd source code

2012-12-26 Thread Bhavna Saini
I have not used any PHP command up till now. I was trying to make it work using the apache(httpd) source code itself. Can it be done without using any script language?? OR by adding some code lines in the apache source code files itself?? On Thu, Dec 27, 2012 at 1:01 AM, John Iliffe wrote: > May

Re: [users@httpd] How to retrieve IP address of incoming packets in text file using httpd source code

2012-12-26 Thread John Iliffe
Maybe I'm missing something following this discussion, but doesn't the following PHP command fetch the information you need? If so, I'm sure the same results can be obtained in other scripting languages. $_SERVER['REMOTE_ADDR']; Regards, John === On

Re: [users@httpd] How to retrieve IP address of incoming packets in text file using httpd source code

2012-12-26 Thread Bhavna Saini
Thanks for the info. I have gone through customlog and i understand that it is used to log the IP and other parameters, But I want to compare the IP address of incoming requests with IP address present in a pre-built data structure. After comparing, the request will be served accordingly. Therefore

Re: [users@httpd] Directory access control by referer and password auth

2012-12-26 Thread Nick Kew
On 26 Dec 2012, at 11:28, Andrey Utkin wrote: > Anyone? See http://httpd.apache.org/docs/2.4/mod/core.html#if -- Nick Kew - To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h..

Re: [users@httpd] Directory access control by referer and password auth

2012-12-26 Thread Andrey Utkin
2012/12/25 Andrey Utkin : > 2012/12/25 Wade Evans : >> Are you certain that this will suit your security needs? HTTP_REFERRER is >> easy to spoof... > > Yes. Thanks for asking, the possibility of spoofing is understood, > nothing top secret is portected. Anyone? -- Andrey Utkin ---