Drupal and ClamAV Integration for Scanning Upload Files

By

This article was published in the print magazine Drupal Watchdog, Volume 6 Issue 3, Winter 2016, on page 8, by Linux New Media.

If your website needs to allow visitors to upload files that may later be downloaded by other visitors, then your site should definitely be checking those files to verify that they do not contain any viruses or other malevolent code. Fortunately, using the ClamAV module, you can add the open source ClamAV antivirus software to your site. The module documentation briefly explains how to install the virus scanner if you have control over the server. (For shared hosting, you would need to request the web hosting company to install it for you.) The module will examine every file that users try to upload, and if the ClamAV scanner detects malicious code, the file will not be saved on the server.

Copyright © 2016 Michael J. Ross. All rights reserved.

Content topics: 

Add new comment

Filtered HTML

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <address> <area> <blockquote> <br> <cite> <code> <dd> <div> <dl> <dt> <em> <fieldset> <h1> <h2> <h3> <h4> <h5> <h6> <hr> <img> <input> <li> <map> <ol> <p> <pre> <span> <strong> <sup> <u> <ul>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
19 + 0 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.