Lengkap

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

}

?>

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

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

Kemahiran: Wordpress, PHP, HTML, Reka Bentuk Laman Web, Reka Bentuk Grafik

Tentang Klien:
( 428 ulasan ) Newport, Australia

ID Projek: #33666759

Dianugerahkan kepada:

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 Lagi

$36 AUD dalam sehari
(1387 Ulasan)
8.3

69 pekerja bebas membida secara purata $129 untuk pekerjaan ini

(666 Ulasan)
8.5
(403 Ulasan)
8.8
(316 Ulasan)
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 Lagi

$60 AUD dalam sehari
(665 Ulasan)
8.3
(647 Ulasan)
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 Lagi

$185 AUD dalam 5 hari
(377 Ulasan)
8.0
(623 Ulasan)
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] Lagi

$350 AUD dalam 4 hari
(161 Ulasan)
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 Lagi

$75 AUD dalam sehari
(174 Ulasan)
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 Lagi

$100 AUD dalam sehari
(205 Ulasan)
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 Lagi

$80 AUD dalam sehari
(237 Ulasan)
7.2
(118 Ulasan)
7.4
(310 Ulasan)
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 Lagi

$150 AUD dalam sehari
(177 Ulasan)
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 Lagi

$200 AUD dalam 7 hari
(49 Ulasan)
7.1
(178 Ulasan)
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 Lagi

$140 AUD dalam 2 hari
(305 Ulasan)
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 Lagi

$150 AUD dalam sehari
(98 Ulasan)
6.7
(212 Ulasan)
6.9
(158 Ulasan)
6.7