Virus scanning in a Java webapp?
I'm writing a Java-based web app that allows users to upload and submit content to the site. Before it is made available, though, I'd like to perform a virus scan to ensure that no malicious content gets posted. Does anyone know of an anti-virus scanner that can be accessed via Java? The app will be hosted on Linux (CentOS 5.5 x64) and run on Tomcat 6.x. Any advice or recomme开发者_如何学Gondations would be appreciated!
Check out Clam AV. It seems to only come in shared library form so you would have to make a JNI wrapper for it. I haven't tried it but it looks kind of neat.
精彩评论