Skip to content

Instantly share code, notes, and snippets.

@mul14
Last active October 29, 2024 13:11
Show Gist options
  • Save mul14/eb05e88fcec5bb195cbb to your computer and use it in GitHub Desktop.
Save mul14/eb05e88fcec5bb195cbb to your computer and use it in GitHub Desktop.
/etc/hosts for Vimeo, Reddit, Imgur, GitHub, DigitalOcean, dll

Unblock Steam, Vimeo, Reddit, Imgur, GitHub, DigitalOcean, NPM, PayPal, dll

Saya support Internet Positif untuk memblokir porn, situs judi, dan hal-hal ilegal lainnya. Tapi pemerintah dan ISP sangat konyol karena tidak mengizinkan akses ke Vimeo, Reddit, Imgur, Netflix--yang mana bukanlah situs dengan konten utama ilegal.

Linux / BSD / macOS

Tambahkan list di bawah ke /etc/hosts.

Windows

  1. Buka Command Prompt (atau PowerShell) dengan Administrator. Windows 10 bisa klik kanan tombol Start di kiri bawah, lalu pilih "Command Prompt (Admin)".

  2. Ketik notepad %WinDir%\System32\Drivers\etc\hosts

  3. Tambahkan list di bawah ini ke file hosts

Alternatif

Tools alternatif yang bisa digunakan:

DNS over HTTPS (DoH)

Anda bisa mengaktifkan DoH pada web browser.

Firefox

Settings > Network Settings

firefox-doh
Microsoft Edge

Settings > Privacy, Search, and Services > Security

or just access this URI edge://settings/privacy

edge-doh
Chromium / Google Chrome

Settings > Privacy and Security

or just access this URI chrome://settings/security

chrome-doh
# ---------------------------------------------------
# Vimeo
# ---------------------------------------------------
162.159.138.60 vimeo.com
162.159.138.60 player.vimeo.com
162.159.128.61 developer.vimeo.com
199.232.46.109 f.vimeocdn.com
199.232.46.10 i.vimeocdn.com
199.232.45.194 vimeo-hp-videos.global.ssl.fastly.net
# ---------------------------------------------------
# Reddit
# ---------------------------------------------------
151.101.129.140 i.redditmedia.com
52.34.230.181 www.reddithelp.com
151.101.65.140 g.redditmedia.com
151.101.65.140 a.thumbs.redditmedia.com
151.101.1.140 redditgifts.com
151.101.1.140 i.redd.it
151.101.1.140 old.reddit.com
151.101.1.140 new.reddit.com
151.101.129.140 reddit.com
151.101.129.140 gateway.reddit.com
151.101.129.140 oauth.reddit.com
151.101.129.140 sendbird.reddit.com
151.101.129.140 v.redd.it
151.101.1.140 b.thumbs.redditmedia.com
151.101.1.140 events.reddit.com
54.210.123.98 stats.redditmedia.com
151.101.65.140 www.redditstatic.com
151.101.193.140 www.reddit.com
52.3.23.26 pixel.redditmedia.com
151.101.65.140 www.redditmedia.com
151.101.193.140 about.reddit.com
151.101.1.140 out.reddit.com
107.23.236.34 events.redditmedia.com
151.101.61.140 e.reddit.com
151.101.197.140 s.redditmedia.com
146.75.25.140 gql.reddit.com
151.101.1.140 alb.reddit.com
34.207.103.54 sendbirdproxy-06490ff42851cbcc5.chat.redditmedia.com
52.207.213.188 sendbirdproxy-003d8d1fb8653f6f8.chat.redditmedia.com
34.226.121.89 sendbirdproxy-04ea6c3f71aac3e3f.chat.redditmedia.com
# ---------------------------------------------------
# Imgur
# ---------------------------------------------------
199.232.196.193 imgur.com
146.75.40.193 p.imgur.com
146.75.40.193 s.imgur.com
151.101.24.193 i.imgur.com
146.75.40.193 m.imgur.com
146.75.40.193 i.stack.imgur.com
107.20.18.157 apidocs.imgur.com
146.75.40.193 api.imgur.com
104.16.51.111 help.imgur.com
151.101.24.193 blog.imgur.com
151.101.24.193 store.imgur.com
# ---------------------------------------------------
# GitHub
# ---------------------------------------------------
20.205.243.166 github.com
192.0.66.2 github.blog
20.205.243.168 api.github.com
185.199.108.154 docs.github.com
20.205.243.166 gist.github.com
20.205.243.166 shop.github.com
185.199.109.153 githubstatus.com
185.199.111.153 guides.github.com
185.199.111.153 githubuniverse.com
13.250.177.223 support.github.com
185.199.111.153 services.github.com
3.221.128.67 collector.githubapp.com
185.199.109.154 github.githubassets.com
185.199.110.133 raw.githubusercontent.com
185.199.111.153 spotlights-feed.github.com
185.199.110.133 avatars.githubusercontent.com
185.199.109.154 github-releases.githubusercontent.com
185.199.111.133 repository-images.githubusercontent.com
# ---------------------------------------------------
# DigitalOcean
# ---------------------------------------------------
104.16.182.15 digitalocean.com
104.16.182.15 www.digitalocean.com
104.16.181.15 push.digitalocean.com
104.16.182.15 docs.digitalocean.com
104.16.181.15 cloud.digitalocean.com
104.16.181.15 store.digitalocean.com
104.16.182.15 status.digitalocean.com
104.16.182.15 developers.digitalocean.com
104.16.181.15 marketplace.digitalocean.com
199.232.44.233 assets.digitalocean.com
162.159.130.11 investors.digitalocean.com
# ---------------------------------------------------
# NPM
# ---------------------------------------------------
104.16.93.83 npmjs.com
104.16.27.35 npmjs.org
104.16.93.83 www.npmjs.com
185.199.108.153 npm.community
185.199.109.153 blog.npmjs.org
185.199.109.153 docs.npmjs.com
13.236.8.150 status.npmjs.org
104.16.25.35 registry.npmjs.org
# ---------------------------------------------------
# Steam
# ---------------------------------------------------
23.198.119.108 steamcommunity.com
23.198.119.108 www.valvesoftware.com
23.198.119.108 help.steampowered.com
23.198.119.108 partner.steamgames.com
23.46.197.62 store.steampowered.com
# ---------------------------------------------------
# PayPal
# ---------------------------------------------------
64.4.250.36 paypal.com
151.101.65.35 t.paypal.com
173.0.93.224 developer.paypal.com
192.229.232.89 www.paypalobjects.com
138.197.13.75 publicpolicy.paypal-corp.com
2606:4700:7::a29f:810b about.pypl.com
2606:4700:7::a29f:820b investor.paypal-corp.com
2606:4700::6811:1daa newsroom.paypal-corp.com
# ---------------------------------------------------
# Epic Games
# ---------------------------------------------------
104.18.5.159 store.epicgames.com
# ---------------------------------------------------
# Miscellaneous
# ---------------------------------------------------
104.27.207.92 subscene.com
@syuhendar729
Copy link

image
Pada tanggal sekarang ini sepertinya sudah tidak bisa. Saya sudah melakukan restart service NetworkManager dan juga reboot. Saya menggunakan By.U sebagai ISP dan Artix Linux sebagai sistem operasinya.

@sudiarth
Copy link

coba pake ini gan https://1.1.1.1/

@reydylanza-dev
Copy link

Kebanyakan ISP sekarang menerapkan DPI, atau Deep Packet Inspection, Anda dapat membacanya disini https://github.com/bebasid/bebasdns/blob/main/dev/readme/learnmore.md#apa-itu-dpi

Lalu gimana cara menembusnya, gampang. Tinggal install aplikasi ini https://github.com/ValdikSS/GoodbyeDPI atau https://github.com/krlvm/PowerTunnel

@haninggrk
Copy link

Puyeng udah sebulan gak bisa akses steamcommunity.com (khusus communitynya aja, bukan steamnya) karena SSL certificate di mac OS. Ampe ngulik keychain dll. Ternyata gara-gara hostfile ini. Sepertinya IP utk steamcommunity udah kadaluarsa.

@mul14
Copy link
Author

mul14 commented Oct 13, 2023

Puyeng udah sebulan gak bisa akses steamcommunity.com (khusus communitynya aja, bukan steamnya) karena SSL certificate di mac OS. Ampe ngulik keychain dll. Ternyata gara-gara hostfile ini. Sepertinya IP utk steamcommunity udah kadaluarsa.

Updated.

@lidgnulinux
Copy link

Halo, apakah ini masih berfungsi (khususnya untuk membuka reddit) ? Terima kasih.

@mul14
Copy link
Author

mul14 commented Oct 25, 2023

@lidgnulinux as you can see.

CleanShot.2023-10-25.at.10.32.36.mp4

@benyaminl
Copy link

benyaminl commented Dec 10, 2023

@mul14 I think you need to add those as well for reddit

34.227.43.171     gql-realtime.reddit.com
34.232.83.114     gql-realtime.reddit.com
52.1.131.78         gql-realtime.reddit.com

as telkom start working tirelessly blocking everything...

This is used for accessing the image, uploading, and voting in polls.... I got internetpositif.id *checked using uBo

Even DoH are poisoned now...

https://dns.google/resolve?name=gql-realtime.reddit.com&type=A
https://dnschecker.org/#A/gql-realtime.reddit.com

@mzakyr42
Copy link

thx, 4chan?

@iisbetoq
Copy link

iisbetoq commented Jan 9, 2024

bisa juga langsung di chrome nya, Privacy and security > Security > Use secure DNS
test 1 1, di saya work pakai CF 1.1.1.1

@ihsansfd
Copy link

niceeeeeeee gan gk perlu toggle vpn lg bwt akses reddit

@Pugcoding
Copy link

can someone please do this for crunchyroll?

@mazc0de
Copy link

mazc0de commented Mar 29, 2024

cara dapet ip address sama host nya gmna ya?

@hilmeeen
Copy link

konfigurasi /etc/hosts di atas saat ini malah bikin tidak bisa akses steam atau reddit sama sekali.
sepertinya benar karena ISP sekarang sudah blokir pakai DPI

@flixwito
Copy link

konfigurasi /etc/hosts di atas saat ini malah bikin tidak bisa akses steam atau reddit sama sekali. sepertinya benar karena ISP sekarang sudah blokir pakai DPI

Emang sejak kapan Steam diblokir bang? 😂

@benyaminl
Copy link

@hilmeeen it shouldn't, but it also depends on your location, because I use multiple ISP (FM, TSEL/Telkom/Indihome, and small ISP - GlobalExtreme), and most of them still working as it's.

If you are familiar with nextdns and Firefox, then use them, it always works no matter where it's. I only encounter problem in China where nexdns is blocked, other than that, even with DPI (weaks one like Indonesia have), always gone through...

You can also use DNS Resolver only via VPN, as the Reddit IP is fastly cdn. If they block the whole request to IP, it's suicide, but if they use DPI, it should still broke the SSL protocol and cause the request to be broken before reach fastly cdn...

@Not-A-Normal-Robot
Copy link

Hmm since they recently blocked DuckDuckGo, it should be added to the list.

I used some online sources to make my hosts list for DDG:

52.250.42.157 duckduckgo.com
13.74.111.192 enterpriseenrollment.duckduckgo.com
40.126.32.66 enterpriseregistration.duckduckgo.com
40.88.50.215 jenkins.duckduckgo.com
52.142.124.215 settings.duckduckgo.com
52.142.124.215 about.duckduckgo.com
20.81.5.168 chat.duckduckgo.com
52.142.124.215 shop.duckduckgo.com
52.142.124.215 facebook.duckduckgo.com
52.142.124.215 feedback.duckduckgo.com
52.142.124.215 r.duckduckgo.com
40.88.50.215 dave.duckduckgo.com
40.88.50.215 staging.duckduckgo.com
20.223.54.233 links.duckduckgo.com
52.142.124.215 wiki.duckduckgo.com
52.142.124.215 start.duckduckgo.com
52.142.124.215 api.duckduckgo.com
52.142.124.215 store.duckduckgo.com
52.142.124.215 www.duckduckgo.com
40.88.50.215 isa.duckduckgo.com
20.120.41.107 mailer.duckduckgo.com
52.142.124.215 support.duckduckgo.com
40.88.50.215 go.duckduckgo.com
52.142.124.215 press.duckduckgo.com
52.98.228.24 autodiscover.duckduckgo.com
52.142.124.215 help.duckduckgo.com
52.142.125.222 proxy.duckduckgo.com
40.88.50.215 monitor.duckduckgo.com
52.142.124.215 beta.duckduckgo.com
52.142.124.215 blog.duckduckgo.com
52.142.124.215 html.duckduckgo.com
52.142.124.215 redirect.duckduckgo.com
52.142.124.215 i.duckduckgo.com
52.142.125.222 icons.duckduckgo.com
52.142.124.215 reports.duckduckgo.com
52.146.152.248 email.duckduckgo.com
52.142.124.215 images.duckduckgo.com
52.142.124.215 news.duckduckgo.com
40.88.50.215 tim.duckduckgo.com
52.149.247.60 sync.duckduckgo.com
52.250.42.157 lite.duckduckgo.com

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment