您现在的位置是:首页
>
修改ie安全设置在哪里 ASP安全设置:禁止从外部提交数据
ASP安全设置:禁止从外部提交数据 使用a 尽量减少服务器端的工作量 这样就应该多使用java cri t 把所有提交字段使用java cri t或v cri t检测后提交给服务器 这样服务器就不
ASP安全设置:禁止从外部提交数据
使用asp尽量减少服务器端的工作量 这样就应该多使用javascript 把所有提交字段使用javascript或vbscript检测后提交给服务器 这样服务器就不必再作检测 而在提交时可能会有人修改script从本地提交 这样存在安全提交的问题 所以应该要求从服务器断路径提交 其他地址提交提交无无效
<%dim server_v server_v server_v =Cstr(Request ServerVariables( HTTP_REFERER ))server_v =Cstr(Request ServerVariables( SERVER_NAME ))if mid(server_v len(server_v ))<>server_v thenresponse write <br><br><center><table border= cellpadding= bordercolor=black bgcolor=#EEEEEE width= > response write <tr><td style= font: pt Verdana > response write 你提交的路径有误 禁止从站点外部提交数据请不要乱该参数! response write </td></tr></table></center> response endend if%> 比如说上面的代码起名为check_path asp保存 每次遇到表格提交时引用就行了

lishixinzhi/Article/program/net/201311/11774
很赞哦! (1062)