E
E
Eugene2016-05-22 22:46:07
C++ / C#
Eugene, 2016-05-22 22:46:07

How to block *.exe files?

I want to block *.exe files in such a way that the user could not open for use or a form would be displayed where it would be "YES, open the file" and "No, do not open the file". How to implement it in C++? Or tell me the best way to do this?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander, 2016-05-22
@NeiroNx

This can be done through group policies by setting up a whitelist of paths, and blocking everything else.
gpedit.msc > Computer > Windows > Security > Software Restriction

A
Alex, 2017-05-19
@asilonos

If you write a Low-Level FS Filter Driver and forbid opening EXE, then the whole system will "fall down".
For Windows itself launches EXE files all the time.
If you want it for the User to prohibit it -
You need to write Explorer Shell Extension - https://www.codeproject.com/Articles/441/The-Compl...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question