php 客户端与服务器端安全与破解

一般的加密和授权:转发服务器(代理服务器)

解决方案:hhvm编译代码

放扒取:

js类

1:防止鼠标右键事件,在html->body

<body oncontextmenu=self.event.returnValue=false>

或者在js里写

document.oncontextmenu = function(){
    event.returnValue = false;
}
// 或者直接返回整个事件
document.oncontextmenu = function(){
    return false;
}

2:防止键盘F12事件

$(document).ready(function() { 
//jQuery 屏蔽F12 
$(document).bind("keydown",function(e){
e=window.event||e;
 if(e.keyCode==123){
e.keyCode = 0;
return  false;
} 
}); 
});

3:防止复制事件

document.oncopy = function(){
    event.returnValue = false;
}
// 或者直接返回整个事件
document.oncopy = function(){
    return false;
}

<body oncopy = "return false" ></body>

4:禁止页面选中内容

document.onselectstart = function(){
    event.returnValue = false;
}
// 或者直接返回整个事件
document.onselectstart = function(){
    return false;
}

<body onselectstart = "return false" ></body>

php类

1:ip池过滤功能

2:接口参数加密

3:后台返回加密规则,把数据加密

猜你喜欢

转载自blog.csdn.net/lorraine_40t/article/details/80942124
今日推荐