Giter Club home page Giter Club logo

unblock-neteasemusic's Introduction

UnblockNetEaseMusic 海外网易云音乐代理

服务器信息

158.199.142.239 music.163.com

使用方法

Windows:(不保证能用) 打开命令提示符(管理员权限),执行该命令

echo 158.199.142.239 music.163.com >> C:\WINDOWS\System32\drivers\etc\hosts

Mac:
打开终端,sudo vi /etc/hosts ,然后将以下添加进文件末尾
158.199.142.239 music.163.com

实现原理

服务器上通过Nginx修改数据头部以被服务器认为国内IP,因为TLS的验证问题,遂无法在不安装证书的情况下提供代理服务。虽然可以通过SNIPROXY实现,但要一个国内IP开放80/443端口的难度我觉得太大了。 Nginx配置文件:

server {
    listen 80;
    listen 443;
    server_name music.163.com;

    location / {
        proxy_pass https://music.163.com;
    }

    proxy_set_header Host $host;
    proxy_set_header X-Real-IP #这里填入任意一个可用国内IP#;
    proxy_set_header X-Forwarded-For #这里填入任意一个可用国内IP#;  
}

备注

如果你有一个位于国内的代理服务器,可以解决iOS设备上的网易云音乐/MOO音乐的区域限制。

//Netease  
USER-AGENT,NeteaseMusic*,China  
USER-AGENT,%E7%BD%91%E6%98%93%E4%BA%91%E9%9F%B3%E4%B9%90*,China  
DOMAIN-SUFFIX,music.126.net,China  
DOMAIN-SUFFIX,music.163.com,China  
//Tencent  
USER-AGENT,MOO%E9%9F%B3%E4%B9%90*,China  
USER-AGENT,QQ%E9%9F%B3%E4%B9%90,China  
DOMAIN-SUFFIX,qqmusic.qq.com,China  
DOMAIN-SUFFIX,y.qq.com,China  
DOMAIN,aqqmusic.tc.qq.com,China`

unblock-neteasemusic's People

Contributors

fengjueming avatar

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.