# ProcNetBlocker - Process Network Blocker

**Version: 1.0**  
**Author: AutoClose.net**  
**Copyright: © AutoClose.net**  
**Website: https://autoclose.net/procnetblocker.html**

Process Network Blocker is a Windows command-line tool developed for controlling network access permissions via Process ID (PID) or Execute Name (EXE).

## Features

- ✅ **Block Network Access** - Block network access for specific PID processes / EXE
- ✅ **Unblock Network Access** - Restore network permissions for specific PID processes /EXE
- ✅ **Status Check** - View network connection status for processes / EXE
- ✅ **Standalone EXE** - A portable EXE file
- ✅ **Admin Privilege Detection** - Automatically detects and prompts for administrator privileges

## System Requirements

- Windows 7/8/10/11
- 64-bit operating system (recommended)
- Administrator privileges (required for some operations)
- Firewall service is running (optional)

## Usage

# Block network access for process 1234
procnetblocker.exe --block 1234

# Unblock network access for process 1234
procnetblocker.exe --unblock 1234

# Check network status for process 1234
procnetblocker.exe --status 1234

# Block network access for the program Browser.exe
procnetblocker.exe --block "D:\NewBrowser\Browser.exe" --exe

# Unblock network access for process 1234
procnetblocker.exe --unblock "D:\NewBrowser\Browser.exe" --exe

# Check network status for the program Browser.exe
procnetblocker.exe --status "D:\NewBrowser\Browser.exe" --exe

# Show help information
procnetblocker.exe --help


#Please Note: When you want to block EXE programs, make sure you have input the full path of the EXE file.

## FAQ

### Q: Program prompts "Administrator privileges required"?
A: Right-click the CMD and select "Run as administrator"

### Q: Blocking function not working?
A: Check if the process exists, confirm the program is running with administrator privileges

### Q: How to get process PID?
A: Use Task Manager (Ctrl+Shift+Esc) or `tasklist` command to view process PIDs

## License

Check the license.txt file.