ระบบป้องกัน Spam ต่างชาติ [SMF]

เริ่มโดย Putter™, 21 เมษายน 2010, 09:51:24

หัวข้อก่อนหน้า - หัวข้อถัดไป

0 สมาชิก และ 1 ผู้มาเยือน กำลังดูหัวข้อนี้

Putter™

ที่มาของ Mod : Simplemachines.Org







เห็นหลายคนบ่นเรื่อง Spam กันมาก ผมขอแนะนำ Mod ตัวนี้เลยแล้วกันครับ

ชอบใจ + กันหน่อยนะคับ

สร้างไฟล์ชื่อ add_default_settings.php อัพไปไว้ที่เดียวกับ SSI.php แล้วรัน 1 ครั้งครับ
<?php

if (file_exists(dirname(__FILE__) . '/SSI.php') && !defined('SMF'))
require_once(dirname(__FILE__) . '/SSI.php');
elseif (!
defined('SMF'))
die('<b>Error:</b> Cannot install - please verify you put this in the same place as SMF\'s index.php.');

updateSettings(array(
'anti_spam_ver_enable' => 1,
));

if(
SMF == 'SSI')
echo 'Database settings successfully made!';

?>


เปิดไฟล์ source/Register.php

ค้นหา
// Are they under age, and under age users are banned?

เอาไว้ก่อนที่หา
// Did they answer the verification questions correctly?
if (!empty($modSettings['anti_spam_ver_enable']))
if ( (!empty($modSettings['anti_spam_ver_ques_1']) && strcmp(strtolower($modSettings['anti_spam_ver_ans_1']), isset($_POST['anti_spam_ver_resp_1']) ? strtolower($_POST['anti_spam_ver_resp_1']) : '')) ||
(!empty($modSettings['anti_spam_ver_ques_2']) && strcmp(strtolower($modSettings['anti_spam_ver_ans_2']), isset($_POST['anti_spam_ver_resp_2']) ? strtolower($_POST['anti_spam_ver_resp_2']) : '')) ||
(!empty($modSettings['anti_spam_ver_ques_3']) && strcmp(strtolower($modSettings['anti_spam_ver_ans_3']), isset($_POST['anti_spam_ver_resp_3']) ? strtolower($_POST['anti_spam_ver_resp_3']) : '')) ||
(!empty($modSettings['anti_spam_ver_ques_4']) && strcmp(strtolower($modSettings['anti_spam_ver_ans_4']), isset($_POST['anti_spam_ver_resp_4']) ? strtolower($_POST['anti_spam_ver_resp_4']) : '')) ||
(!empty($modSettings['anti_spam_ver_ques_5']) && strcmp(strtolower($modSettings['anti_spam_ver_ans_5']), isset($_POST['anti_spam_ver_resp_5']) ? strtolower($_POST['anti_spam_ver_resp_5']) : ''))
)
fatal_lang_error('anti_spam_ver_failed', false);



เปิดไฟล์ source/ManageRegistration.php
ค้นหา
'coppaPhone' => !empty($_POST['coppaPhone']) ? $_POST['coppaPhone'] : '',

ขึ้นบรรทัดใหม่
'anti_spam_ver_enable' => isset($_POST['anti_spam_ver_enable']) ? 1 : 0,
'anti_spam_ver_ques_1' => !empty($_POST['anti_spam_ver_ques_1']) ? $_POST['anti_spam_ver_ques_1'] : '',
'anti_spam_ver_ans_1' => !empty($_POST['anti_spam_ver_ans_1']) ? $_POST['anti_spam_ver_ans_1'] : '',
'anti_spam_ver_ques_2' => !empty($_POST['anti_spam_ver_ques_2']) ? $_POST['anti_spam_ver_ques_2'] : '',
'anti_spam_ver_ans_2' => !empty($_POST['anti_spam_ver_ans_2']) ? $_POST['anti_spam_ver_ans_2'] : '',
'anti_spam_ver_ques_3' => !empty($_POST['anti_spam_ver_ques_3']) ? $_POST['anti_spam_ver_ques_3'] : '',
'anti_spam_ver_ans_3' => !empty($_POST['anti_spam_ver_ans_3']) ? $_POST['anti_spam_ver_ans_3'] : '',
'anti_spam_ver_ques_4' => !empty($_POST['anti_spam_ver_ques_4']) ? $_POST['anti_spam_ver_ques_4'] : '',
'anti_spam_ver_ans_4' => !empty($_POST['anti_spam_ver_ans_4']) ? $_POST['anti_spam_ver_ans_4'] : '',
'anti_spam_ver_ques_5' => !empty($_POST['anti_spam_ver_ques_5']) ? $_POST['anti_spam_ver_ques_5'] : '',
'anti_spam_ver_ans_5' => !empty($_POST['anti_spam_ver_ans_5']) ? $_POST['anti_spam_ver_ans_5'] : '',


เปิดไฟล์ theme ที่ใช้ /Register.template.php ถ้าไม่มีให้ไปเปิดใน Default
หา
// Are there age restrictions in place?

เอาไว้ก่อนที่หา
// Are there any verification questions to answer?
if (!empty($modSettings['anti_spam_ver_enable']))
{
if (!empty($modSettings['anti_spam_ver_ques_1']))
echo '
<tr valign="top">
<td width="40%">
<b>', $modSettings['anti_spam_ver_ques_1'], ':</b>
</td>
<td valign="top">
<input type="text" name="anti_spam_ver_resp_1" size="30" tabindex="', $context['tabindex']++, '" />
</td>
</tr>';
if (!empty($modSettings['anti_spam_ver_ques_2']))
echo '
<tr valign="top">
<td width="40%">
<b>', $modSettings['anti_spam_ver_ques_2'], ':</b>
</td>
<td valign="top">
<input type="text" name="anti_spam_ver_resp_2" size="30" tabindex="', $context['tabindex']++, '" />
</td>
</tr>';
if (!empty($modSettings['anti_spam_ver_ques_3']))
echo '
<tr valign="top">
<td width="40%">
<b>', $modSettings['anti_spam_ver_ques_3'], ':</b>
</td>
<td valign="top">
<input type="text" name="anti_spam_ver_resp_3" size="30" tabindex="', $context['tabindex']++, '" />
</td>
</tr>';
if (!empty($modSettings['anti_spam_ver_ques_4']))
echo '
<tr valign="top">
<td width="40%">
<b>', $modSettings['anti_spam_ver_ques_4'], ':</b>
</td>
<td valign="top">
<input type="text" name="anti_spam_ver_resp_4" size="30" tabindex="', $context['tabindex']++, '" />
</td>
</tr>';
if (!empty($modSettings['anti_spam_ver_ques_5']))
echo '
<tr valign="top">
<td width="40%">
<b>', $modSettings['anti_spam_ver_ques_5'], ':</b>
</td>
<td valign="top">
<input type="text" name="anti_spam_ver_resp_5" size="30" tabindex="', $context['tabindex']++, '" />
</td>
</tr>';
}


ค้นหา
</tr><tr class="windowbg2">
<td width="100%" colspan="2" align="center">
<hr />
</td>
</tr><tr class="windowbg2" valign="top">


แทนที่ด้วย
</tr>
</table>
</td>
</tr>
<tr class="titlebg">
<td align="center">', $txt['anti_spam_ver_title'], '</td>
</tr>
<tr class="windowbg2">
<td align="center">
<table border="0" cellspacing="0" cellpadding="4" align="center" width="100%">
<tr class="windowbg2">
<th width="50%" align="right">
<label for="anti_spam_ver_enable_check">', $txt['anti_spam_ver_enable'], '</label>:
</th>
<td width="50%" align="left">
<input type="checkbox" name="anti_spam_ver_enable" id="anti_spam_ver_enable_check"', !empty($modSettings['anti_spam_ver_enable']) ? ' checked="checked"' : '', ' class="check" />
</td>
</tr><tr class="windowbg2">
<td colspan="2">', $txt['anti_spam_ver_descr'], '</td>
</tr><tr class="windowbg2">
<td width="50%" align="center">
<b>', $txt['anti_spam_ver_ques_col'], '</b>
</td>
<td width="50%" align="center">
<b>', $txt['anti_spam_ver_ans_col'], '</b>
</td>
</tr><tr class="windowbg2">
<td width="50%" align="right">
<input type="text" name="anti_spam_ver_ques_1" id="anti_spam_ver_ques_1_input" value="', !empty($modSettings['anti_spam_ver_ques_1']) ? $modSettings['anti_spam_ver_ques_1'] : '', '" size="60%" maxlength="60" />
</td>
<td width="50%" align="left">
<input type="text" name="anti_spam_ver_ans_1" id="anti_spam_ver_ans_1_input" value="', !empty($modSettings['anti_spam_ver_ans_1']) ? $modSettings['anti_spam_ver_ans_1'] : '', '" size="60%" maxlength="60" />
</td>
</tr><tr class="windowbg2">
<td width="50%" align="right">
<input type="text" name="anti_spam_ver_ques_2" id="anti_spam_ver_ques_2_input" value="', !empty($modSettings['anti_spam_ver_ques_2']) ? $modSettings['anti_spam_ver_ques_2'] : '', '" size="60%" maxlength="60" />
</td>
<td width="50%" align="left">
<input type="text" name="anti_spam_ver_ans_2" id="anti_spam_ver_ans_2_input" value="', !empty($modSettings['anti_spam_ver_ans_2']) ? $modSettings['anti_spam_ver_ans_2'] : '', '" size="60%" maxlength="60" />
</td>
</tr><tr class="windowbg2">
<td width="50%" align="right">
<input type="text" name="anti_spam_ver_ques_3" id="anti_spam_ver_ques_3_input" value="', !empty($modSettings['anti_spam_ver_ques_3']) ? $modSettings['anti_spam_ver_ques_3'] : '', '" size="60%" maxlength="60" />
</td>
<td width="50%" align="left">
<input type="text" name="anti_spam_ver_ans_3" id="anti_spam_ver_ans_3_input" value="', !empty($modSettings['anti_spam_ver_ans_3']) ? $modSettings['anti_spam_ver_ans_3'] : '', '" size="60%" maxlength="60" />
</td>
</tr><tr class="windowbg2">
<td width="50%" align="right">
<input type="text" name="anti_spam_ver_ques_4" id="anti_spam_ver_ques_4_input" value="', !empty($modSettings['anti_spam_ver_ques_4']) ? $modSettings['anti_spam_ver_ques_4'] : '', '" size="60%" maxlength="60" />
</td>
<td width="50%" align="left">
<input type="text" name="anti_spam_ver_ans_4" id="anti_spam_ver_ans_4_input" value="', !empty($modSettings['anti_spam_ver_ans_4']) ? $modSettings['anti_spam_ver_ans_4'] : '', '" size="60%" maxlength="60" />
</td>
</tr><tr class="windowbg2">
<td width="50%" align="right">
<input type="text" name="anti_spam_ver_ques_5" id="anti_spam_ver_ques_5_input" value="', !empty($modSettings['anti_spam_ver_ques_5']) ? $modSettings['anti_spam_ver_ques_5'] : '', '" size="60%" maxlength="60" />
</td>
<td width="50%" align="left">
<input type="text" name="anti_spam_ver_ans_5" id="anti_spam_ver_ans_5_input" value="', !empty($modSettings['anti_spam_ver_ans_5']) ? $modSettings['anti_spam_ver_ans_5'] : '', '" size="60%" maxlength="60" />
</td>
</tr>
</table>
</td>
</tr>
<tr class="titlebg">
<td align="center">', $txt['anti_spam_ver_coppa'], '</td>
</tr>
<tr class="windowbg2">
<td align="center">
<table border="0" cellspacing="0" cellpadding="4" align="center" width="100%">
<tr class="windowbg2" valign="top">


เปิดไฟล์ Modifications.english.php เอาไว้ก่อน ?>
$txt['anti_spam_ver_ans_col'] = 'Answer';
$txt['anti_spam_ver_coppa'] = 'COPPA';
$txt['anti_spam_ver_descr'] = 'If you want users to answer verification questions in order to stop spam bots you should setup a number of questions in the table below. You should pick relatively simple questions. Answers are not case sensitive. You may use BBC in the questions for formatting. To remove a question simply delete the contents of that line.';
$txt['anti_spam_ver_enable'] = 'Enable verification questions';
$txt['anti_spam_ver_failed'] = 'You did not answer the verification questions correctly.';
$txt['anti_spam_ver_ques_col'] = 'Question';
$txt['anti_spam_ver_title'] = 'Verification Questions';


เปิดไฟล์ Modifications.thai-utf8.php เอาไว้ก่อน ?> [แปลไทยให้แล้วครับ]

$txt['anti_spam_ver_ans_col'] = 'คำตอบ';
$txt['anti_spam_ver_coppa'] = 'COPPA';
$txt['anti_spam_ver_descr'] = 'หากคุณต้องการให้ผู้ใช้งานการตรวจสอบคำถามเพื่อป้องกัน Spam Bot คุณสามารถใส่คำถามและคำตอบในตารางด้านล่างนี้ คุณสามารถใช้  BBC ในการจัดรูปแบบคำถาม';
$txt['anti_spam_ver_enable'] = 'เปิดใช้งานระบบคำถามป้องกันสแปม';
$txt['anti_spam_ver_failed'] = 'คุณตอบคำถามไม่ถูกต้อง .';
$txt['anti_spam_ver_ques_col'] = 'คำถาม';
$txt['anti_spam_ver_title'] = 'การตรวจสอบคำถาม';
[direct=https://hostings.ruk-com.in.th]Ruk-Com Hosting (IAAS)[/direct]
[direct=https://ruk-com.cloud]Ruk-Com Cloud (PAAS)[/direct]
รีวิวโฮสติ่ง Ruk-Com  จากสมาชิก THAISEO

ไม่พอใจยินดีคืนเงินเต็มจำนวนทุกบริการ

pooh20240

แหล่งรวมสาว AV 18+ <== BAN USER ถาวร เรียบร้อย

loveloveaon


Webstory


engiblog.com

เยี่ยมจิงๆครับ ขอบคุณครับ
[direct=http://www.gap-hosting.com]เว็บโฮสติ้ง[/direct]
[direct=http://www.engiblog.com/linux-tricks/%E0%B8%84%E0%B8%B3%E0%B8%AA%E0%B8%B1%E0%B9%88%E0%B8%87-scp-scp-linux-command.html]คำสั่ง SCP[/direct]
[direct=http://www.tentech.co.th]วิทยุสื่อสาร[/direct]
[direct=http://www.worldwireradio.com]วิทยุสื่อสาร[/direct]
[direct=http://www.sahaphan2002.com]ถังขยะ[/direct]

ode1111

ขอเก็บไว้ครับ ขอบคุณท่านครับ +1 :wanwan017:

aonmicro

[direct=http://www.emagtravel.com]Emagtravel.com ข้อมูลท่องเที่ยวทั่วไทย[/direct]

L


thailoveyou


เก๋าลัดคุง

[direct=https://www.mescript.com/]Pc Game Download [/direct]
[direct=https://www.mescript.com/]Pc Game Download [/direct]
[direct=https://www.mescript.com/]Pc Game Download [/direct]
[direct=https://www.mescript.com/]Computer Programming and Knowledge make By MeScript.com.com [/direct]
[direct=https://www.mescript.com/]รับพัฒนาเว็บไซต์ + รับจดโดเมน + Hosting ราคาถูก [/direct]

onlyones

ภาพยืนยันของ SMF ใช้ไม่ได้หรือครับ ???

luna_tea

อ้างถึงจาก: onlyones ใน 09 พฤษภาคม 2010, 20:24:35
ภาพยืนยันของ SMF ใช้ไม่ได้หรือครับ ???

เอาไม่อยู่ครับ บอร์ดผมเลยลง plug-in ของ recapcha แทนตัวเก่าไปเลยตอนสมัคร เปิดมาเดือนกว่า ยังไม่เจอ spam ครับ

ตัว plug-in ชื่อ reCAPTCHA for SMF
http://custom.simplemachines.org/mods/index.php?mod=1044

ลงทะเบียนเพื่อรับ key ที่นี่
http://recaptcha.net/

nongmai

ขอบคุณมากครับ...ตอนนี้ผมตั้งค่าให้มีการแอคทีฟผ่านอีเมล์  :P

sutarn

ทำตามขั้นตอนบทความที่ 1แล้วแต่ไม่มีอะไรเกิดขึ้นเลยครับ :-X

tapo

ตอนนี้รู้สึก Spam ในประเทศจะมาแรงกว่าสแปมต่างชาติแหะ  :P

pizad_sura

อ้างถึงจาก: tapo ใน 09 มิถุนายน 2010, 15:29:01
ตอนนี้รู้สึก Spam ในประเทศจะมาแรงกว่าสแปมต่างชาติแหะ  :P

มีแต่คนไทยที่ทำร้ายกันเอง  :'( (มาจากกระทู้นู้น เหอๆๆ)

แต่ไอเดียดีมากเลยครับ ถ้าต้องกันคนต่างชาติมาสมัคร สำหรับ mod นี้  :wanwan019:

bsbblk77

[direct=http://www.myallmovie.com]ดูหนังออนไลน์[/direct][direct=http://www.myallmovie.com]หนังออนไลน์[/direct][direct=http://www.myallmovie.com]หนังฟรี[/direct][direct=http://www.mostdessert.com]dessert recipes [/direct][direct=http://www.mostdessert.com]how to make desserts[/direct]

beside

#17
ผมก็ว่า Spam ในไทยมันเยอะมากจริงๆ ไม่กล้าเปิด Auto แค่ธรรมดาก็เยอะอยู่แล้ว
คิดผิดหรือคิดถูกที่ทำเว็บ Digg  :P  

ขอบคุณมากครับ  100+1 = 101
ถ้าเรามองว่า...วิกฤติจะมาพร้อมกับบทเรียนดี ๆ เสมอ ก็ไม่มีเหตุอันใดที่จะต้องทุกข์ใจเพราะวิกฤติ
ตรงกันข้าม ควรจะขอบคุณวิกฤติเสียด้วยซ้ำที่เกิดขึ้นมาแต่ละครั้ง ก็ช่วยทำให้เรารู้จัก สร้างภูมิคุ้มกัน
ให้แก่ชีวิต และการทำงานอย่างรอบคอบ แยบคาย และมีความเข้าใจโลกและชีวิตเพิ่มขึ้น อย่างยากที่
จะหาได้ในยามปกติ

"พระมหาวุฒิชัย วชิรเมธี"

UbOT

สคริปนี้ผมม๊อดไว้เป็นที่เรียบร้อยแล้ว ไม่เคยประสบปัญหาต่างชาติเข้ามาโพสต์โปรโมทสินค้าอีกเลยครับ เว้นเสียแต่คนไทยจะมาโปรโมทสะเอง
Todaydroid.com เว็บแอนดรอยน้องใหม่ ฝากไว้ในอ้อมอกอ้อมใจทุกท่านด้วยนะครับ^^

เปิดบัญชีธนาคารออนไลน์ Paypal คลิกด้านล่าง

ngaidai.com

ขอบคุณมากครับ

ป้องกันได้ 100% จริงๆครับ ต่อไปก็ไม่ต้องกังวลอีกแล้วครับ
ร้านป้าสีนวล บ่อสร้าง เชียงใหม่ จำหน่าย [direct=http://www.srinuan.ngaidai.com/]กระเป๋าผ้าฝ้าย[/direct]
กระเป๋าผ้าไหม ของฝากของชำร่วย อื่นๆ ราคาเริ่มที่ 10 บาท
สั่งซื้อสินค้า โทร. 084-1236705 , Line ID: pasrinuan , facebook.com/pasrinuan

[direct=http://www.srinuan.ngaidai.com/][/direct]