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
@PanjiNamjaElf
Copy link

Update for 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
54.84.177.104     alb.reddit.com
151.101.197.140   s.redditmedia.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

@geofany
Copy link

geofany commented Sep 1, 2021

minta tolong om sekalian buat
~zoom
~pinterest
~instagram
~shopee
~blogspot
~twitter

pake by.u sering di blok juga soalnya, mau buat zoom harus pake vpn
terima kasih

Itu bukan di blok om. Emang by.u nya aja yang bermasalah
Coba airplane mode di on terus di off.
Pasti langsung bisa
Harus sering sering airplane mode.

Emang ampas sih by.u. saya juga pakek soalnya

@aerminerall
Copy link

kalo mau block di mac gimana ya pake shell script ? kalo satu satu input repot juga

@mul14
Copy link
Author

mul14 commented Sep 8, 2021

@adhimarinoen block gimana maksudnya? 🤔
Apa maksudnya edit /etc/hosts pakai vim dan kesulitan paste?

@aerminerall
Copy link

@mul14 iya kang pas edit /etc/hosts nya.

jadi saya mau lewat sh script buat nambah url di etc/hosts. jadi ketika ada user mac lain yg harus block url, saya cukup jalanin sh script aja

@mul14
Copy link
Author

mul14 commented Sep 9, 2021

@adhimarinoen bisa, jalankan ini di terminal:

sudo sh -c "curl -s https://gist.githubusercontent.com/mul14/eb05e88fcec5bb195cbb/raw/hosts >> /etc/hosts"

@FoxieFlakey
Copy link

FoxieFlakey commented Sep 12, 2021

wah banyak amat comment nya

dan setuju kalau ISP sama pemerintah konyol salah mereka lah masuk ke komunitas reddit yang toxic (jarang komunitas yang toxic)

Copy link

ghost commented Sep 12, 2021

Buatin untuk redgif.com dong, di reddit yg lain udah bisa. cuma redgif aja yg nggak

@Hindsightgenius
Copy link

For getting the time stamp (used to load more when scrolling)

146.75.25.140 gql.reddit.com

@mul14
Copy link
Author

mul14 commented Sep 16, 2021

Thanks @Hindsightgenius, I just added gql.reddit.com and alb.reddit.com to the list.

@Hindsightgenius
Copy link

Hindsightgenius commented Sep 18, 2021

looks like you have two for alb.reddit.com

The correct one is 151.101.1.140

@mul14
Copy link
Author

mul14 commented Sep 19, 2021

Thanks, just removed the incorrect address.

@mul14
Copy link
Author

mul14 commented Sep 30, 2021

I just add how to enable DoH (DNS over HTTPS) on web browsers.

@Hindsightgenius
Copy link

Hindsightgenius commented Oct 7, 2021

199.232.37.140 strapi.reddit.com

@mul14
Copy link
Author

mul14 commented Oct 17, 2021

I just add DigitalOcean. Enjoy...

@Hindsightgenius
Copy link

199.232.169.140 s.reddit.com (used in reddit messages)

@bambang-ap
Copy link

akses ke websocket stream.binance.com ke block nih, soalnya pas jalanin pake vpn bisa

@marioopoll
Copy link

Hosts untuk akses ke google drive gan, pc di blokir dari kantor.

@MakanNasiGoreng123
Copy link

bang gw pake by.U udh tarok host ip addressnya sama pake 1.1.1.1 DNS cloudflare masih gk bisa akses reddit, 5 bulan yang lalu bisa tapi barusan berapa minggu yang lalu gk bisa masuk ke reddit dan lain2

respons ya makasih 🙏🙏🙏

@RioChndr
Copy link

Github IP 20.205.243.166 tidak bisa diakses

ping github.com

Pinging github.com [20.205.243.166] with 32 bytes of data:
Request timed out.
Request timed out.

Saya coba periksa di www.site24x7.com ada IP github lainnya. berikut gambar dan ipnya
Fremont-CA - US
192.30.255.113
Toronto - CA
140.82.114.3
Johannesburg - ZA
140.82.121.4
Singapore - SG (DOWN)
20.205.243.166

image

@vandenuj
Copy link

Om, request epic game sama steam
kampret nih PSE

@mul14
Copy link
Author

mul14 commented Jul 30, 2022

Baru ditambahkan Steam, Epic Games, dan PayPal.

@elnn4970
Copy link

gan ini kenapa ngebug gini ya?
image_2022-07-30_155423284

@vandenuj
Copy link

Mantabss.. makasi om

@rozium
Copy link

rozium commented Jul 31, 2022

Coba ditambahkan ini om @elnn4970

23.53.122.84 store.akamai.steamstatic.com
23.53.122.83 cdn.akamai.steamstatic.com
104.18.37.23 cdn.cloudflare.steamstatic.com store.cloudflare.steamstatic.com

@vandenuj
Copy link

oh iya, editing host file gini aman ga ya kalo dibuat PayPal? Karena PayPal sensitif dengan ip location (seperti penggunaan VPN ato dns), takutnya kena banned.

@pratamatama
Copy link

Update for Steam & steam.exe:

# ---------------------------------------------------
# Steam
# ---------------------------------------------------

104.93.122.163    steamgames.com
23.39.8.86        steamcommunity.com
23.77.27.52       www.valvesoftware.com
23.77.27.52       help.steampowered.com
23.77.27.52       partner.steamgames.com
104.119.104.79    steampowered.com store.steampowered.com    
23.53.122.84      store.akamai.steamstatic.com
23.53.122.83      cdn.akamai.steamstatic.com
104.18.37.23      cdn.cloudflare.steamstatic.com store.cloudflare.steamstatic.com community.cloudflare.steamstatic.com avatars.cloudflare.steamstatic.com
23.6.70.254       api.steampowered.com
104.96.246.161    steam-chat.com
104.97.85.142     test.steampowered.com
104.97.85.169     avatars.akamai.steamstatic.com avatars.akamai.steamstatic.com.edgesuite.net a1688.dscb.akamai.net avatars.steamstatic.com
103.10.124.162    cm1-sgp1.cm.steampowered.com
103.10.124.163    cm2-sgp1.cm.steampowered.com
103.10.124.164    cm3-sgp1.cm.steampowered.com
103.10.124.165    cm4-sgp1.cm.steampowered.com
103.10.124.120    cm5-sgp1.cm.steampowered.com
103.10.124.121    cm6-sgp1.cm.steampowered.com
153.254.86.179    cm1-hkg1.cm.steampowered.com
153.254.86.163    cm2-hkg1.cm.steampowered.com
153.254.86.29     cm3-hkg1.cm.steampowered.com
153.254.86.181    cm4-hkg1.cm.steampowered.com
104.96.220.121    clientconfig.akamai.steamstatic.com clientconfig.akamai.steamstatic.com.edgesuite.net a1768.g1.akamai.net
104.97.85.177     community.akamai.steamstatic.com

@elnn4970
Copy link

elnn4970 commented Aug 1, 2022

@rozium thanks om

@ehzawad
Copy link

ehzawad commented Sep 30, 2022

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
54.84.177.104 alb.reddit.com
151.101.197.140 s.redditmedia.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

Thanks

@Teravolt234
Copy link

Maaf apakah ada update untuk vimeo? Saat copas yang di atas keluar error 400. Terima kasih.

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