准备工作
- 一台没被Pixiv屏蔽的主机
- 一个船新的域名(几级域都可以)
Nginx
这里仅列出关键配置,通常配置请自行添加
access_log off;
location ~ .* {
proxy_pass https://i.pximg.net;
proxy_cache_use_stale error timeout updating http_500 http_502 http_503 http_504;
proxy_cache_lock on;
proxy_cache_revalidate on;
proxy_set_header Host i.pximg.net;
proxy_set_header Referer "https://www.pixiv.net/";
proxy_set_header Accept-Encoding "";
}
效果演示
反代前:https://i.pximg.net/img-original/img/2021/08/11/00/30/01/91882132_p0.jpg
反代后:https://pximg.lolicon.run/img-original/img/2021/08/11/00/30/01/91882132_p0.jpg

