自建哔哩漫游解析服务器(PHP)
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Go to file
david082321 189a8ae705 Add Json Response Header 4 years ago
intl/gateway/v2 2.2 4 years ago
pgc/player/api/playurl 2.2 4 years ago
404.php 2.9 4 years ago
README.md 2.9.3 4 years ago
Server_v2.9.3.zip Add Json Response Header 4 years ago
blacklist.php Add Json Response Header 4 years ago
cache.php Add Json Response Header 4 years ago
cache.sql 2.2 4 years ago
config.php Add Json Response Header 4 years ago
index.php Add Json Response Header 4 years ago
log.php Add Json Response Header 4 years ago
none.php 2.6 4 years ago
replace.php Add Json Response Header 4 years ago
whitelist.php Add Json Response Header 4 years ago

README.md

BiliRoaming-PHP-Server

哔哩漫游 PHP 解析服务器

自建解析服务器参考配置

下载:

用法:

  • 直接放到网站根目录,例如 wwwroot 或 public_html 或 private_html

  • 默认为「黑名单-猫和老鼠」模式,若要切换到其他模式,请看底下说明。

示例:

示例

(完成)


(非必要步骤) 切换到其他模式

  • 默认为「黑名单-猫和老鼠」模式,若您想使用「黑名单」或是「黑名单-葫芦娃」或是「本地白名单」或是「无任何限制」等其他模式,请手动修改 config.php

  • 每行后面都有注释提供参考

(非必要步骤) 防止重复的 301 转址

apache

nginx

  • 在配置文件中加入以下代码

    server

    {

    #...(中间略过,请加在配置文件最底下)...

    rewrite "^/pgc/player/api/playurl?(.*)$" /pgc/player/api/playurl/index.php?$1 last;

    rewrite "^/intl/gateway/v2/ogv/playurl?(.*)$" /intl/gateway/v2/ogv/playurl/index.php?$1 last;

    rewrite "^/intl/gateway/v2/app/search/type?(.*)$" /intl/gateway/v2/app/search/type/index.php?$1 last;

    rewrite "^/intl/gateway/v2/app/subtitle?(.*)$" /intl/gateway/v2/app/subtitle?$1 last;

    }

(非必要步骤) 缓存

  • 安装 MySQL

  • 配置 config.php 的缓存设置

  • 导入 cache.sql