[*] Hello Snoopy

.NET and Flash Blog

2004年8月4日

ASP中的防盗链

摘要: Serv_url then response.write "非法链接!" '防止盗链 response.endend ifif Request.Cookies("Logined")="" then response.redirect "/login.asp" '需要登陆!end ifFunction GetFileName(longname)'/folder1/folder2/file.asp... 阅读全文

posted @ 2004-08-04 17:34 HelloSnoopy 阅读(617) 评论(0) 推荐(0) 编辑
非WEBForm的MD5字符串加密

摘要: /**//// /// MD5加密字符串/// /// 要加密的字串/// public static string encrypt(string str){ byte[] bValue; byte[] bHash; string result=null; System.Security.Cryptography.MD5CryptoServiceProvider md5 ... 阅读全文

posted @ 2004-08-04 17:28 HelloSnoopy 阅读(431) 评论(0) 推荐(0) 编辑