I am thinking of initially saving file attachments in the database.
I have seen on the 'Yahoo' web site that file attachments are pre-scanned.
This is why I am asking.
Ron Piggott
www.TheVerseOfTheDay.info
-----Original Message-----
From: Tim Streater
Sent: Tuesday, February 04, 2014 7:53 AM
To: Sebastian Krebs ; Maciek Sokolewicz
Cc: Ron Piggott ; PHP General List
Subject: Re: IMAP and Anti Virus Scanning For File Attachments
On 04 Feb 2014 at 11:00, Sebastian Krebs <krebs.seb@xxxxxxxxx> wrote:
2014-02-04 Maciek Sokolewicz <maciek.sokolewicz@xxxxxxxxx>:
On 4-2-2014 6:38, Ron Piggott wrote:
I am wondering what (or how) to protect from viruses when processing
IMAP
file attachments. I am using PHP 5.5.7 and Arch Linux.
That depends on what you want to do with the attachments. How do you
process them? Simple text files for example are unable to contain
virusses
and are thus harmless.
Thats wrong. For example HTML is a simple text-file too, but still can
contain javascript-code and whatever flaws it may have.
For display purposes, use a sandboxed iframe. Then you can display the html
while preventing any js execution.
--
Cheers -- Tim
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php