Skip to main content

AI-based VPN & Proxy Detector

Project description

KavachNet

PyPI version Python Versions License

KavachNet is a lightweight, AI-based VPN & Proxy detection tool. It helps identify if an IP address belongs to a known data center, VPN provider, or cloud infrastructure (like Azure, AWS, etc.).

Features

  • Web Interface: A built-in Streamlit dashboard to check IPs visually.
  • Python API: Easy-to-use functions to integrate into your own Python applications.
  • Auto-Updates: Fetches the latest IP ranges from public sources (e.g., Azure Service Tags).
  • Caching: Caches IP lists locally to improve performance and reduce network calls.

Installation

Install the package via pip:

pip install kavachnet

Usage

1. Web Interface (CLI)

To launch the interactive web dashboard:

kavachnet-web

2. Python API

You can use kavachnet directly in your Python scripts to check IP addresses.

from kavachnet import is_vpn_ip, refresh_cache

# Check a single IP
ip_to_check = "8.8.8.8"
result = is_vpn_ip(ip_to_check)

if result:
    print(f"{ip_to_check} is a VPN/Data Center IP!")
else:
    print(f"{ip_to_check} appears to be a residential or unknown IP.")

# Force update the local cache of VPN IP ranges
refresh_cache()

How It Works

KavachNet aggregates public IP ranges from major cloud providers and VPN services. When you check an IP, it verifies if the IP falls within these known subnets.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request on GitHub.

License

This project is licensed under the MIT License.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kavachnet-0.1.1.tar.gz (9.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kavachnet-0.1.1-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

File details

Details for the file kavachnet-0.1.1.tar.gz.

File metadata

  • Download URL: kavachnet-0.1.1.tar.gz
  • Upload date:
  • Size: 9.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for kavachnet-0.1.1.tar.gz
Algorithm Hash digest
SHA256 76a57186809f1c147fc08e8b8357189f29d0ab1a5e2826ed07a10327f6656950
MD5 4a7a709ec47432ebcbd63a0d95c8b236
BLAKE2b-256 e5d69fc66197412b515900717d6df501d514bbdffd163d5e42a1d7dd47e42542

See more details on using hashes here.

File details

Details for the file kavachnet-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: kavachnet-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 9.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for kavachnet-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d317895606d1b271ccc51dc320fc1fce4ae09cf2532b2eb4fba9a6ecf7cec682
MD5 ca80a6a883225bd87e4869c7b51e5c27
BLAKE2b-256 190b3ce95541341611b739198e606c648b145a40e2f0b21a4c79c6b80a52abb7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page