Is there any client side mechanism to detect, if file download is blocked by antivirus/ group policy/Any registry setting/security policy/any other restrictions?

Sandeep 1 Reputation point
2020-12-03T02:13:11.223+00:00

We are working on ASP.NET web application -ASP.NET C# at server side and JQuery/JavaScript on client side . We download some exe files from server, however sometime antivirus/group policy/Any registry setting/security policy/any other restrictions block the download of exe file.

Is there any client side mechanism(JavaScript/JQuery) which can detect file has been blocked by any of the above reasons?

If it is not possible by jQuery or JavaScript then is there any other way to find out, if downloaded file is blocked by antivirus.
Also would like to know by what all reasons can cause the download of EXE file on a system.

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,500 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. XuDong Peng-MSFT 10,741 Reputation points Microsoft Vendor
    2020-12-04T02:22:07.723+00:00

    Hi @Sandeep ,

    The client language (Javascript, Flash, etc.) is sandboxed into an environment. The browser sandbox means that each browser process (tab, extension) is isolated and they are not allowed to access anything else on your PC.

    Therefore, the requirements you described are impossible to achieve because of the serious security risks.

    The download of the file, I think the reason may be that the user clicked on some buttons or links or similar operations.

    Best regards,
    Xudong Peng


    If the answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.