Enable Virus Scan for File Uploads
By integrating a virus scanner into ADONIS, files being uploaded to the ADONIS database (documents, media files, files attached to comments, etc.) or downloaded to your device may be checked for virus infections.
Currently, ADONIS supports integration of Clam AntiVirus (ClamAV) out of the box. If you want to integrate a different virus scanner into ADONIS, please do not hesitate to contact your ADONIS consultant.
Integrate ClamAV
A successful integration of ClamAV into ADONIS requires the following steps:
Install ClamAV and Run Clamd
You must install ClamAV virus scanner on the web server before you can run scans.
The ClamAV Daemon, or clamd
, must be running so that the scanning client clamdscan
can check
files for viruses.
For information on how to install ClamAV and run clamd
, please refer to Installing ClamAV on
Windows or Installing
ClamAV (for Unix/Linux/macOS).
Enable ClamAV in the ADONIS Administration
To enable the virus scanner:
Open the ADONIS Administration and go to Settings > ClamAV Virus Scanner > General.
Select the Enable Virus Scanner check box.
In the Path to Virus Scanner executable box, enter the path to
clamdscan
. The default installation directory is "C:\Program Files\ClamAV".Click Save.
Example: Enable ClamAV in the ADONIS Administration
A valid configuration could look like this:
Done! Restart the ADONIS application server for the configuration changes to become effective.
Logging Output
Logging output is written to the file ”<Tomcat installation>\logs\ADONIS16.0.log”. The output looks like this:
2020-01-24 09:59:59,093 INFO [http-nio-8000-exec-5] [S] [-1250119471:10189] # Attempting to scan file test.pdf with scanner ado.ext.virusscanner.ClamAVScanner - com.boc.axw.core.upload.virusscan.VirusScanMgr.scanFile(VirusScanMgr.java:51)