Skip to content

bebiksior/httpglobe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HTTPGlobe

This tool sends HTTP requests to a list of URLs through BrightData proxies in different geographical locations. This helps discover web servers that restrict access based on geographic location. The tool only supports Brightdata proxies and their geolocation targeting feature.

CleanShot 2025-02-18 at 13 03 13

Installation

go install github.com/bebiksior/httpglobe@latest

Configuration

The default configuration is located in $HOME/.config/httpglobe/config.json. It will be created on the first run.

Default Configuration

{
  "countries": ["cn", "in", "us", "jp", "de"],
  "proxy": {
    "host": "example.com",
    "port": "12345",
    "username": "username",
    "password": "password"
  }
}

The tool will automatically append the country code to the username in the format -country-XX for each request.

Where to obtain Brightdata proxy credentials

  1. Buy Brightdata proxies zone at https://brightdata.com

CleanShot 2025-02-18 at 13 20 36

  1. Go to https://brightdata.com/cp/zones and click on your proxies zone
  2. Copy/paste proxy credentials to the config file

CleanShot 2025-02-18 at 13 17 21

Usage

Basic scan with default settings:

cat urls.txt | httpglobe

High-concurrency scan:

cat urls.txt | httpglobe -concurrency 20 -output results.json

Output

The tool creates a single JSON file containing:

{
  "results": [
    {
      "url": "example.com",
      "responses": [
        {
          "status_code": 200,
          "content_length": 800,
          "title": "Example Domain",
          "country": "us",
          "error": ""
        },
        {
          "status_code": 403,
          "title": "Access Denied",
          "content_length": 150,
          "country": "cn",
          "error": ""
        }
      ],
      "has_differences": true
    }
  ]
}

About

Test web servers across the globe using BrightData proxies to detect geo based restrictions

Resources

License

Stars

Watchers

Forks

Packages

No packages published