检测域名被墙污染

被墙检测

# coding: utf8

import requests
import random

url = "https://www.boce.com/check"

payload='host=domain.com&type=wall'

# proxies_list = {
#   "http": "http://47.108.80.x:8878",
#   "https": "http://47.108.80.x:8878",
# }

from fake_useragent import UserAgent



proxies_list = [
	"http://47.108.80.x:8878",
	'http://47.104.190.x:8878',
	'http://47.104.177.x:8878',
	'http://39.104.160.x:8878',
	'http://39.104.168.x:8878',
	'http://120.79.135.x:8878',
	'http://120.79.11.x:8878',
	'http://47.108.80.x:8878',
	'http://47.108.52.x:8878',
]

proxy_ip = random.choice(proxies_list)

proxies = { 'http': proxy_ip, 'https': proxy_ip }

headers = {
  'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',
  'User-Agent': UserAgent().random,
  # 'origin': 'https://www.boce.com'
}

response = requests.request("POST", url, headers=headers, data=payload, proxies=proxies, timeout=60)

# print(response.text)
import json

print(json.loads(response.text))

污染检测

只需要修改上面代码 type=wall => type=pollute

Last updated