1.驗證碼比較花,不容易辨認,很容易出錯,讓人很煩,可以改成找到common/function.asp打開,找到第217行
程序代碼
'*************************************
'獲得注冊碼
'*************************************
Function getcode()
getcode = "<img id=""vcodeImg"" src=""about:blank"" onerror=""this.onerror=null;this.src='common/getcode.asp?s='+Math.random();"" alt=""驗證碼"" title=""看不清楚?點擊刷新驗證碼!"" style=""margin-right:40px;cursor:pointer;width:40px;height:18px;margin-bottom:-4px;margin-top:3px;"" onclick=""src='common/getcode.asp?s='+Math.random()""/>"
End Function
將其替換成
'*************************************
程序代碼
'*************************************
Function getcode()
Dim QuesionNum
QuesionNum=10 '控制計算數的位數,此數必須大于10,不然全為0.如果想一位數相加,請用10,兩位數相加,請用100,混合位數相加,11~99.其它類推
Dim Num1
Dim Num2
Dim Dis_Num
Dim Sum
Randomize
Num1 = Int(QuesionNum * Rnd)
Num2 = Int(QuesionNum * Rnd)
Dis_Num = "=" & Num1 & "+" & Num2
Sum = Num1 + Num2
Session("GetCode") = Sum
getcode = "<span style=""margin-right:45px;"">" & Dis_Num & "</span>"
End Function
2.footer.asp文件,是改網站頁尾信息.什么網站版本號,什么的.你可以在這改掉
3. 第五就是對robots.txt的優化
對與pjblog3 我想大家用的是靜態頁多吧,所以對robots.txt的優化是一定要知道
如果喜歡搜索引擎更多的收錄你網站,可以去了解下
針對靜態用戶呢,可以更好的優化下,可以在robots.txt寫入一下代碼,切記以下只有開了純靜態才可以使用。
User-agent: Googlebot
(使其重新收錄靜態頁面)
Allow: /article/*.htm
(告訴蜘蛛刪除動態頁面 )
Disallow: /?id=
Disallow: /article.asp?id=
Disallow: /Article.asp?id=
Disallow: /default.asp?id=
Disallow: /Default.asp?id=