1、Nginx配置文件添加伪静态规则:
# 屏蔽RiTheme授权验证请求
location ~* (ritheme.com|verify_license|check_update|auth.php|license.php) {
access_log off;
log_not_found off;
return 444;
}
# 屏蔽主题的授权检查API端点
location ~* (wp-admin/admin-ajax.php?action=theme_ajax_activ) {
access_log off;
return 200 '{"success":true,"data":"授权验证成功"}';
}
# 屏蔽主题更新检查
location ~* (api.wordpress.org/themes/update-check) {
access_log off;
content_by_lua_block {
ngx.header.content_type = 'application/json';
ngx.say('{"themes":{}}');
}
}
2、复制下面的全部代码粘贴到 functions.php 文件最底部
此内容 登录 后可见!
3、在后台授权页面输入id:88888888、key:zzd1.com 点击授权,授权后手动刷新网页就可以了
原文链接:https://www.zzd1.com/41.html,本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。