Skip to content

Instantly share code, notes, and snippets.

@phocks
Last active November 28, 2020 07:22
Show Gist options
  • Save phocks/08f9189476aab7409ec6b5038a41edd9 to your computer and use it in GitHub Desktop.
Save phocks/08f9189476aab7409ec6b5038a41edd9 to your computer and use it in GitHub Desktop.
fetch("https://botsentinel.com/blocklist", {
credentials: "include",
headers: {
accept:
"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9",
"accept-language": "en-AU,en;q=0.9,en-US;q=0.8",
"cache-control": "no-cache",
"content-type": "application/x-www-form-urlencoded",
pragma: "no-cache",
"sec-fetch-mode": "navigate",
"sec-fetch-site": "same-origin",
"sec-fetch-user": "?1",
"upgrade-insecure-requests": "1"
},
referrer: "https://botsentinel.com/blocklist",
referrerPolicy: "no-referrer-when-downgrade",
body:
"categories%5B%5D=untrustworthy&categories%5B%5D=trollbot&date_pref=1&daterange=01%2F09%2F2020+-+01%2F15%2F2020&zip=1&access-code=&download=1",
method: "POST",
mode: "cors"
})
.then(res => res.text())
.then(body => console.log(body));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment