����Υʥ�å��١��� | Knowledge Base Weblogs space
HOME �� Blogs index �� Blog/�֥��� ��� space
space space
space
space
space
space
December 24, 2004 space
 
 
space
space

�����ȥ��ѥ��к�������������cgi�������ޥ�����

space

�����ȥ��ѥ�����ϡ�MovableType���֥������δ֤�¿�����Ѥ���Ƥ��뤿��Ǥ��礦����MovableType�Υ����ȵ�ǽ����Ϥ������ѥޡ��ȼ�ã�������ȥ��ѥ�ץ�������������Ƽ�ưŪ�ˤ���ޤ�ξ���ʥ����Ȥ�ή������Ǥ���ޤ��������Ȥ��Ѥ��ƥ��ѥ๭������ˤ��������¿ȯ���Ƥ��ޤ�����


������¿���������ȥ��ѥ�ʥ��ѥॳ���ȤȤ�����ޤ����ˤȤ��ơ����פʥ����Ȥ�MovableType �� comments.cgi ��ľ��ή�����ॹ����ץȤǡ�¿������ʸ�Υݡ������Ȥ���Ҳ𤹤륳���ȥ��ѥ�԰٤�Ԥ���ΤǤ���
��

space

��
�����ܤǤ⥳���ȥ��ѥ��ɸŪ����¿���Υ֥��������Ȥ��ﳲ������Ƥ��ޤ������к��Ȥ������ܸ줷�������դ��ʤ��褦�ˤ��륢���ǥ��ǡ������ȥ��ѥ��к����Ԥ��Ƥ���褦�Ǥ�������������Ϥ����̣�֥����κ����Ԥ����ˤʤäƤ��ޤ��Τ��ȻפäƤ��ޤ������ºݡ�����������������ɤʥ����Ȥ򤤤��������⤢��Τǡ���äȤ�����ˡ�Ϥʤ���ΤǤ��礦����

��
�����ѥޡ�����Ū�Ϲ���Ǥ����顢���������Ŭ���ʤۤ���ա� Your site is great.�٤ʤɤȰ�֤��줷���ʤ륳���Ȥ������ΤǤ�����URL��ˤϹ������URL�����㤫�ꥻ�åȤ���Ƥ��ޤ������������ξ��Ǥ�ï��������å�����ɬ�פ��ʤ��ơ�¿���Υ����Ȥ˥�󥯤���Ƥ�����Ǥ��Υڡ����ʥ����ȡˤ����������Ⱦ�̤˰��֤��뤳�Ȥ��Ǥ���С���������ǽ�ʬ���̤����ԤǤ������Ǥ���


���Ǥ�URL���̵�����С��Ȼפ��Ǥ��礦������������ɤ���������Υ����Ȥ�Ǥ����顢������ǤϤ���ޤ��󤬡������ۤ�Τ�������ɤ����Υڡ����˥�󥯤��ʤ��Τϼ���ʤ��ȤǤ��礦��


�����ơ����ѥޡ��Ȥ��襤�ˤ����ơ������ȥ��ѥ�����κ��Ϥʤ����ȡ�¿�����⳰�Υ֥������������Υ����ǥ���ץ饰����򸫤Ƥߤޤ�����õ���Ƥߤ�ȡ���Comment Spam Quick Fix�פ���Ũ�ʥ����ǥ��Υ����ȥ��ѥ��к����Ҳ𤵤�Ƥ��ޤ�����


���������ƤȤϡ���������ƻ��˥�ˡ����ʥѥ�᡼�����ղä��뤳�Ȥǡ����Υѥ�᡼�������ղä��줿�����Ȱʳ��ϡ��ץ������ǥ����Ȥ���դ��ʤ��Ȥ������ȤߤǤ������λ��Ȥߤ��ɤ��Ȥ����ϡ����ɤʼ�ư�ǥ����Ȥ����Ϥ��Ƥ��������������ϲ����Լ�ͳ��ʤ����ѤǤ����ץ������Ǿ����ή������䤫�餫��ϼ������Ǥ���Ȥ����Ǥ��礦�����Ȥߤ�ñ��Ǥ������̤����硪


�������������ʤΤϡ�Movable Type���Ϥǥ������ޥ������ʤ���Ф����ʤ����Ǥ��礦���ץ�����ॹ����򤪻��������ʤ�в��ζ��ʤ��Ǥ��뤳�ȤǤ⡢���ͤ��Ǥ������ǤϤ���ޤ���

����ǽ�ʸ¤�ݥ���Ȥ����Τˤ��Ƶ��ܤ��Ƥߤޤ�����


��This approach will require you modifying the following MT templates:
�������к���Ԥ��ˤϡ��ޤ��ʲ���MT�ƥ�ץ졼�Ȥ˥ѥ�᡼�������ղä���ɬ�פ�����ޤ���


Individual data entry
Comment Listing Template
Comment Preview Template
Comment Error Page

You��ll be adding the following field, on the line before the ��/form�� tag: �嵭�Υƥ�ץ졼�Ȥˤ����form��ȡ�/form��δ֤�input�����ǥѥ�᡼�������ɲä��ޤ��� �ѥ�᡼������ʣ�����åȤ���ȸ���Ū�Ǥ���

����name="spammer"��name="spamming"�ϡ��Ƽ���ˡ����ʥѥ�᡼�����åȤ��Ƥ��顢��form��ȡ�/form��˥��åȤ��Ƥ���������


��MT3.���ʹߤ����Ѥξ��ˤϡ������Ȥ�Preview����ɽ�����ޥ�ɤ���������������ޤ�Ƥ��ޤ���
��MT�򥻥åȤ���cgi�ǥ��쥯�ȥ꡼ lib > MT > Template > Context.pm����������ɬ�פ�����ޤ���
��MT3.1���ξ�硢�饤��1265��1347�μ��˾嵭input�ѥ�᡼�����򥻥åȤ���ɬ�פ�����ޤ���

�����ȥץ�ӥ塼�Υ�å����������ܸ�����ѤǤ��ʤ����ᡢ��ǰ�ʤ���Ѹ�ɽ���ΤޤޤȤʤ�ޤ���

Next, open your mt-comments.cgi (or mt-comments.pl) file and add the following code just after the ��use strict;�� line:

���ˡ�mt-comments.cgi��(�ޤ��ϡ�mt-comments.pl) ��"use strict;"ʸ�Τ������˰ʲ����ɲä��ޤ���


use CGI qw(:standard);
if ($ENV{��REQUEST_METHOD'} eq "POST") {
my $data = param('spammer');
my $data = param('spamming');
die unless ($data);
}

��spamme��spamming��ɬ����ˡ������ȼ��Υѥ�᡼���Ȥ��Ƥ��������������¿��������Ʊ���ѥ�᡼�������Ѥ��Ƥ���ȥ��ѥ�ȼԤ����Ϥ��ơ�¿��������ץȤ�ή���԰٤��ޤ����Ԥ��Ƥ��ޤ��ޤ���


�����Υ������ޥ��������˸��̤�⤯����¤�Υꥹ����cgi��Хå����åפ��ʤ���Ԥ��С��������ٸ��褦���ޤͤǽ����Ȼפ��ޤ���


��Six Apart�ˤϡ�mt.cfg�ʤɽ��������˥�ˡ����ʥѥ�᡼�����򥻥åȤ��Ƥ����С���ư��cgi�ƥ�ץ졼�Ȥ�cgi��Ҥ����������ɤ˥��åȤ��Ƥ����褦�ʻ��Ȥߤ�Ƴ�����Ƥ�餤������ΤǤ���


������Dz�Ŭ�ʥ֥����饤�դ�¿����Ƴڤ��ߤ�����ΤǤ��͡�


space
HOME �� News Blogs �� Blog/�֥��� | December 24, 2004 |  twitter Livedoor Buzzurl �ϤƤ� Yahoo!�֥å��ޡ����ͤ���Ͽ
space


space Entries of this Category
space

  Next ��� Movable Type 3.14��2005ǯ1����� ��� 

��2004ǯ12��24���ˡ�SixApart����Movable Type 3.14��2005ǯ1����󶡤���ȥ�꡼����ȯɽ����Ƥ��ޤ����������˥����ȥ��ѥ�ʤɤ��к���Ԥ�...»��������򸫤��


  Previous ��� ���ܸ�ɥᥤ�� ���ӤǤ����Ѳ�ǽ�ˡ� ��� 

�����ܸ�ɥᥤ�󤬻Ϥޤä������ˡ��������äǤ����Ѥβ�ǽ������ꤶ������Ƥ��ޤ���������äȷ������äǤ����ѤǤ���Ķ���·�äƤ������Ǥ��� ����̳��.jp�ס�����.jp�פ�UR... »��������򸫤��


space
space
Welcome to knowledgeBase  Blogs  ��TOP