complexorganizations / content-blocker

✔️ Content Blocker is a robust web filtering project aimed at enhancing online privacy and security.
Other
16 stars 1 forks source link

Block more domains #63

Closed ghost closed 3 years ago

ghost commented 3 years ago
package main

import (
    "fmt"
    "github.com/bobesa/go-domain-util/domainutil"
)

func main() {
    fmt.Println(domainutil.HasSubdomain("node-p2e-hio4ox.sitescout.com"))
    fmt.Println(domainutil.Domain("node-p2e-hio4ox.sitescout.com"))
}