昨天发了一个帖子,bid那个盗版loc,反代之后,有mjj问如何替换图片什么的。 原理很简单,F12,一切可替换~宝塔虽然就限制那几条,但是没说不能自己加啊。只会字符串替换还是菜了点。而且现在纯静态网页已经很少了,有点动态渲染的内容你这样就显示不出来了,但是分享出来只是让大家参考一下怎么反代LOC改的图,要是人家站主不想被反代,就不要带了。详细的可以参考我的MJJSO,我这边直接分享MJJSO的反代源码。
#PROXY-START/locatiON ~* \.(php|jsp|cgi|asp|aspx)${ proxy_pass https://mijisou.com; proxy_set_header Host mijisou.com; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header REMOTE-HOST $remote_addr;}location /{ proxy_pass https://mijisou.com; proxy_set_header Host mijisou.com; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header REMOTE-HOST $remote_addr; add_header X-Cache $upstream_cache_status; #Set Nginx Cache proxy_set_header Accept-Encoding ""; sub_filter "秘迹" "MJJ"; sub_filter "LeakZero" "MJJ"; sub_filter "/themes/entropage/img/logo_index.png?staticVersion=1557735741" "https://s1.ax1x.com/2020/04/15/JPKqmj.png"; sub_filter "/themes/entropage/img/logo_index_zh_CN.png?staticVersion=1561520948" "https://s1.ax1x.com/2020/04/15/JPKqmj.png"; sub_filter "一个不追踪你的中文搜索引擎" "无广告,无竞价,隐私保护!"; sub_filter "doesn't track</a>" "#新冠#超话</a>"; sub_filter ">不追踪</a>" ">#新冠#超话</a>"; sub_filter "你的搜索引擎 </div>" ""; sub_filter "The search engine" "全网爆点:"; sub_filter "> 这是一个 <a" "> 全网爆点: <a"; sub_filter "/about#policy" "http://zeze.ren/tag/%e6%ad%a6%e6%b1%89%e5%8a%a0%e6%b2%b9"; sub_filter ">这是一个不追踪你的搜索引擎</h2>" ">无广告,无竞价,不追踪!</h2>"; sub_filter "匿名访问" ""; sub_filter ">网页</label>" ">Web</label>"; sub_filter " you. </div>" ""; sub_filter "条结果" "条来自MJJSO搜寻全网的结果"; sub_filter "一个保护你个人隐私的工具" "让搜索简单一点"; sub_filter "https://s1.ax1x.com/2020/04/15/JPKqmj.png" "https://s1.ax1x.com/2020/04/15/JPKqmj.png"; sub_filter "https://www.leakzero.com?from=search" "https://mjjso.cn/"; sub_filter " App" "搜索引擎"; sub_filter "https://leakzero.com?from=search" "https://mjjso.cn/"; sub_filter "https://cdn.leakzero.com/fe/qr_homesite.png" "https://s1.ax1x.com/2020/04/15/JPKqmj.png"; sub_filter "关于</a></li>" "热搜#新冠#</a></li>"; sub_filter "About</a></li>" "热搜#新冠#</a></li>"; sub_filter "/about" "/?q=hostla"; sub_filter "隐私政策</a></li>" "超话#新冠#</a></li>"; sub_filter "Privacy Policy</a></li>" "超话#新冠#</a></li>"; sub_filter "博客</a></li>" "疫情实时动态</a></li>"; sub_filter "Blog</a></li>" "疫情实时动态</a></li>"; sub_filter "https://www.leakzero.com/blog" "http://zeze.ren/yiqing.html"; sub_filter "设为默认搜索引擎</a></li>" "旧版MJJSO</a></li>"; sub_filter "Set As Default Search Engine</a></li>" "旧版MJJSO</a></li>"; sub_filter "https://www.leakzero.com/detail?type=help&index=101" "https://mjjso.com"; sub_filter ">使用协议</a></li>" ">啧啧社区</a></li>"; sub_filter "/about#agreemt" "http://zeze.ren/"; sub_filter ">捐赠</a></li>" ">Hostla博客</a></li>"; sub_filter ">Donation</a></li>" ">Hostla博客</a></li>"; sub_filter "https://cdn.leakzero.com/fe/menu_wechat_ic.png" ""; sub_filter "/themes/entropage/img/logo_search_page.png?staticVersion=1557735741" "https://s1.ax1x.com/2020/04/15/JirMOH.png"; sub_filter "https://mjjso.cn/?q=%E6%96%B0%E5%86%A0#pay" "http;//hostla.cn/"; sub_filter "同学 </p> </div> </ul> </span></div>" "@啧啧官方账号 </p> </div> </ul> </span></div>";sub_filter "京ICP备18016546号" "MJJSO.CN";sub_filter "京公网安备11010502036987号" "MJJSO.COM";sub_filter ">bing</span>" "></span>";sub_filter ">sogou</span>" "></span>";sub_filter ">360sousuo</span>" "></span>";sub_filter ">IT</label>" ">GitHub</label>";sub_filter ">点我试试 在知乎中搜索秘迹</a>" "</a>";sub_filter ">点我试试 派等于多少</a>" "></a>";sub_filter "Search for..." "输入你想搜的内容...";sub_filter "/themes/entropage/img/group_5_3x.png?staticVersion=1561520948" "";sub_filter "/themes/entropage/img/favicon.png?staticVersion=1557735741" "https://s1.ax1x.com/2020/04/15/JirMOH.png"; sub_filter_once off; add_header Cache-Control no-cache; expires 12h;}#PROXY-END/
未经允许不得转载:Just My Socks中文教程网 » 大佬分享的反代的最高境界:你的就是我的,我的还是我的