DIFF.BLOG
New
Following
Discover
Jobs
More
Suggest a blog
Upvotes plugin
Report bug
Contact
About
Sign up  
零成本反代jsdelver
1
·
Jim Deng
·
Aug. 17, 2022, 2:36 a.m.
Summary
第一种方法(虚拟主机反代) 将下面的代码保存为index.php 1){ $cdn_file = substr($file, strlen($self_path)); } $local_path = substr(pathinfo( $cdn_file, PATHINFO_DIRNAME), 1); if($local_path && !is_dir($local_path)){ @mkdir($local_path, 755, true); } $url = 'https://cdn.jsdelivr.net' . $cdn_file . $query; $content = curl($url); if($content){ header('content-type:'. $mimetype .';charset=utf-8'); echo '/* ' . $url .'*/'; file_put_contents(substr($cdn_file, 1), $content); exit($content); }else{ ...
Read full post on jimsblog.xyz →
Submit
AUTHOR
RECENT POSTS FROM THE AUTHOR