blockunblockips


Nameblockunblockips JSON
Version 0.10 PyPI version JSON
download
home_pagehttps://github.com/hansalemaos/blockunblockips
SummaryBlock / unblock ips using the Windows Firewall
upload_time2023-09-14 14:04:15
maintainer
docs_urlNone
authorJohannes Fischer
requires_python
licenseMIT
keywords block unblock ips firewall
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            
# Block / unblock ips using the Windows Firewall 

## Tested against Windows 10 / Python 3.11 / Anaconda

### pip install blockunblockips


```python
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.

```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/hansalemaos/blockunblockips",
    "name": "blockunblockips",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "block,unblock,ips,firewall",
    "author": "Johannes Fischer",
    "author_email": "aulasparticularesdealemaosp@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/d7/dd/7ecf389d038a29d2f1a188ec7e0528b2e1f3a5c4174993b203cb9c3b2797/blockunblockips-0.10.tar.gz",
    "platform": null,
    "description": "\r\n# Block / unblock ips using the Windows Firewall \r\n\r\n## Tested against Windows 10 / Python 3.11 / Anaconda\r\n\r\n### pip install blockunblockips\r\n\r\n\r\n```python\r\nfrom blockunblockips import unblock_out, unblock_in, block_out, block_in\r\n\r\n# Example 1: Unblock outgoing traffic to a specific IP address\r\nip_to_unblock = \"192.168.1.100\"\r\nunblock_out(ip_to_unblock)\r\n# This will delete a Windows Firewall rule that allows outgoing traffic to IP 192.168.1.100.\r\n\r\n# Example 2: Unblock incoming traffic from a specific IP address\r\nip_to_unblock = \"10.0.0.5\"\r\nunblock_in(ip_to_unblock)\r\n# This will delete a Windows Firewall rule that allows incoming traffic from IP 10.0.0.5.\r\n\r\n# Example 3: Block outgoing traffic to a specific IP address\r\nip_to_block = \"203.0.113.25\"\r\nblock_out(ip_to_block)\r\n# This will create a Windows Firewall rule to block outgoing traffic to IP 203.0.113.25.\r\n\r\n# Example 4: Block incoming traffic from a specific IP address\r\nip_to_block = \"172.16.0.50\"\r\nblock_in(ip_to_block)\r\n# This will create a Windows Firewall rule to block incoming traffic from IP 172.16.0.50.\r\n\r\n```\r\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Block / unblock ips using the Windows Firewall",
    "version": "0.10",
    "project_urls": {
        "Homepage": "https://github.com/hansalemaos/blockunblockips"
    },
    "split_keywords": [
        "block",
        "unblock",
        "ips",
        "firewall"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "aab9ccfffc4513c42dc638cb3a99e3b27c3f36f6e3f857b720c31fae9d2411e8",
                "md5": "01c73f457822a8499acbd7b882866ce0",
                "sha256": "3d30bffd4c5d361a6b10fe7d99ae2b40d5297db112bbc3a1436fe7cb8de38045"
            },
            "downloads": -1,
            "filename": "blockunblockips-0.10-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "01c73f457822a8499acbd7b882866ce0",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 5109,
            "upload_time": "2023-09-14T14:04:13",
            "upload_time_iso_8601": "2023-09-14T14:04:13.881472Z",
            "url": "https://files.pythonhosted.org/packages/aa/b9/ccfffc4513c42dc638cb3a99e3b27c3f36f6e3f857b720c31fae9d2411e8/blockunblockips-0.10-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d7dd7ecf389d038a29d2f1a188ec7e0528b2e1f3a5c4174993b203cb9c3b2797",
                "md5": "8598e6d2b19a962784ea3aac7b3e59bc",
                "sha256": "c5159ef52fce4bbd5b53e8acb38b1f724a3e42b53bb3a19b6f943e90f1d25f5e"
            },
            "downloads": -1,
            "filename": "blockunblockips-0.10.tar.gz",
            "has_sig": false,
            "md5_digest": "8598e6d2b19a962784ea3aac7b3e59bc",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 3735,
            "upload_time": "2023-09-14T14:04:15",
            "upload_time_iso_8601": "2023-09-14T14:04:15.337208Z",
            "url": "https://files.pythonhosted.org/packages/d7/dd/7ecf389d038a29d2f1a188ec7e0528b2e1f3a5c4174993b203cb9c3b2797/blockunblockips-0.10.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-09-14 14:04:15",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "hansalemaos",
    "github_project": "blockunblockips",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [],
    "lcname": "blockunblockips"
}
        
Elapsed time: 0.15492s