Enabling Antivirus Scanning for Uploaded Files¶
Available: DXP 7.3 SP 1+, Portal 7.3 GA7+, and DXP 7.2 FP 9+
This feature is not currently available on Portal 7.2 and earlier versions.
You can automatically scan any file uploaded to Liferay for viruses. When you enable the antivirus scanner, it checks files on upload to Liferay applications, such as Documents and Media, Message Boards, and more. If a virus is found, it’s reported for users to reject.
Liferay integrates with the ClamAV Daemon (Clamd). For best performance, run Clamd on a separate server.
Here’s how to enable the antivirus scanning:
On a separate server, configure and start Clamd.
Load your ClamAV database before starting Clamd.
Docker environment variable:
Start your Liferay server.
Go to Control Panel → System Settings and select Antivirus in the Security category.
Select Antivirus Clamd Scanner in the menu.
Enter the Clamd server’s hostname or IP address, port, and a connection timeout time (milliseconds).
Now files are scanned on upload to Liferay applications. If a virus is detected in a file you’re uploading, the scanner reports the infected file, and you should decline saving the file.
Never save a virus-infected file. Reject the file by canceling the current operation.