Code Monkey home page Code Monkey logo

steam520's Introduction

Steam520

GitHub license TypeScript Version Git Commit GitHub Sponsors

介绍

本项目启发自GitHub520

TypeScript编写、Node.js 16+驱动,提供Steam遭到类似Github被干扰的解决方案。(无需安装)


本项目无需安装任何程序,通过修改本地 hosts 文件,试图解决:

  • Steam商店 访问速度慢的问题
  • Steam商店 中的图片显示不出的问题

解决不了你知道该骂谁。

使用方法

手动方式

复制下面的内容

# This file is generated by fetching the ipaddress.com service.


# Update time: 2024/7/24 00:11:15
# Repo URL: https://github.com/pboymt/Steam520
# Hosts END

或直接从链接获取hosts文件JSON文件

上面内容会自动定时更新,保证最新有效。

修改 hosts 文件

hosts 文件在每个系统的位置不一,详情如下:

  • Windows 系统:C:\Windows\System32\drivers\etc\hosts
  • Linux 系统:/etc/hosts
  • Mac(苹果电脑)系统:/etc/hosts
  • Android(安卓)系统:/system/etc/hosts
  • iPhone(iOS)系统:/etc/hosts

修改方法,把第一步的内容复制到文本末尾:

  1. Windows 使用记事本。
  2. Linux、Mac 使用 Root 权限:sudo vi /etc/hosts
  3. iPhone、iPad 须越狱、Android 必须要 root。

激活生效

大部分情况下是直接生效,如未生效可尝试下面的办法,刷新 DNS:

  1. Windows:在 CMD 窗口输入:ipconfig /flushdns

  2. Linux 命令:sudo nscd restart,如报错则须安装:sudo apt install nscdsudo /etc/init.d/nscd restart

  3. Mac 命令:sudo killall -HUP mDNSResponder

Tips: 上述方法无效可以尝试重启机器。

自动方式

Tip:推荐 SwitchHosts 工具管理 hosts

以 SwitchHosts 为例,看一下怎么使用的,配置参考下面:

  • Title: 随意

  • Type: Remote

  • URL: https://raw.githubusercontent.com/pboymt/Steam520/main/hosts

  • Auto Refresh: 最好选 1 hour

如图:

这样每次 hosts 有更新都能及时进行更新,免去手动更新。

2.3 One-liner (适用于类Unix系统)

sed -i "/# GitHub520 Host Start/Q" /etc/hosts && curl https://raw.githubusercontent.com/pboymt/Steam520/main/hosts >> /etc/hosts 自动更新/etc/hosts文件,可以添加到cron定时执行。使用前确保Github520内容在该文件最后部分。

2.4 AdGuard Home 用户(自动方式)

过滤器>DNS 封锁清单>添加阻止列表>添加一个自定义列表,配置如下:

  • 名称: 随意

  • URL: https://raw.githubusercontent.com/pboymt/Steam520/main/hosts(和上面 SwitchHosts 使用的一样)

更新间隔在 设置>常规设置>过滤器更新间隔(设置一小时一次即可),记得勾选上 使用过滤器和 Hosts 文件以拦截指定域名

Tip:不要添加在 DNS 允许清单 内,只能添加在 DNS 封锁清单 才管用。另外,AdGuard for Mac、AdGuard for Windows、AdGuard for Android、AdGuard for IOS 等等 AdGuard 家族软件 添加方法均类似。

TODO

  • 定时自动更新 hosts 内容
  • hosts 内容无变动不会更新
  • 寻到最优 IP 解析结果

开源协议

本项目随便使用的GNU Public License v3,欢迎贡献代码,谢谢!

steam520's People

Contributors

pboymt avatar

Stargazers

小z布丁 avatar  avatar  avatar  avatar Liang Weihao avatar  avatar  avatar 寒歌 avatar FBIK. avatar Cai Bingjun avatar Yu Yang avatar CodingBot avatar  avatar  avatar Shirolin avatar wangchao720 avatar George avatar  avatar  avatar  avatar hydroakri avatar  avatar  avatar Duke avatar liusetional avatar 蓝莓味汽水~ avatar Liu Zhongjie avatar liuqiang avatar Xavier Wang avatar jesse hao avatar Kevin avatar  avatar zhuluonuofu avatar  avatar  avatar JiaYingWang avatar HRK avatar Ce Yang avatar  avatar  avatar  avatar  avatar  avatar Jiang avatar mztian avatar  avatar  avatar 砂糖 avatar 嵐奏 avatar  avatar Pure_Base avatar  avatar  avatar  avatar bigrocs avatar NonsenseStudio avatar  avatar  avatar  avatar Dorian Gao avatar  avatar 木杉 avatar ZCDC_Ren avatar 凡辞 avatar J4ceBe1eren avatar  avatar akillcool avatar 宋兵乙 avatar jeferwang avatar  avatar Aaron avatar x4455 avatar  avatar  avatar 一个不知名の睡觉高手 avatar  avatar 翎风 avatar lvxiao avatar Bob Xiang avatar yisui avatar  avatar 无影 avatar Kripto avatar NekoWings avatar 哆啦酱 avatar  avatar sche11 avatar StelleSand avatar Spark avatar n46asuka avatar  avatar Nuctori avatar  avatar

Watchers

Lucian avatar  avatar Kostas Georgiou avatar  avatar

steam520's Issues

少几个域名

这里是你要解析的所有域名
你少了几个
(我懒得一个一个检查了,你看下

127.0.0.1 steam-chat.com
127.0.0.1 steamcdn-a.akamaihd.net
127.0.0.1 cdn.akamai.steamstatic.com
127.0.0.1 community.akamai.steamstatic.com
127.0.0.1 avatars.akamai.steamstatic.com
127.0.0.1 community.steamstatic.com
127.0.0.1 store.akamai.steamstatic.com
127.0.0.1 media.steampowered.com
127.0.0.1 steamcommunity.com
127.0.0.1 www.steamcommunity.com
127.0.0.1 store.steampowered.com
127.0.0.1 api.steampowered.com
127.0.0.1 help.steampowered.com
127.0.0.1 login.steampowered.com
127.0.0.1 checkout.steampowered.com

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.