add other headers

This commit is contained in:
Damian Bednarczyk
2023-11-30 19:24:50 -06:00
parent 8862b7de8b
commit ba252f5750

View File

@@ -81,7 +81,19 @@ func masqueradeAsTrustedBot(botUA string, botIP string, ja3 string) proxychain.R
return func(chain *proxychain.ProxyChain) error { return func(chain *proxychain.ProxyChain) error {
chain.AddOnceRequestModifications( chain.AddOnceRequestModifications(
SpoofUserAgent(botUA), SpoofUserAgent(botUA),
SetRequestHeader("x-forwarded-for", botIP),
// general / nginx
SetRequestHeader("X-Forwarded-For", botIP),
SetRequestHeader("X-Real-IP", botIP),
// akamai
SetRequestHeader("True-Client-IP", botIP),
// cloudflare
SetRequestHeader("CF-Connecting-IP", botIP),
// weblogic
SetRequestHeader("WL-Proxy-Client-IP", botIP),
// azure
SetRequestHeader("X-Cluster-Client-IP", botIP),
DeleteRequestHeader("referrer"), DeleteRequestHeader("referrer"),
DeleteRequestHeader("origin"), DeleteRequestHeader("origin"),
) )