关于防止恶意注册
<P>防止恶意注册,我在用PHP时找到个帖子教的办法不错,不过不知道用到ASP该该怎么用。</P>
<P>转贴:</P>
<P>暴力防恶意注册特点:</P>
<P>1、采用动态表单对象名(每1000秒变化一次,且通过md5与验证答案混合),使暴力注册程序无从查找到表单正确表单名<BR>2、采用提示文字颜色随机变化,防止注册机通过查找颜色来辨别表单对象名</P>
<P>安装步骤</P>
<P>1、打开register.htm,找到</P>
<P><BR>[Copy to clipboard]<BR>CODE:</P>
<P><BR><!--{if $seccodecheck}--><BR> <tr><BR> <td class="altbg1" width="21%"><span class="bold">{lang seccode}</span></td><BR> <td class="altbg2"><div class="input"><input type="text" name="seccodeverify" size="4" maxlength="4" id="seccodeverify" onBlur="checkseccode()"> <img id="seccode" style="cursor:pointer" onclick="this.src='seccode.php?update=' + Math.random()" src="seccode.php" class="absmiddle" alt="" /></div><div class="notice" id="checkseccode"> {lang secode_refresh}</div><BR> <script type="text/javascript">$('seccode').src = 'seccode.php?update=' + Math.random()</script></td><BR> </tr><BR> <!--{/if}--></P>
<P>下加入,此处提示文字可以根据需要修改</P>
<P><BR>[Copy to clipboard]<BR>CODE:</P>
<P><BR> <tr><BR> <td class="altbg1" width="21%"><span class="bold">请输入精武太极地址 (<b><font color="$checkinputcolor">$checkinputdate</font></b>)</span></td><BR> <td class="altbg2"><div class="input"><input type="text" name="$checkinputname" size="25" maxlength="15" id="check2"></div><BR> </td><BR> </tr></P>
<P>2、打开register.php</P>
<P>找到</P>
<P><BR>[Copy to clipboard]<BR>CODE:</P>
<P>$query = $db->query("SELECT * FROM {$tablepre}settings WHERE variable IN ('bbrules', 'bbrulestxt', 'welcomemsg', 'welcomemsgtxt')");<BR>while($setting = $db->fetch_array($query)) {<BR> $setting['variable'] = $setting['value'];<BR>}</P>
<P>下加入</P>
<P><BR>[Copy to clipboard]<BR>CODE:</P>
<P>$checkinputdate="<a href='http://www.shtaichi.com";//' target="_blank" >www.shtaichi.com";//</A>验证信息答案<BR>$checkinputname=md5((round(time()/1000).$checkinputdate));<BR>$checkinputcolor=sprintf("%02X",(rand(70,150))).sprintf("%02X",(rand(70,150))).sprintf("%02X",(rand(70,150)));</P>
<P>再找到</P>
<P><BR>[Copy to clipboard]<BR>CODE:</P>
<P><BR>$email = trim($email);<BR> $username = trim($username);<BR> $alipay = trim($alipay);</P>
<P>下加入,提示信息可以根据需要修改</P>
<P><BR>[Copy to clipboard]<BR>CODE:</P>
<P><BR>if($_POST[$checkinputname]!= $checkinputdate) {<BR> showmessage('为了防止恶意注册,请输入正确的精武太极地址:<a href="http://www.shtaichi.com'/" target="_blank" >www.shtaichi.com'</A>);<BR> }<BR></P>
留言区(共0条)