News for hackers. Stuff that matters.

Ask HN: Easy Workaround for Wikipedia Censorship in Turkey

Wikipedia (in any language) is banned in Turkey, which is very annoying.

A working solution (many thanks to whoever did it!) is the so called "wikizero", where you add a "0" to each wikipedia link (just before the word "wikipedia"):

So the original: * https://en.wikipedia.org/wiki/Censorship_in_Turkey becomes * https://en.0wikipedia.org/wiki/Censorship_in_Turkey

Now, is it possible to make this hack working automatically on my browser? I mean, without having to add the "0" manually on each link?

( 16 comments | 10 points | on HN )
Re:Ask HN: Easy Workaround for Wikipedia Censorship in Turkey by hazebooth on Saturday October 05, 2019 @01:24AM (#21163975)
Re:Ask HN: Easy Workaround for Wikipedia Censorship in Turkey by oriettaxx on Saturday October 05, 2019 @09:54AM (#21165490)
that would be great, but it's apparently impossible, as explained in our link, isn't it ?
Re:Ask HN: Easy Workaround for Wikipedia Censorship in Turkey by oriettaxx on Saturday October 05, 2019 @10:14AM (#21165601)
Since you are here: this app https://ooni.torproject.org/post/ooni-mobile-app/ is pretty good! and is a good test to know how the country you live in is dealing with censorship (it detects 'middleboxes' in your network, too).

Note that the app data is used as evidence of any censorship events that you come across, so data is collected and published (this is the main aim of this app)

Re:Ask HN: Easy Workaround for Wikipedia Censorship in Turkey by lovelearning on Saturday October 05, 2019 @09:28AM (#21165371)
Install this "Redirector" add-on for your respective browser.

Then create a new redirect:

EDIT: Sorry, I got the include and redirect reversed. You need to redirect censored domain to uncensored domain.

Include Pattern:

  *.wikipedia.org/*
Redirect to: $1.0wikipedia.org/$2

Pattern type: wildcard

Example URL is just for testing. Use any 0wikipedia URL.

I use this too, but for distraction avoidance. Any addictive website is redirected to my todo page :)

[1]: https://einaregilsson.com/redirector/

Re:Ask HN: Easy Workaround for Wikipedia Censorship in Turkey by oriettaxx on Saturday October 05, 2019 @10:08AM (#21165563)
Zuuuper!!! It works!

Unfortunately, the 'wikizero' solution works only with en.wikipedia.org, so I hadded

Redirect: en.wikipedia.org/

to: $1en.0wikipedia.org/$2

Pattern type: wildcard

Example: en.wikipedia.org/* → en.0wikipedia.org/*

There should be a solution for other wikipedia languages, but I cannot find it

Re:Ask HN: Easy Workaround for Wikipedia Censorship in Turkey by oriettaxx on Friday October 11, 2019 @06:58PM (#21229221)
News: as written in https://www.wikizeroo.org/index.php?q=aHR0cHM6Ly9lbi53aWtpcG...

"Due to legal reasons, the domain name 0wikipedia.org will be closed. We will continue with new alternative domain names.

00wikipedia.org / 1wikipedia.org / 2wikipedia.org / Zwikipedia.org

Example; https://tr.1wikipedia.org/wiki/Türkiye

Re:Ask HN: Easy Workaround for Wikipedia Censorship in Turkey by erkanerol on Saturday October 05, 2019 @07:45AM (#21164993)
I am using wikiwand: https://www.wikiwand.com/
Re:Ask HN: Easy Workaround for Wikipedia Censorship in Turkey by amagasaki on Saturday October 05, 2019 @04:58AM (#21164485)
I didn't look at the source code, but there seems to be a Chrome extension that does this. https://chrome.google.com/webstore/detail/wikizero/ailedophm...
Re:Ask HN: Easy Workaround for Wikipedia Censorship in Turkey by oriettaxx on Saturday October 05, 2019 @10:08AM (#21165566)
BTW: Apparently it works also with "1" and "2" and not just "0"
Re:Ask HN: Easy Workaround for Wikipedia Censorship in Turkey by ravenstine on Saturday October 05, 2019 @03:09AM (#21164205)
You can change your hosts file so that 0wikipedia.org points to the same IP as Wikipedia.org.
Re:Ask HN: Easy Workaround for Wikipedia Censorship in Turkey by oriettaxx on Saturday October 05, 2019 @09:55AM (#21165494)
? are you sure?
Re:Ask HN: Easy Workaround for Wikipedia Censorship in Turkey by jolmg on Saturday October 05, 2019 @11:48AM (#21166169)
I think they meant it backwards. Have the hosts file so that wikipedia.org points to the same IP as 0wikipedia.org.
Re:Ask HN: Easy Workaround for Wikipedia Censorship in Turkey by ravenstine on Saturday October 05, 2019 @03:47PM (#21167513)
Yeah, whoops.
Re:Ask HN: Easy Workaround for Wikipedia Censorship in Turkey by detaro on Saturday October 05, 2019 @04:21PM (#21167699)
0wikipedia's servers are set up to accept requests for wikipedia.org?
Re:Ask HN: Easy Workaround for Wikipedia Censorship in Turkey by oriettaxx on Saturday October 05, 2019 @07:47PM (#21168755)
no, and not even 1wikipedia

so, this solution does not work at all

I tried with both:

209.126.98.138 en.wikipedia.org

62.138.14.112 en.wikipedia.org

Re:Ask HN: Easy Workaround for Wikipedia Censorship in Turkey by turnkeyreverse on Saturday October 05, 2019 @03:04AM (#21164191)
Hm interesting. There are a few options: 1) a browser extension that automagically replaces all wikipedia urls with 0wikipedia 2) a local http proxy for all requests where wikipedia is redirected to 0wikipedia 3) a local http server and a local record for wikipedia localhost and a permanent redirect to 0wikipedia