Method of preventing the Phpwind forum from being registered with malicious registration machine

Source: Internet
Author: User
Tags php and mysql php editor
Ways to prevent Phpwind forum from being registered for malicious registration
Phpwind add anti-Automatic registration Machine Verification code:

Recently my forum old register machine malicious registration, and publish advertising information, make very annoying, where think of some ways to prevent malicious registration. Here are some ways to do this: Method 1: Change the registration Form name (most efficient, but have some knowledge of PHP and MySQL.) Change the registration form to fill in the name of the content, which needs to match with the data table, MySQL form keyword also changed. Method 2: Enter the answer to the website registration question change Two files, one is register.htm, the other is register.php first step, open the Forum template/wind/under the register.htm, of course, this is the default style template, if you change the template , look for the file under the name of your modified template. Let's find a place to put it on: edit-findUser name in this sentence add the following sentence: there is a problem, of course, the specific content of the problem can be modified by itselfAnti-Malware registration issues:
Your mother was 49 years old last year, how old is this?Please fill that number in the left empty then cellSave, upload to space replace original file second step: Open the Register.php Editor in the main forum directory-find $db->update ("INSERT into Pw_members (username, Password,email, Publicmail,groupid,memberid,icon,gender,regdate,signature,introduce,oicq,icq,site,location,bday,receivemail,yz , Signchange) values add a few words to the top of the sentence: is the test to see whether the answer to the question is correct, the specific answer to their own question to specify if ($manianling! =) {showmsg ("Mom a few years old people do not care, go to die!!") "," Javascript:history.back () ");} Save, upload and upload to space to replace the original file. Method 3: Change the name of register.php is changed the registration page file name, for example, change register.php to r.php something. But one thing to note, all linked register.php pages must be changed to r.php, otherwise it will become a whiteboard yo. This is no way to modify many, affect the upgrade and the current operation of the Forum, But it's definitely effective first change the register.php to your own name. Modify Start: Check register.php for your changed name such as: welcome.phplogin.phpglobal.php 2 and then to template/ Wind (all the templates as long as the following file, you have to modify) 8 changes! Faq.htmlogin.htmlang_email.phplang_other.phpregister.htm 3 Place Simple_index.htmsimple_read.htmsimple_ Thread.htm Find register.php replacement for your modified register.php name. For example welcome.php This method does not need to set any additional information! Method 4: Enter today's date 1, modify register.php (register.php in the main directory) found: $db->update ("INSERT into pw_members (username, password, email, Publicmail,groupid,memberid,icon,gender,regdate,signature,introduce,Oicq,icq,site,location,bday,receivemail,yz,signchange) values above plus (Chinese self-modification): if ($nowday! = $nowday 1) {showmsg (" The date did not lose correctly. You won't forget what day it is, right? "," Javascript:history.back () ");} Found: @include_once (d_p ' data/bbscache/inv_config.php '); add: $nowday 1 = gmdate ("D", $timestamp + $timeoffset * 3600); Nowday2 = Gmdate ("M month D Day", $timestamp + $timeoffset * 3600); 2, modify register.htm (register.htm is in the directory/template/wind/ Register.htm or other style directory) found:Required InformationAdd below (Chinese self-modification):Anti-Malware Registration question: What's the date today?
If today's date is December 04, fill in 04.Tip: Please fill in the $nowday1 to enter it into the left text box (ignoring the problem of early morning jet lag)Friendly reminder: Please delete the previous robot Registration ID, there are a lot of robots are previously registered not post, and then to the date of the mad hair, if found similar ID, such as Sword *, please delete it, stay is hidden. Method 5: Add anti-Auto-registration Verification Code 1 in the background. Open template/admin/settings.htm FindInitial {$db _moneyname} when registering: (Recommended setting is 0.)Add at a laterAnti-auto-register verification code: for example "Phpwinnd" (set to NULL, then on behalf of off)(Special note: After the completion of the changes must be in the background to set up your own desired verification code, leave this feature is not enabled)2. Open admin/settings.php Find if ($reg [' Regmaxname ']>15) {adminmsg (' illegal_username ');} Add $reg[' Autoreg ']=str_replace ("", "", Trim ($reg [' Autoreg ']) in the back); 3. Open template/wind/register.htm Find Confirm Password *Add at a later Anti-Automatic Registration Machine Verification code *$rg _autoreg 4. Open the register.php file to find if (! $rg _rglower) {for ($asc =65; $ASC <=90; $ASC + +) {if (Strpos ($regname, Chr ($ASC))!==false) { ShowMsg (' Username_limit ');}}} Add the IF ($rg _autoreg!= "" && $autoreg! = $rg _autoreg) {showmsg (' Sorry, anti-autoenrollment verification failed! ');} Complete
  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.