Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Java Being Blocked By Antivirus Software (Specifically AVG)

I have a program that I've been working on that downloads files. Everything works perfectly, unless a user is using AVG. Oddly enough, it seems that in order to fix the issue AVG's "Email Protection" must be disabled; adding either my program or the JRE to an exceptions list doesn't work.

I am downloading content through the use of a BufferedInputStream obtained from a URL. Users have been reporting that the download process starts fine, but freezes ~5%-15% in (it varies). The download progress is shown with a JProgressBar.

Is there any way to avoid this? It's a pain having to deal with it case by case...

like image 418
Samusaaron3 Avatar asked Feb 07 '12 01:02

Samusaaron3


People also ask

Can AVG Antivirus be trusted?

With a 99.8 percent malware detection rate, AVG is one of the trusted names in antivirus for good reason. Now more than ever, strong antivirus software is a necessity for the health and safety of every Internet-enabled device.

How do I whitelist a program in AVG?

Add an exceptionOpen AVG AntiVirus and go to ☰ Menu ▸ Settings. Select General ▸ Exceptions, then click Add exception. Add an exception in one of the following ways: Type the specific file/folder path or URL into the text box, then click Add exception.


1 Answers

Do you download files which contain code of some sort? - That may be why AVG is blocking it.

An easy solution to this (used by virus writers world wide) is to simply transport the source code and compile it client side (Java has a compiler you can call from within your code), or to just encrypt the file, download it in the encrypted form and then decrypt it when you have received the file client side.

like image 107
ExxKA Avatar answered Oct 03 '22 01:10

ExxKA