How to Scan File Uploads for Viruses and Malware, Block Content Threats using PHP

File uploads infected with viruses and malware can cause major problems if they bypass our security policies. The below API solution references a growing list of more than 17 million virus and malware signatures, digging deep into files to identify if threats exist within them. In addition, this API allows you to categorically block certain file types such as executables, scripts, invalid files, password protected files, etc. which pose inherent risk.

To take advantage of this API at zero cost, follow the below steps to structure your API call and register a free account on our website (this allows up to 800 API calls per month with no commitments). Alternatively, you can register an enterprise account for more bandwidth.

To start, run the following command to install the PHP SDK:

Next, call the function:

To customize file restrictions, simply change the relevant boolean values within the code examples above to “false.”

Bolstering security is just that easy!

--

--

There’s an API for that. Cloudmersive is a leader in Highly Scalable Cloud APIs.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Cloudmersive

There’s an API for that. Cloudmersive is a leader in Highly Scalable Cloud APIs.