mirror of
https://github.com/lord-alfred/ipranges.git
synced 2026-09-07 02:24:33 +00:00
Add bingbot
This commit is contained in:
3
.github/workflows/update.yml
vendored
3
.github/workflows/update.yml
vendored
@@ -17,6 +17,7 @@ jobs:
|
|||||||
bash microsoft/downloader.sh
|
bash microsoft/downloader.sh
|
||||||
bash oracle/downloader.sh
|
bash oracle/downloader.sh
|
||||||
bash digitalocean/downloader.sh
|
bash digitalocean/downloader.sh
|
||||||
|
bash bing/downloader.sh
|
||||||
|
|
||||||
- name: Set up Python 3.7
|
- name: Set up Python 3.7
|
||||||
uses: actions/setup-python@v2
|
uses: actions/setup-python@v2
|
||||||
@@ -45,12 +46,14 @@ jobs:
|
|||||||
python utils/merge.py --source=microsoft/ipv4.txt | sort -h > microsoft/ipv4_merged.txt
|
python utils/merge.py --source=microsoft/ipv4.txt | sort -h > microsoft/ipv4_merged.txt
|
||||||
python utils/merge.py --source=oracle/ipv4.txt | sort -h > oracle/ipv4_merged.txt
|
python utils/merge.py --source=oracle/ipv4.txt | sort -h > oracle/ipv4_merged.txt
|
||||||
python utils/merge.py --source=digitalocean/ipv4.txt | sort -h > digitalocean/ipv4_merged.txt
|
python utils/merge.py --source=digitalocean/ipv4.txt | sort -h > digitalocean/ipv4_merged.txt
|
||||||
|
python utils/merge.py --source=bing/ipv4.txt | sort -h > bing/ipv4_merged.txt
|
||||||
# ipv6
|
# ipv6
|
||||||
python utils/merge.py --source=google/ipv6.txt | sort -h > google/ipv6_merged.txt
|
python utils/merge.py --source=google/ipv6.txt | sort -h > google/ipv6_merged.txt
|
||||||
python utils/merge.py --source=amazon/ipv6.txt | sort -h > amazon/ipv6_merged.txt
|
python utils/merge.py --source=amazon/ipv6.txt | sort -h > amazon/ipv6_merged.txt
|
||||||
python utils/merge.py --source=microsoft/ipv6.txt | sort -h > microsoft/ipv6_merged.txt
|
python utils/merge.py --source=microsoft/ipv6.txt | sort -h > microsoft/ipv6_merged.txt
|
||||||
# oracle not provide ipv6
|
# oracle not provide ipv6
|
||||||
python utils/merge.py --source=digitalocean/ipv6.txt | sort -h > digitalocean/ipv6_merged.txt
|
python utils/merge.py --source=digitalocean/ipv6.txt | sort -h > digitalocean/ipv6_merged.txt
|
||||||
|
# bing not provide ipv6
|
||||||
|
|
||||||
- name: Commit files
|
- name: Commit files
|
||||||
env:
|
env:
|
||||||
|
|||||||
@@ -21,6 +21,11 @@ All addresses are stored in `.txt` files with CIDRs, where each range is on a ne
|
|||||||
- IPv6: https://raw.githubusercontent.com/lord-alfred/ipranges/main/google/ipv6.txt
|
- IPv6: https://raw.githubusercontent.com/lord-alfred/ipranges/main/google/ipv6.txt
|
||||||
- IPv6 (merged): https://raw.githubusercontent.com/lord-alfred/ipranges/main/google/ipv6_merged.txt
|
- IPv6 (merged): https://raw.githubusercontent.com/lord-alfred/ipranges/main/google/ipv6_merged.txt
|
||||||
|
|
||||||
|
### Bing (Bingbot)
|
||||||
|
|
||||||
|
- IPv4: https://raw.githubusercontent.com/lord-alfred/ipranges/main/bing/ipv4.txt
|
||||||
|
- IPv4 (merged): https://raw.githubusercontent.com/lord-alfred/ipranges/main/bing/ipv4_merged.txt
|
||||||
|
|
||||||
### Amazon (AWS)
|
### Amazon (AWS)
|
||||||
|
|
||||||
- IPv4: https://raw.githubusercontent.com/lord-alfred/ipranges/main/amazon/ipv4.txt
|
- IPv4: https://raw.githubusercontent.com/lord-alfred/ipranges/main/amazon/ipv4.txt
|
||||||
|
|||||||
20
bing/downloader.sh
Normal file
20
bing/downloader.sh
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# https://www.bing.com/webmasters/help/verify-bingbot-2195837f
|
||||||
|
|
||||||
|
set -euo pipefail
|
||||||
|
set -x
|
||||||
|
|
||||||
|
|
||||||
|
# get from public ranges
|
||||||
|
curl -s https://www.bing.com/toolbox/bingbot.json > /tmp/bing.json
|
||||||
|
|
||||||
|
|
||||||
|
# save ipv4
|
||||||
|
jq '.prefixes[] | [.ipv4Prefix][] | select(. != null)' -r /tmp/bing.json > /tmp/bing-ipv4.txt
|
||||||
|
|
||||||
|
# ipv6 not provided
|
||||||
|
|
||||||
|
|
||||||
|
# sort & uniq
|
||||||
|
sort -h /tmp/bing-ipv4.txt | uniq > bing/ipv4.txt
|
||||||
Reference in New Issue
Block a user