Завершен

Secure simple registration form

I have a simple registration form that bots are adding 10 or so a day to.

I need the form secured against bots. it should be only 1 to 2 hours work

Your task is:

If post code is not 4 numbers then fail

if country is not AUS the fail

HONEY POT

This method relies on the assumption that SPAM software doesn't recognize CSS and/or JavaScript. The "honey pot" technique use a non-visible field to fool the less-intelligent robots whos automatically fills out all the input fields prior to submit the form data for further processing.

CSRF TOKEN

Synchronizer token pattern uses a unique token that is embedded into the HTML forms and verified on the server side. The CSRF token should be a random value that is hard to predict, preferably generated by a cryptographical algorithm. This is how to build a CSRF token:

==================================

Mention SKY in the comments or your bid will be ignored. The task will be compleat when bots are not doing fake registrations

example code is below for adding the above

====================================

HONEY POT

This method relies on the assumption that SPAM software doesn't recognize CSS and/or JavaScript. The "honey pot" technique use a non-visible field to fool the less-intelligent robots whos automatically fills out all the input fields prior to submit the form data for further processing.

<form action="[login to view URL]" method="post">

<p>

<label>Name</label>

<input type="text" name="your_name">

</p>

<p>

<label>Email</label>

<input type="email" name="your_email">

</p>

<p class="fax">

<label>Fax</label>

<input type="text" name="your_fax">

</p>

<p>

<label>Comment</label>

<textarea name="your_comment"></textarea>

</p>

<p>

<button type="submit">Submit</button>

</p>

</form>

Then use CSS to hide the "honey pot" from your form so visitors are not able to see and fill it.

<style>

.fax {

display: none;

}

</style>

You can also use JavaScript to assure yourself this input field will not harm your form.

<script>

[login to view URL]('.fax').[login to view URL] = 'none';

</script>

So, if visitors can't see and fill the non-visible input fields we can consider that the form submission with not empty fax is spam.

<?php

// [login to view URL]

if (!empty($_POST['fax'])) {

// It's SPAM

}

?>

==============================================

2 ==============================================

CSRF TOKEN

Synchronizer token pattern uses a unique token that is embedded into the HTML forms and verified on the server side. The CSRF token should be a random value that is hard to predict, preferably generated by a cryptographical algorithm. This is how to build a CSRF token:

<?php

// PHP 7

$token = bin2hex(random_bytes(32));

// PHP 5.3 with mcrypt

$token = bin2hex(mcrypt_create_iv(32, MCRYPT_DEV_URANDOM));

// PHP 5.3 with openssl

$token = bin2hex(openssl_random_pseudo_bytes(32));

// PHP 4

$token = base64_encode(time() . sha1($_SERVER['REMOTE_ADDR'] . $_SERVER['HTTP_USER_AGENT']) . md5(uniqid(rand(), true)));

// Store the token into a session variable!

$_SESSION['token'] = $token;

?>

Then include the token into your HTML form.

<form action="[login to view URL]" method="post">

<input type="hidden" name="token" value="<?php echo $token; ?>">

</form>

To validate a token you must compare the form value with the session value.

<?php

// [login to view URL]

if ($_SESSION['token'] !== $_POST['token']) {

// It's SPAM

}

?>

=================================================

=================================================

Навыки: WordPress, PHP, HTML, Дизайн сайтов, Графический дизайн

О клиенте:
( 428 отзыв(-а, -ов) ) Newport, Australia

ID проекта: #33666759

Поручен:

sureshdevi

SKY, Hello, I will use Honey Pot method or Arithmetic captcha in your simple registration form. I will complete this work in a day. Looking forward to your reply to start this work immediately. I am available online f Больше

$36 AUD за 1 день
(1387 отзывов(-а))
8.3

69 фрилансеров(-а) готовы выполнить эту работу в среднем за $129

(666 отзывов(-а))
8.5
(403 отзывов(-а))
8.8
(316 отзывов(-а))
8.3
evgendob

Hello. WordPress development expert ready to help you with a form modification. I have more than 400 good reviews and more than 11 years of development experience behind, so all job will be done with the best quality a Больше

$60 AUD за 1 день
(665 отзывов(-а))
8.3
(647 отзывов(-а))
7.9
Brightinfotech3

Dear Sir/Mam, I Hope you are doing well..!!! I have gone through your project detail as per my understanding we need design and develop Secure simple registration form based on your requirement. For more discussion Больше

$185 AUD за 5 дней(-я)
(377 отзывов(-а))
8.0
(623 отзывов(-а))
8.0
AltiuseCreaton

Hi, I can make secured your registration forms. Let me know when you here to discuss more in detailed about Job. I am having 10 years experience on PHP development. You can check my profile : [login to view URL] Больше

$350 AUD за 4 дней(-я)
(161 отзывов(-а))
7.6
ecommercejui

Hi, I understand and I am highly interested to secure the registration form. I'm an experienced web developer with the necessary skills for getting this job done. I am available to start immediately. I will provide a g Больше

$75 AUD за 1 день
(174 отзывов(-а))
7.5
fenilrana129

Hello I can definitely help you to create registration form according to the methods which you have mentioned, I am an experienced full-stack PHP developer with over 4 years of experience and I have worked on various Больше

$100 AUD за 1 день
(205 отзывов(-а))
7.5
amutinda

Hi There, Thanks for the project. I have carefully read and understood your requirements. I am well experienced Web developer and can confidently and professionally implement the above security checks on your form and Больше

$80 AUD за 1 день
(237 отзывов(-а))
7.2
(118 отзывов(-а))
7.4
(310 отзывов(-а))
7.0
imTuyen

Hi Chris. I can do this project. I am a professional Linux and developer in PHP, Wordpress, Laravel, Magento, Joomla, Prestashop, OpenCart, Yii, NodeJS, Angular, Vue.js, HTML5, CSS3 and jQuery. I can do this project. P Больше

$150 AUD за 1 день
(177 отзывов(-а))
6.9
maxpl

Hi, Hope you are doing great. I am an experienced web and mobile app developer. I have 8+ years of experience in webdesign/development and Mobi Больше

$200 AUD за 7 дней(-я)
(49 отзывов(-а))
7.1
(178 отзывов(-а))
7.1
glb1234

★★★★★★ START NOW ★★★★★★ Message me so we talk in detail.. Hello, Good day. I can do your job "Secure simple registration form " perfectly. please messsage me so we talk in detail ! MOST:---- FIRST CHECK MY WORK AFTE Больше

$140 AUD за 2 дней(-я)
(305 отзывов(-а))
7.1
Waqaskhan591

SKY Hello Dear, I have read and checked your Project details, I have 12+ Years Of Professional Experience in Website Development and Designing. I will make your form fully secure as per your needs and requirements. Th Больше

$150 AUD за 1 день
(98 отзывов(-а))
6.7
(212 отзывов(-а))
6.9
(158 отзывов(-а))
6.7