Block / unblock ips using the Windows Firewall
Tested against Windows 10 / Python 3.11 / Anaconda
pip install blockunblockips
from blockunblockips import unblock_out, unblock_in, block_out, block_in
# Example 1: Unblock outgoing traffic to a specific IP address
ip_to_unblock = "192.168.1.100"
unblock_out(ip_to_unblock)
# This will delete a Windows Firewall rule that allows outgoing traffic to IP 192.168.1.100.
# Example 2: Unblock incoming traffic from a specific IP address
ip_to_unblock = "10.0.0.5"
unblock_in(ip_to_unblock)
# This will delete a Windows Firewall rule that allows incoming traffic from IP 10.0.0.5.
# Example 3: Block outgoing traffic to a specific IP address
ip_to_block = "203.0.113.25"
block_out(ip_to_block)
# This will create a Windows Firewall rule to block outgoing traffic to IP 203.0.113.25.
# Example 4: Block incoming traffic from a specific IP address
ip_to_block = "172.16.0.50"
block_in(ip_to_block)
# This will create a Windows Firewall rule to block incoming traffic from IP 172.16.0.50.
Metadata
Release files for blockunblockips 0.10
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| blockunblockips-0.10.tar.gz | 3.7 kB | Without provenance | Details for blockunblockips-0.10.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| blockunblockips-0.10-py3-none-any.whl | Python 3 | none | any | Details for blockunblockips-0.10-py3-none-any.whl |
Total release size: 8.8 kB
Release files / blockunblockips-0.10.tar.gz
| Download URL | blockunblockips-0.10.tar.gz |
|---|---|
| Size | 3.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c5159ef52fce4bbd5b53e8acb38b1f724a3e42b53bb3a19b6f943e90f1d25f5e
|
|
BLAKE2b-256 checksum How to use checksums |
d7dd7ecf389d038a29d2f1a188ec7e0528b2e1f3a5c4174993b203cb9c3b2797
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.5
|
Release files / blockunblockips-0.10-py3-none-any.whl
| Download URL | blockunblockips-0.10-py3-none-any.whl |
|---|---|
| Size | 5.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3d30bffd4c5d361a6b10fe7d99ae2b40d5297db112bbc3a1436fe7cb8de38045
|
|
BLAKE2b-256 checksum How to use checksums |
aab9ccfffc4513c42dc638cb3a99e3b27c3f36f6e3f857b720c31fae9d2411e8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.5
|
Security for blockunblockips 0.10
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.