PHPWIND background anti-automatic registration machine verification code is added to phpwind background to prevent PHPWIND Forum from being maliciously registered and advertised by registrars. Recently, my forum has been maliciously registered with registrars and published advertisement information, I tried some methods to prevent malicious registration. The following are some methods: Method 1: Change the NAME of the registry list (most effective, but you must have some knowledge about PHP and MYSQL .) Change the note to prevent the PHPWIND Forum from being maliciously registered by the registration machine for advertising
Added the anti-automatic registration server verification code to the phpwind background:
Recently, my forum has a registration machine that maliciously registers and publishes advertisement information, which is annoying. I am trying to prevent malicious registration. The following are some methods: Method 1: Change the NAME of the registry list (most effective, but you must have some knowledge about PHP and MYSQL .) Modify the NAME of the content entered in the registry form. this must be used with the data table, and the MYSQL form keyword must also be changed. Method 2: change the address of the website registration question to two files: register.htm and register. step 1 of php: open the forum template/wind/register.htm. of course, this is the default style template. if you change the template, find the file under the name of the modified template. Find a place first. we recommend that you put it on it: edit-searchThe user name is mentioned in the following sentence: it is a problem. of course, you can modify the specific content of the problem.Protection against malicious registration problems:
How old is your mom aged 49 last year?Enter the number in the left space.Save and upload the file to the space to replace the original file. Step 2: open the register in the main directory of the Forum. php 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 adds the following sentence to the sentence: Check whether the answer to the question is correct, specify if ($ manianling! = 50) {Showmsg ("people who don't care about their mom's age! let's die !! "," Javascript: history. back () ");} save, upload to space to replace the original file. method 3: Change register. the php name is to change the name of the registration page file, for example. change php to r. php or something. Note that the register. php page of all links must be changed to r. php. Otherwise, it will become a whiteboard. There is no way to do this. There are many modifications that affect the upgrade and the current operation of the forum, but it is absolutely effective to put register first. change php to the name you want. Start by checking register. change php to your name, for example, welcome. phplogin. phpglobal. php 2 and then modify it in template/wind (all templates must be modified as long as they have the following files! Find register. php in faq.htmlogin.htmlang_email.phplang_other.phpregister.htm 3 simple_index.htmsimple_read.htmsimple_thread.htm and change the name of register. php after modification. For example, welcome. php does not need to set any additional information for this method! Method 4: enter today's date 1. modify register. php (register. php is located in the main directory): $ 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) added on VALUES (modified by Chinese): if ($ nowday! = $ Nowday1) {Showmsg ("The date is incorrect. you won't forget the number of today's day, will you? "," Javascript: history. back () ");} found: @ include_once (D_P. 'data/bbscache/inv_config.php '); add $ nowday1 = gmdate ("d", $ timestamp + $ timeoffset * 3600) below ); $ nowday2 = gmdate ("m Month D", $ timestamp + $ timeoffset * 3600000000002133 modify register.htm(register.htm in the/template/wind/register.htm directory or other style directories:Required informationAdd the following (modify the Chinese version by yourself ):Anti-malicious registration question: What is the date today?
Enter 04 if the current date is January 1, December 04.Tip: enter $ nowday1 in the text box on the left (ignore the time difference in the morning)Friendly reminder: Please delete the IDs previously registered by robots. many robots are registered before and do not post, and then send them to the specified date. if you find similar IDs, such as Lijian, please delete it. keep it as a hidden danger. Method 5: Add the anti-automatic registration server verification code in the background. 1. open template/admin/settings.htm to searchInitial registration {$ db_moneyname}: (it is recommended to set it to 0 .)AddAnti-automatic registration server verification code: for example, "phpwinnd" (if it is set to Null, it indicates that the verification code is disabled)(Note: after modification, you must go to the background to set your desired verification code. if you leave it blank, this function is not enabled)2. open admin/settings. php query if ($ reg ['regmaxname']> 15) {adminmsg ('illegal _ username ');} add $ reg ['autoreg '] = str_replace ("", "", trim ($ reg ['autoreg']); 3. open template/wind/register.htm to search Confirm password *Add
Anti-automatic registration server 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 if ($ rg_autoreg! = "" & $ Autoreg! = $ Rg_autoreg) {showmsg ('sorry, anti-auto-registration server verification failed! ');} Completed