日韩天天综合网_野战两个奶头被亲到高潮_亚洲日韩欧美精品综合_av女人天堂污污污_视频一区**字幕无弹窗_国产亚洲欧美小视频_国内性爱精品在线免费视频_国产一级电影在线播放_日韩欧美内地福利_亚洲一二三不卡片区

怎樣防止網(wǎng)頁(yè)的內(nèi)容被別人采集_JSP教程

編輯Tag賺U幣
教程Tag:暫無(wú)Tag,歡迎添加,賺取U幣!

推薦:淺析JSP分頁(yè)教程
JSP分頁(yè)教程 html xmlns=1999/xhtml head meta http-equiv=Content-Type content=text/html; charset=gb2312 / title設(shè)計(jì)家園jsp教程/title % //連接字符串 Class.forName(org.gjt.mm.mysql.Driver); Connection connection=Drive

 

<%
'****************************************
' 怎么防止網(wǎng)頁(yè)的內(nèi)容被別人采集,非法的訪問(wèn)你的網(wǎng)站
'****************************************
dim onlyURL,from '***指定來(lái)源網(wǎng)址...
onlyURL="http://127.0.0.1/"
from=trim(request.serverVariables("HTTP_REFERER"))
if from="" then '***來(lái)源為空:可能是直接輸入網(wǎng)址或小偷...
response.write "<div style=’display:none’><p>拒絕小偷!!!"
response.write "<p>來(lái)自:" & from
response.write "<p>請(qǐng)?jiān)L問(wèn):<a href='" & onlyURL & "'>" & onlyURL &"</a>"
response.write "<p><form name=’blankForm’ method=get action=’’></form>"
response.write "<p><script language=""JavaScript"">blankForm.submit()</script>" & vbCRLF
response.end
else
if inStr(from,onlyURL)<>1 then
' ***非指定來(lái)源:盜鏈...
response.write "<div style=’display:none’><p>拒絕盜鏈!!!"
response.write "<p>來(lái)自:" & from
response.write "<p>請(qǐng)?jiān)L問(wèn):<a href=’" & onlyURL & "’>" & onlyURL &"</a>"
response.write "<p><form name=’blankForm’ method=get action=’’></form>"
response.write "<p><script language=""JavaScript"">blankForm.submit()</script>"
response.end
else '***來(lái)源正常,將訪問(wèn)后面的內(nèi)容...

end if
end if
%>

 

分享:淺談Java 使用jdbc:odbc 建立無(wú)源連接access數(shù)據(jù)庫(kù)
package puyue; import java.sql.*; import java.io.*; import java.util.*; public class accesslink{ private String url=jdbc:odbc:driver={Microsoft Access Driver (*.mdb)};dbq=e:\\java\\puyue.mdb; ResultSet rec; public accesslink() { try { Cl

來(lái)源:模板無(wú)憂(yōu)//所屬分類(lèi):JSP教程/更新時(shí)間:2010-05-20
相關(guān)JSP教程