Skip to content

Instantly share code, notes, and snippets.

@phocks
Last active November 28, 2020 07:22
Show Gist options
  • Select an option

  • Save phocks/08f9189476aab7409ec6b5038a41edd9 to your computer and use it in GitHub Desktop.

Select an option

Save phocks/08f9189476aab7409ec6b5038a41edd9 to your computer and use it in GitHub Desktop.

Revisions

  1. phocks revised this gist Jan 15, 2020. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion botsentinel.js
    Original file line number Diff line number Diff line change
    @@ -18,4 +18,6 @@ fetch("https://botsentinel.com/blocklist", {
    "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));
  2. phocks created this gist Jan 15, 2020.
    21 changes: 21 additions & 0 deletions botsentinel.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,21 @@
    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"
    });