Please make a note of it in order to communicate from you java codeĬommunicate to ICAP server from JAVA There is a java implementation in gitHub Baekalfen/ICAP-avscan which you can use. Restart your ICAP server and service after all the configurations are complete.Īs part of the configuration, you will assign a name for your ICAP service. The required configuration are explained as part of c-icap installation under Installing SQUID section. Once your installation is complete you need to configure few config parameters in nf under /usr/local/squid/etc. You may opt to download the binaries from the internet or do an installation through apt-get or yum.
Setting up ICAP server & service : Installation of open source implementation of c-icap can referred from Īlong with c-icap server installation, you need to install an ICAP service say SQUID. When a web server communicates to an ICAP server through the icap protocol, depending on the port number, the data is transferred to corresponding service. We can register one or more services with an ICAP server, though no two services can be on the same port. ICAP service registers itself to an ICAP server at a particular port. It isn’t sufficient if you just have an ICAP server installation. ICAP server and ICAP service (Which is your anti virus service and validates the input for virus). How does ICAP validation work ? You need 2 things. I will take you through a open source implementation of ICAP c-icap Here’s a solution for a standardized way of communication using Java. Commercial implementations expose their own SDKs (Software Development Kit) though there isn’t a standard/Generic way to communicate using ICAP protocol. The key challenge is to How can a web server communicate to ICAP server using the icap protocol. Today in the market there are various open source as well as commercial implementations of ICAP server available.
It’s the protocol by which web servers communicate to ICAP server (which in turn talks to anti virus software and gets your data validated.) Here’s a snapshot from yahoo mail.Įver wondered how do they do it ? The answer is ICAP. What’s this protocol and why are we even talking about it ?Įver noticed nowadays all your e-mail providers such as gmail/yahoo etc claim that your attachments are scanned for virus. ICAP – Internet Content Adaptation Protocol