0

What are some reasonable approaches in client-side JS to detect whether a given URL is blocked for the user on whose browser the code is running? Is there a lib or other project that does this for some types of blocks?

In Russia, for example, https://linkedin.com redirects to http://denypage.ru/ due to being on the government's blacklist. But other governments:
- simply throttle, which is harder to detect
- block the URLs used by messenger apps
- force platforms to block specific accounts
...

See also: Tor's OONI project, Twitter's policy on so-called Country Withheld Content™, TurkeyBlocks.org's methodology

Adam Bittlingmayer
  • 1,169
  • 9
  • 22
  • 1
    You typically can't detect *why* something is unavailable, only that it is. A government firewall set to deny traffic will look much like a local firewall and even a firewall dropping traffic might look like an unstable connection. – ssube Nov 29 '16 at 19:18
  • Sure, isn't expected to be perfect, just to catch the obvious cases and, in aggregate, a few more. – Adam Bittlingmayer Nov 29 '16 at 20:30

0 Answers0