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 methods:
Method 1: Change the registration Form name (most effective, but have some knowledge of PHP and MySQL.) )
Change the registration form to fill in the name of the content, which needs to match 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
The first step, open the Forum template/wind/under the register.htm, of course, this is the default style template, if you change the template, then to the name of your modified template to find this file.
Let's find a place to put it on:
Edit-Find
User name
In this sentence add the following sentence: there is a problem, of course, the specific content of the problem can be modified by itself
Anti-Malware registration issues:
Your mother was 49 years old last year, how old is this?
Please fill that number in the left empty then cell
Save, upload to space replace original file
Step Two: Open the register.php in the Forum main directory
Edit-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
In this sentence, add a few words: is the test to see whether the answer to the question is correct, the specific answer to their own problems specified
if ($manianling! = 50) {
ShowMsg ("Mom is 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 the register.php
is to change the file name of the registration page, for example, change register.php to r.php or 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 much, affect the upgrade and the current operation of the forum, but absolutely effective
First change the register.php to your own name.
Modify Start:
Check register.php change your name, such as: welcome.php
login.php
global.php 2 Place
Then to Template/wind (all the templates as long as the following files, all to modify) 8 changes!
FAQ.htm
Login.htm
lang_email.php
lang_other.php
Register.htm 3 Place Simple_index.htm
Simple_read.htm
Simple_thread.htm
Find in
register.php
Replace with your modified register.php name. Like welcome.php.
This method does not need to set any additional information!
Method 4: Enter today's date
1, modify the register.php (register.php is in the main directory)
Found it:
$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 has not been lost correctly.) You won't forget what day it is? "," Javascript:history.back () ");
}
Found it:
@include_once (d_p.data/bbscache/inv_config.php);
Add the following:
$nowday 1 = gmdate ("D", $timestamp + $timeoffset * 3600);
$nowday 2 = gmdate ("M-month D-Day", $timestamp + $timeoffset * 3600);
2, modify register.htm (register.htm in the catalogue/template/wind/register.htm or other style directory)
Found it:
Required Information
Add below (Chinese self-modification):
Anti-Malware Registration question: What's the date today?
If today's Day
The period is December 04, fill 04
Tip: Please fill in
Color= "#FF0000" > $nowday 1 Just enter it to the left text box (ignoring the early morning jet lag problem)
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 in the background
1. Open template/admin/settings.htm
Find
Initial {$db _moneyname} when registering: (Recommended setting is 0.)
Add at a later
Anti-Auto-registration verification code: such as "Phpwinnd" (set to NULL, then the switch is off) (Special note: After the completion of the modification must be in the background to set up your own desired verification code, left blank does not enable this feature)
2. Open admin/settings.php
Find
if ($reg [regmaxname]>15) {
Adminmsg (Illegal_username);
}
Add at a later
$reg [Autoreg]=str_replace ("", "", Trim ($reg [autoreg]));
3. Open template/wind/register.htm
Find
Confirm Password *
Add at a later
Anti-Automatic Registration Machine Verification code *
color=red>$rg _autoreg
4. Open register.php File
Find
if (! $rg _rglower) {
for ($asc =65; $ASC <=90; $ASC + +) {
if (Strpos ($regname, Chr ($ASC))!==false) {
ShowMsg (Username_limit);
}
}
}
Add at a later
if ($rg _autoreg!= "" && $autoreg! = $rg _autoreg) {
ShowMsg (sorry, anti-automatic registration machine verification failed!) );
}
Complete
I hope we have some help.
http://www.bkjia.com/PHPjc/486272.html www.bkjia.com true http://www.bkjia.com/PHPjc/486272.html techarticle 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 methods: Method 1: Change registration ...