Completed

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

}

?>

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

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

Skills: WordPress, PHP, HTML, Website Design, Graphic Design

About the Client:
( 428 reviews ) Newport, Australia

Project ID: #33666759

Awarded to:

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 More

$36 AUD in 1 day
(1387 Reviews)
8.3

69 freelancers are bidding on average $129 for this job

(666 Reviews)
8.5
(403 Reviews)
8.8
(316 Reviews)
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 More

$60 AUD in 1 day
(665 Reviews)
8.3
(647 Reviews)
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 More

$185 AUD in 5 days
(377 Reviews)
8.0
(623 Reviews)
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] More

$350 AUD in 4 days
(161 Reviews)
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 More

$75 AUD in 1 day
(174 Reviews)
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 More

$100 AUD in 1 day
(205 Reviews)
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 More

$80 AUD in 1 day
(237 Reviews)
7.2
(118 Reviews)
7.4
(310 Reviews)
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 More

$150 AUD in 1 day
(177 Reviews)
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 More

$200 AUD in 7 days
(49 Reviews)
7.1
(178 Reviews)
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 More

$140 AUD in 2 days
(305 Reviews)
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 More

$150 AUD in 1 day
(98 Reviews)
6.7
(212 Reviews)
6.9
(158 Reviews)
6.7