Posted by: Guide
Patch name: Garbage reference defense patch
Release time: 2007-1-4
Version number: 3rd edition
Applicable version: PJblog2.6
Original author: Guide
Demo address: http://www.hljsh.com/
Download address: http://bbs.pjhome.net/attachment.php?aid=2143
Plugin introduction: It can effectively prevent spam references. Encrypt the submission address, add KEY verification in the second edition, and automatically change the key once an hour.
This version does not modify the database, only 4 files are modified, and supports static page mode!
Effect
Quote notice address: trackback.asp?tbID=JNKRQOF8&key=JOKNPNKOQPMPPMC0
The specific installation method is as follows:
================================================================================
File trackback.asp
Find
tbID=CheckStr(Request.QueryString("tbID"))
Replace with
tbID=Decrypt(CheckStr(Request.QueryString("tbID")))
Find
IfNot(IsInteger(Request.QueryString("tbID"))ANDIsInteger(Request.QueryString("logID"))) Then
Replace with
IfNotIsInteger(Decrypt(Request.QueryString("tbID")))ANDIsInteger(Request.QueryString("logID")) Then
Find
Whereblog_ID="&logID&"ANDtb_ID="&CheckStr(Request.QueryString("tbID"))
Replace with
Whereblog_ID="&logID&"ANDtb_ID="&Decrypt(CheckStr(Request.QueryString("tbID")))
** There are 2 places
Find
'=============================================
'Quotation notification processing page
'Update time: 2006-6-1
'=============================================
Add below
dimkeys,keys1
keys=Request.QueryString("key")
keys1=Encrypt((year(now))&(Month(now))&(day(now))&hour(now()))
ifkeys<>keys1then
Response.c
Response.write"<?xmlversion=""1.0""encoding=""UTF-8""?><?xml-stylesheettype=""text/xsl""href=""tb.xsl""?>"
%>
<response><error>1</error><message>The information you submitted has expired. Please check...</message></response>
<%
else
dimstrget
strget=trim(Request.QueryString("tbID"))
iflen(strget)>8then