好像可以用JavaScript判断吧。不需要用PHP的。
在客户端就可以判断了。
给个示范
if(event.KeyCode==8){
    event.KeyCode=0;
    event.ReturnValue=false;
    alert("当前设置不允许使用退格键!");
}
相似的,刷新的相应值是116
前进的相对值是ALT+左方向键也就是event.altkey和window.event.keycode==37
Alt+右方向键是event.altkey和window.event.keycode==39