arp242 / isbot

Go library to detect HTTP bots.
MIT License
19 stars 5 forks source link

Add Alibaba Cloud to ip ranges #5

Open ForestJohnson opened 10 months ago

ForestJohnson commented 10 months ago

At least this one

https://ipinfo.io/AS45102/47.76.0.0/17

has been crawling, ignoring robots.txt, and using a non-bot user agent header :angry:

ForestJohnson commented 10 months ago

FWIW in my code I put

    if strings.HasPrefix("47.76", caddyLog.Request.GetRemoteIP()) {
        return 16 // 16: alibaba cloud
    }