find current ip address in code

2007-04-15 Thread Siddhesh PaiRaikar
hi.. wat is the way to get the ip address of the machine whose request i am currently processing... in the code that is what piece of code will i have to add to get the ip address... i just am doing some validation and hence need to see if the ip address is allowed to access the site or not

blocking ads

2007-03-24 Thread Siddhesh PaiRaikar
hi i would like to know what is the best way to block advertisements on any site using squid i found a few things on the net wchich suggest the use of an acl stored in a file in /etc and then denying the acl but not of much use... this was the acl definition acl ads

Re: icap patch

2007-03-10 Thread Siddhesh PaiRaikar
is there any patch for squid 2.6 stable 6 for ICAP support. i cant seem to find it. there is a patch available for squid2.5. Will it also work for 2.6? and what is the command for that? - Siddhesh with due apologies for this previous mail of mine.. with a little more search i found the patch

Re: icap patch

2007-03-10 Thread Siddhesh PaiRaikar
hi is there any patch for squid 2.6 stable 6 for ICAP support. i cant seem to find it. there is a patch available for squid2.5. Will it also work for 2.6? and what is the command for that? thanks -- - Siddhesh On 3/11/07, Siddhesh PaiRaikar <[EMAIL PROTECTED]> wrote: hi is there any

Re: redirection

2007-03-09 Thread Siddhesh PaiRaikar
Easiest: Implement your filter using ICAP, and in your ICAP server agent buffer the response until you find it's OK. If not OK replace the response with your blocking page.. Doing this within Squid is a bit hairy.. Regards Henrik while finding on ICAP servers i came accross this : there

Re: redirection

2007-03-08 Thread Siddhesh PaiRaikar
we need to block a particular site based on the content. we are planning to block the page from the function storeAppend() in store.c. wold it be the right place for blocking the page or should it be blocked elsewhere. httpAppendBody is probably a better place.. we are using squid 2.6

redirection

2007-03-07 Thread Siddhesh PaiRaikar
we need to block a particular site based on the content. we are planning to block the page from the function storeAppend() in store.c. wold it be the right place for blocking the page or should it be blocked elsewhere. also ... what would be the easiest way to start the redirection to our server

redirect handle reply

2007-03-04 Thread Siddhesh PaiRaikar
hi in an attempt to modify the code of squid when i modified the code of the function redirectHandleReply() in redirect.c .. i see that any change made to that function reflects in squid and any printf statement also works fine.. i only failed to find a location in the code of squid where that fu

Squid core dump error

2007-02-16 Thread Siddhesh PaiRaikar
Hi ... 1. I am trying to scan the web page content that comes in from squid. The content is received in a variable buf in store.c by default , so wat we do is to scan buf for some words. wen we open any page with squid initially it works just fine and detects all the words that we want to

Re: redirect program technicalities

2007-02-11 Thread Siddhesh PaiRaikar
On 2/12/07, Siddhesh PaiRaikar <[EMAIL PROTECTED]> wrote: hi.. Can someone please tell me .. that when squid passes on the URL to another program such as say squidguard... does it write to stdin or somewhere else... and also wen it gets back a URL from the external program.. does it get

Re: saving web page body to file... help needed

2007-01-17 Thread Siddhesh PaiRaikar
thanks for the reply. i understand the complexity involved in working with squid as it is a huge code base. im sorry to probe too much into this as well. and we are currently working on the squid 2.6 stable 4 > But Squid doesn't. It sends data to the client while it arrives from the >server.

Re: saving web page body to file... help needed

2007-01-17 Thread Siddhesh PaiRaikar
Rousskov <[EMAIL PROTECTED]> wrote: On Wed, 2007-01-17 at 19:07 +0530, Siddhesh PaiRaikar wrote: > we are trying to develop a small enhancement to the existing application of > squidguard using the squid proxy server... which can later be embedded in to > squid itself as a htm

saving web page body to file... help needed

2007-01-17 Thread Siddhesh PaiRaikar
hi.. we are trying to develop a small enhancement to the existing application of squidguard using the squid proxy server... which can later be embedded in to squid itself as a html web page body scanner for unwanted content. the idea is to extract the body of the HTML page and store it in a fil