Skip to content

RedStoneCraftGG/Montelli-AntiProxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Montelli-AntiProxy

A simple tool to detect proxies based on IP Address. Suitable for use in Dragonfly-MC to prevent proxy usage (not quite...)

Usage

package main

import (
	"fmt"

	"github.com/redstonecraftgg/montelli-antiproxy"
)

func main() {
	ips := []string{
		"127.0.0.1",     // localhost
		"192.168.1.100", // private
		"8.8.8.8",       // public
	}

	for _, ip := range ips {
		allowed, reason := montelli.CheckIP(ip)
		if !allowed {
			fmt.Println(ip, "Not Allowed:", reason)
		} else {
			fmt.Println(ip, "Allowed")
		}
	}
}

Note: Localhost checking is disabled by default. Enable it manually in the config.

Additional Note: Yes, I'm playing WuWa and I use the Montelli name just for fun.

About

A simple tool to detect proxies based on IP Address

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages