mirror of
https://github.com/shmilylty/OneForAll.git
synced 2026-08-26 04:47:48 +08:00
fixed #107
This commit is contained in:
+1
-3
@@ -48,7 +48,6 @@ def gen_fake_header():
|
|||||||
Generate fake request headers
|
Generate fake request headers
|
||||||
"""
|
"""
|
||||||
ua = random.choice(user_agents)
|
ua = random.choice(user_agents)
|
||||||
ip = gen_random_ip()
|
|
||||||
headers = {
|
headers = {
|
||||||
'Accept': 'text/html,application/xhtml+xml,'
|
'Accept': 'text/html,application/xhtml+xml,'
|
||||||
'application/xml;q=0.9,*/*;q=0.8',
|
'application/xml;q=0.9,*/*;q=0.8',
|
||||||
@@ -59,8 +58,7 @@ def gen_fake_header():
|
|||||||
'Referer': 'https://www.google.com/',
|
'Referer': 'https://www.google.com/',
|
||||||
'Upgrade-Insecure-Requests': '1',
|
'Upgrade-Insecure-Requests': '1',
|
||||||
'User-Agent': ua,
|
'User-Agent': ua,
|
||||||
'X-Forwarded-For': ip,
|
'X-Forwarded-For': '127.0.0.1'
|
||||||
'X-Real-IP': ip
|
|
||||||
}
|
}
|
||||||
return headers
|
return headers
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user