- How to Block a Program with Windows Firewall in Windows 10 [MiniTool News]
- Summary :
- How to Block a Program with Windows Firewall Windows 10
- How to Temporarily Disable a Program
- Bottom Line
- ABOUT THE AUTHOR
- Block or Unblock Programs in Windows Defender Firewall
- You Might Also Like
- Reader Interactions
- Comments
- Did this help? Let us know! Cancel reply
- Primary Sidebar
- Recent Posts
- Who’s Behind Technipages?
- Как заблокировать несколько файлов в Брандмауэре Windows?
- Блокировка нескольких .exe-файлов с помощью BAT-файла
How to Block a Program with Windows Firewall in Windows 10 [MiniTool News]
By Alisa | Follow | Last Updated March 22, 2021
Summary :
Sometimes you may want to prevent an application from accessing the Internet. This tutorial gives a step-by-step guide to teach you how to block a program with Windows firewall in Windows 10.
Normally you would want your applications to have free access to the network. However, no matter for what reason, you wish to block a program from accessing the Internet, you can check the step-by-step guide below to block program with Windows firewall in Windows 10.
How to Block a Program with Windows Firewall Windows 10
Step 1. Open Windows Firewall window
You can click Start, and type Windows Defender Firewall. Choose the top result to open Windows Defender Firewall.
Step 2. Click Advanced settings
In the Windows Defender Firewall, you can click Advanced settings to enter into Windows Defender Firewall with Advanced Security app.
Step 3. Enter into Firewall rule creation window
Next you can click Outbound Rules in the left column and it will display all existing outbound Windows firewall rules in middle window.
In the right Outbound Rules Actions column, you can click New Rule option to open a new window in which you can create a new Firewall rule by your own.
Step 4. Create a new Firewall rule
In the new window, you can choose “What type of rule would you like to create?”
You can click Program to get ready to rule controls connections for a program, and click Next.
Step 5. Select the target program
You can tick This program path and click Browse to find path of the target program you want to block.
You can click This PC in the left column, select the hard drive, and open the program’s folder and select the target program.
If you open the program in Firewall, Windows will restructure the path of the file. You can avoid this problem by manually coping and pasting the file path to the box.
Click the address bar to copy the path of the program, and paste it to the box. Please do contain the app’s name and extension at the end of the path.
Step 6. Name the Firewall rule
You can click Next button three times, and input a name for the new Firewall rule. Then click Finish button to create the new Firewall rule to block the program with Windows Firewall in Windows 10 and prevent the program from accessing the Internet.
How to test internet speed? Here are the top 8 free internet speed test tools for you. Check the internet speed on your Windows 10 PC.
How to Temporarily Disable a Program
Step 1. You can click Start and type Windows Defender Firewall. Choose Windows Defender Firewall to open it.
Step 2. Click Allow an app or feature through Windows Firewall in the left column. And click Change settings.
Step 3. Find the target program you want to block. If you can’t find the program in the list, you can click Allow another app…-> Browse, locate the program and open it, select the program name and click Add to add it to the list.
Step 4. Make sure the target program is not checked in the left. If a program is not checked, then it means Windows Firewall already blocks the program. Finally, click OK to save the changes and prevent the program from running on your Windows 10 computer.
Bottom Line
With the step-by-step guide above, hope you can easily block a program with Windows Firewall in Windows 10 now.
ABOUT THE AUTHOR
Position: Columnist
Alisa is a professional English editor with 4-year experience. She loves writing and focuses on sharing detailed solutions and thoughts for computer problems, data recovery & backup, digital gadgets, tech news, etc. Through her articles, users can always easily get related problems solved and find what they want. In spare time, she likes basketball, badminton, tennis, cycling, running, and singing. She is very funny and energetic in life, and always brings friends lots of laughs.
Block or Unblock Programs in Windows Defender Firewall
By Mitch Bartlett 15 Comments
In Microsoft Windows 10 you can set the Windows Defender Firewall to block or unblock certain applications. Here’s how.
- Select the “Start” button, then type “firewall“.
- Select the “Windows Defender Firewall” option.
- Choose the “Allow an app or feature through Windows Defender Firewall” option in the left pane.
- Unchecking the box to the left of the application name disallows it from accessing network resources, while checking it allows access. You can also check the boxes to the right of the name labeled “Private” or “Public” to allow and disallow the app on private or public networks respectively.
- If the program you wish to block or unblock is not listed, you can click the “Allow another app…” button to add it. Choose the application in the list and select “Add“. If the program is not in this list, use the “Browse…” button to select the program file manually.
You Might Also Like
Filed Under: Windows Tagged With: Windows 10
Reader Interactions
Comments
Susan Olson says
No…I am definitely not a pro…so a little more explanation would be great…say, what about gallery or settings….?
Susan Olon says
Could you give me an example as to what applications should NOT cross the firewall??
Any application can block any crack microsoft office .. can you help me how to block any crack microsoft on my laptop ..
Richard Jordan says
The firewall is blocking access to open areas of the United Nations website. Even public press releases. How do I uninstall Micrsoft Edge, if that is what is blocking me.
So, what’s the meaning of a checked box and an unchecked box?
I am trying to allow zoom to have access but firewall is blocking it.
I’m trying to block Microsoft family features so it won’t send me the annoying pop-ups about signing in.
I’m on the correct thing but I can’t uncheck the box beside it. If I click the box it does nothing,
Do we have any registry settings for the same.
Thanks, it worked
What if when you click “Allow another app” and then Choose the app in the directory and it gives an error about a possible virus?
Josh Everett says
Is there any way to do this without Administrator rights?
Settings for some pro, doesn’t change!
its somehow locked, as if a registry rule is overriding this windows rules.
Richard S Nye says
I have been trying for hours to Block “Fortnite” from my PC windows 10
Edwin Wetzel says
nothing helps. i’ve been trying to hook up my wifi scanner and i’ve been doing this for hours without any success. i’ve followed all the different procedures on line including going into the defender advanced settings and allowing file and printer sharing rules and still does not work.
What if you cant click the “Allow the app or feature through windows defender firewall”?
Mike Bading says
Mitch,
First, I hope this note finds all well with you and yours.
Second, thank you for your effort here.
Third, my question(s):
What do you do when Windows Defender keeps resetting Microsoft Apps you have unchecked/deselected in Windows 10 Home or Windows 10 Pro?
Example: Let’s say I wish to block Cortana (or any other app). I then follow your instructions here and uncheck/deselect all the boxes pertaining to Cortana and then close the window.
Let’s say, that for whatever reason(s), I return to the window in your example only to find that Windows has reset/unblocked Cortana without notice and without my permission. This would happen all the time in Win10Home; and I would like to know if this would happen in Win10Pro and what to do about it if it does.
Respectfully,
Mike Bading
Did this help? Let us know! Cancel reply
This site uses Akismet to reduce spam. Learn how your comment data is processed.
Primary Sidebar
Recent Posts
Who’s Behind Technipages?
My name is Mitch Bartlett. I’ve been working in technology for over 20 years in a wide range of tech jobs from Tech Support to Software Testing. I started this site as a technical guide for myself and it has grown into what I hope is a useful reference for all.
Follow me on Twitter, or visit my personal blog.
Как заблокировать несколько файлов в Брандмауэре Windows?
Фаервол – это программное обеспечение или аппаратное средство, которое выполняет проверку входящей информации из Интернета или сети, и либо блокирует ее, либо позволяет проходить через компьютер, в зависимости от настроек самого firewall.
Фаервол может помочь пользователям уберечься от нападения хакеров или от вредоносного программного обеспечения, которые могут получить доступ к вашему компьютеру через вашу сеть. Фаервол также может помочь остановить отправку вредоносных файлов с вашего компьютера на другие ПК.
Все вышеописанное также можно отнести и к Брандмауэру Windows. Некоторые приложения требуют для себя подключения к сети время от времени. Однако, у фаервола есть контроль над тем, какие .exe и .dll на вашем компьютере подключать к публичной, личной или доменным сетям.
По умолчанию, все приложения заблокированы Брандмауэром. Если какому-то приложению или программе запрещено связываться с сетью, то Брандмауэр блокирует ей доступ. В список этих программ также могут входить и ваши игры, для работы с которыми вам требуется Интернет-подключение.
Для того чтобы установить нужные вам настройки в Брандмауэре Windows, вы можете:
- Нажать одновременно кнопки Win+R.
- Затем вписать в строку утилиты «Выполнить» запрос firewall.cpl и нажать Enter.
- Выбрать «Разрешение взаимодействия с приложением или компонентом в брандмауэре Windows».
В этом окне вы сможете выдавать разрешения определенным программам или же добавлять новые исполнительные файлы.
Однако, когда вам нужно заблокировать или снять блокировку с более чем одного исполнительного файла на вашем компьютере(или если вы разрабатываете приложение, которому требуется разрешение firewall’а), то вам нужно проделывать достаточно много однообразной работы для этого.
Сейчас мы покажем вам, как блокировать несколько файлов одновременно или даже целые папки в Брандмауэре Windows. Для демонстрационных целей, мы будет показывать этот метод на папке Program Files.
Для начала вы рекомендуем вам сделать резервную копию вашей политики в Брандмауэре Windows, на случай того, если что-то пойдет не так. Для этого сделайте следующее:
- Нажмите комбинацию из Win+R, напишите wf.msc и нажмите Enter для открытия Брандмауэра Windows в режиме повышенной безопасности.
- В самом правом углу окна, нажмите на «Экспортировать политики…» и сохраните их в файл. Если что-то произойдет при выполнении нижеуказанных шагов, то вы сможете использовать этот Wfw-файл для восстановления состояний политик.
Блокировка нескольких .exe-файлов с помощью BAT-файла
Через netsh(скриптовый инструмент, которые позволяет Командной строке изменять настойки сетевого подключения), вы можете использовать силы Командной строки изменить настройки вашего Firewall’а. Так как Брандмауэр контролирует входящие и исходящие соединения, то вы должны отключить их обоих для ваших файлов. Для этого сделайте следующее:
- Откройте Блокнот и копируйте следующие строки в него:
for %%G in (“C:\Program Files (x86)\Test Folder\*.exe”) do (netsh advfirewall firewall add rule name=”Blocked With Batchfile %%G” dir=in action=block program=”%%G” enable=yes profile=anynetsh advfirewall firewall add rule name=”Blocked With Batchfile %%G” dir=out action=block program=”%%G” enable=yes profile=any)
dp0”
color F0
title Exe blocker
echo.
echo. ==============================
echo. == Welcome to .exe blocker ==
echo. ==============================
echo.
Echo Current location: %cd%
echo.
CHOICE /C YN /M “Do you want to search in the current location?”
IF Errorlevel 2 goto END
IF Errorlevel 1 goto Yes
::——————–CHECK and searching files—————–
:Yes
set location=%cd%
cls
echo.
Echo. Searching for .exe files in %location%
echo.
set /a count=0
echo.___________________________________________
echo.Found:
echo.
FOR %%i in (*.exe) do (echo. %%i & set /a count+=1)
echo.___________________________________________
echo.
title Exe blocker %count% Files found
echo. Number of files found with .exe extention: %count%
echo.
echo.
set add2=
CHOICE /C YN /M “Do you want to add aditional information?”
IF Errorlevel 2 goto block
IF Errorlevel 1 goto ADD
::—————–ADD additional info—————
:ADD
Set /p add=Please type the additonal information for the name:
Set add2=%add%
::—————–Add files to firewall————–
:block
cls
title Exe blocker – Blocking Rules
set /a countt=0
echo.
echo.___________________________________________
echo. Inbound Rules
echo.___________________________________________
FOR /r %%B in (*.exe) do (set /a countt+=1 & echo.%countt%. %%
nxB blocking… & netsh advfirewall firewall add rule name=”%add2%%%
nxB” dir=in action=block program=”%%
dpfnxB”)
echo.___________________________________________
echo. OutBound rules
set /a coun=0
echo.___________________________________________
FOR /r %%B in (*.exe) do (set /a coun+=1 & echo.%coun%. %%
nxB blocking… & netsh advfirewall firewall add rule name=”%add2%%%
nxB” dir=out action=block program=”%%
dpfnxB”)
echo.___________________________________________
Echo. Added files to Firewall
echo.
title Exe blocker – Rules Blocked
Pause
::————————END———————
:END
cls
ECHO.
Echo. Thanks for using .exe blocker
Echo.
CHOICE /C YN /T 10 /D n /M “Do you want to open firewall? (10 seconds)”
IF Errorlevel 2 goto EXIT
IF Errorlevel 1 goto OPEN
::——————Open Firewall—————
:OPEN
start “C:\Windows\System32” rundll32.exe shell32.dll,Control_RunDLL firewall.cpl
Goto EXIT
- Чтобы разрешить заблокированные файлы, просто замените значение action=block на значение action=allow.
- Чтобы разрешать или блокировать dll-файлы, найдите в скрипте *.exe и замените ее на *.dll.