Skip to content

Commit

Permalink
tweak dynamic url rewriting logic
Browse files Browse the repository at this point in the history
  • Loading branch information
deoxykev committed Dec 2, 2023
1 parent 47def5c commit 59a57f2
Show file tree
Hide file tree
Showing 3 changed files with 309 additions and 291 deletions.
3 changes: 2 additions & 1 deletion handlers/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func NewProxySiteHandler(opts *ProxyOptions) fiber.Handler {
SetRequestModifications(
// rx.SpoofJA3fingerprint(ja3, "Googlebot"),
// rx.MasqueradeAsFacebookBot(),
//rx.MasqueradeAsGoogleBot(),
rx.MasqueradeAsGoogleBot(),
rx.DeleteOutgoingCookies(),
rx.ForwardRequestHeaders(),
//rx.SpoofReferrerFromGoogleSearch(),
Expand All @@ -42,6 +42,7 @@ func NewProxySiteHandler(opts *ProxyOptions) fiber.Handler {
// rx.RequestArchiveIs(),
).
AddResponseModifications(
tx.InjectScriptBeforeDOMContentLoaded(`(() => {let d = document.createElement("div"); d.id = "adb-check"; document.body.append(d) })()`),
tx.ForwardResponseHeaders(),
tx.BypassCORS(),
tx.BypassContentSecurityPolicy(),
Expand Down
Loading

0 comments on commit 59a57f2

Please sign in to comment.