Now the method / way anti auto submitter term or other code or humanity have also
Spam the preventer call has been used everywhere as the security measures
the form of automated programs designed to collect data
automatically as well.
This term may feel foreign in your ear, but I believe the method / how often you have this
found everywhere.
For example when you:
1. create / open new email account
2. fill in the comments of others website guestbook
3. send a comment on a particular webblog
4. fill repeatedly comment on the specific Shoutbox
5. download free program
6. to register on the discussion forums, mailing lists
7. using free services such as sending SMS, Live Chat, Instant Messaging
8. and others.
Usually the appearance is, Input Code Below and shown underneath
there is a mix numbers and the alphabet has diacak with the image format (sloping to the right-sloping to the left).
If you are interested, let's follow the simple program that I write in this article, written in php,
so you can try running it on localhost or your server for free hosting server that supports php script,
with the image library is also installed in it (basically everything is the default setting):
The program is divided into 2 files which are connected with a "session".
1. File a duty to do one pengacakan / randomizing numbers, then the number
sent to the browser into an image format (I called ANTISPAM.PHP).
2. File a duty to gather other information that the data filled in by the user, and then
data matched with the RESULT PENGACAKAN the first file above (read: ANTISPAM.PHP).
To understand the way / plot of this program, at least you have a basic pemograman php (or the other, php is very easy to learn)
and at least you understand the header-header protocol HTTP / 1.1.
to study the HTTP protocol, you can visit:
http://www.faqs.org/rfcs/rfc2616.html
If you have the protocol and the programming language you understand, you can make sure the web server program
although I doubt akan rival Apache, IIS, etc..
Next 2 source code files that I selipi line-line comment, so you understand what functions each "function" is:
1. File ANTISPAM.पीएचपी
/ / SESSION must be enabled to communicate with the FILE OTHER
session_start ();
/ / NUMBER MENCARI random 5 digit GETTING TO FIGURES
$ rand = rand (10000, 99999);
/ / GETTING THE FIGURES HAVE BEEN IN RANDOM AND IN HASHING, THEN stored in the SESSION
/ / THIS SESSION later will be sent to FILE FOR OTHER VERIFICATION
/ / This is the MOST IMPORTANT PART
$ _SESSION [ 'Image_random_value'] = md5 ($ rand);
/ / SIAP-SIAP MAKE IMAGES
$ image = imagecreate (60, 30);
/ / MAKE BACKGROUND IMAGES white
$ bgcolor = imagecolorallocate ($ image, 255, 255, 255);
/ / The text color is black
$ textColor = imagecolorallocate ($ image, 0, 0, 0);
/ / Leaving Earlier FIGURES TO THE FORMAT OF FIGURES
imagestring ($ image, 5, 5, 8, $ rand, $ textColor);
/ / === PART HTTP Header ==
/ / Always make HABIS MASA APPLY SESSION
header ( "expires: Mon, 26 Jul 1997 05:00:00 GMT");
header ( "Last-Modified:". gmdate ( "D, d MYH: i: s"). "GMT");
/ / HTTP/1.1
header ( "Cache-Control: no-store, no-cache, must-revalidate");
header ( "Cache-Control: post-check = 0, pre-check = 0", false);
/ / NO saved to cache
header ( "Pragma: no-cache");
/ / Let the browser, that this is IMAGES FILE
header ( 'Content-type: image / jpeg');
/ / === END OF HTTP Header ==
/ / === READ IN RFC 2616 -> http://www.faqs.org/rfcs/rfc2616.html
/ / MAKE IMAGES === == to the browser
imagejpeg ($ image);
/ / IMAGE OF exempt Memory ..
imagedestroy ($ image);
?>
2. FILE index.php
/ / SESSION must be enabled to communicate with the FILE OTHER
session_start ();
/ / IF METHOD POST Submitted
if (isset ($ _POST [ 'txtNumber'])) (
/ / INSERT FIGURES OF THE POST METHOD
$ number = $ _POST [ 'txtNumber'];
/ / IF YOU INSERT THE FIGURES THAT HAVE BEEN DIHASHING SAMA SAMA HASHING WITH FIGURES THAT HAVE BEEN
/ / Submitted Pics And A FILE VERIFICATION BENAR
if (md5 ($ number) == $ _SESSION [ 'image_random_value'])
echo "You have successfully entered the verification number";
else
echo "The number you entered. Try again ";
)
?>
Test image verification / Anti Auto Submitter / Spam Prevention / Humanity Code
Spam the preventer call has been used everywhere as the security measures
the form of automated programs designed to collect data
automatically as well.
This term may feel foreign in your ear, but I believe the method / how often you have this
found everywhere.
For example when you:
1. create / open new email account
2. fill in the comments of others website guestbook
3. send a comment on a particular webblog
4. fill repeatedly comment on the specific Shoutbox
5. download free program
6. to register on the discussion forums, mailing lists
7. using free services such as sending SMS, Live Chat, Instant Messaging
8. and others.
Usually the appearance is, Input Code Below and shown underneath
there is a mix numbers and the alphabet has diacak with the image format (sloping to the right-sloping to the left).
If you are interested, let's follow the simple program that I write in this article, written in php,
so you can try running it on localhost or your server for free hosting server that supports php script,
with the image library is also installed in it (basically everything is the default setting):
The program is divided into 2 files which are connected with a "session".
1. File a duty to do one pengacakan / randomizing numbers, then the number
sent to the browser into an image format (I called ANTISPAM.PHP).
2. File a duty to gather other information that the data filled in by the user, and then
data matched with the RESULT PENGACAKAN the first file above (read: ANTISPAM.PHP).
To understand the way / plot of this program, at least you have a basic pemograman php (or the other, php is very easy to learn)
and at least you understand the header-header protocol HTTP / 1.1.
to study the HTTP protocol, you can visit:
http://www.faqs.org/rfcs/rfc2616.html
If you have the protocol and the programming language you understand, you can make sure the web server program
although I doubt akan rival Apache, IIS, etc..
Next 2 source code files that I selipi line-line comment, so you understand what functions each "function" is:
1. File ANTISPAM.पीएचपी
/ / SESSION must be enabled to communicate with the FILE OTHER
session_start ();
/ / NUMBER MENCARI random 5 digit GETTING TO FIGURES
$ rand = rand (10000, 99999);
/ / GETTING THE FIGURES HAVE BEEN IN RANDOM AND IN HASHING, THEN stored in the SESSION
/ / THIS SESSION later will be sent to FILE FOR OTHER VERIFICATION
/ / This is the MOST IMPORTANT PART
$ _SESSION [ 'Image_random_value'] = md5 ($ rand);
/ / SIAP-SIAP MAKE IMAGES
$ image = imagecreate (60, 30);
/ / MAKE BACKGROUND IMAGES white
$ bgcolor = imagecolorallocate ($ image, 255, 255, 255);
/ / The text color is black
$ textColor = imagecolorallocate ($ image, 0, 0, 0);
/ / Leaving Earlier FIGURES TO THE FORMAT OF FIGURES
imagestring ($ image, 5, 5, 8, $ rand, $ textColor);
/ / === PART HTTP Header ==
/ / Always make HABIS MASA APPLY SESSION
header ( "expires: Mon, 26 Jul 1997 05:00:00 GMT");
header ( "Last-Modified:". gmdate ( "D, d MYH: i: s"). "GMT");
/ / HTTP/1.1
header ( "Cache-Control: no-store, no-cache, must-revalidate");
header ( "Cache-Control: post-check = 0, pre-check = 0", false);
/ / NO saved to cache
header ( "Pragma: no-cache");
/ / Let the browser, that this is IMAGES FILE
header ( 'Content-type: image / jpeg');
/ / === END OF HTTP Header ==
/ / === READ IN RFC 2616 -> http://www.faqs.org/rfcs/rfc2616.html
/ / MAKE IMAGES === == to the browser
imagejpeg ($ image);
/ / IMAGE OF exempt Memory ..
imagedestroy ($ image);
?>
2. FILE index.php
/ / SESSION must be enabled to communicate with the FILE OTHER
session_start ();
/ / IF METHOD POST Submitted
if (isset ($ _POST [ 'txtNumber'])) (
/ / INSERT FIGURES OF THE POST METHOD
$ number = $ _POST [ 'txtNumber'];
/ / IF YOU INSERT THE FIGURES THAT HAVE BEEN DIHASHING SAMA SAMA HASHING WITH FIGURES THAT HAVE BEEN
/ / Submitted Pics And A FILE VERIFICATION BENAR
if (md5 ($ number) == $ _SESSION [ 'image_random_value'])
echo "You have successfully entered the verification number";
else
echo "The number you entered. Try again ";
)
?>
Test
Tidak ada komentar:
Posting Komentar