honeypot

Setup Fail2ban for a specifc url

萝らか妹 提交于 2021-01-29 10:30:29
问题 For shits and giggles I created a small honepot php script. If it is called from a webpage, I want to simply put the IP address in jail. I created a filter that looks like this filename: apache-specific-url.conf [INCLUDES] before = apache-common.conf [Definition] failregex = ^<HOST> -.*"(GET|POST).*\/sshlogin.php\/.*$ ignoreregex = I've also put the following into my jail.local [apache-specific-url] enabled = true port = http,https filter = apache-specific-url logpath = %(apache_access_log)s

Html form with php validation and honeypot

限于喜欢 提交于 2020-02-07 04:13:09
问题 Ok here is what I got, I have a web site that is built in html,css,JS. I also have a form on the contact us page, below is the code for the form. Also with this I have a php form validation with a honeypot on it. When I submit the form, if done in 7sec or less it wont submit the form. The time can be adjusted to page loading. The issue I am having is when the submit button is clicked, it goes to a 404 page. I feel the issue is in me action of the form but I am not 100% sure. Any help would be

How do I add Honey pot fields to my forms?

吃可爱长大的小学妹 提交于 2019-12-29 06:43:32
问题 I've been reading about adding Honey pot fields to my forms for combating bots/spam. Only problem is theirs no guides or anything on where to start. Many sites say to make a field that is hidden that only the spam bot would fill out. But as I'm new to this, don't know where I would start in my application. Could anyone give me the advice on how to set this up? I am trying to make my Devise registration page use honey pot fields. 回答1: The basic idea behind honeypot captchas is that you have a

Honeypot PHP for Comment Form

三世轮回 提交于 2019-12-22 17:47:55
问题 I am creating a jquery ajax popup comment form, but am having a problem with the way Im setting up my "honeypot" in php. The honeypot ($robotest) isn't working; instead the script returns "E-mail is not correct". Can anyone point out my error? Thank you The html form is: <form class="cmxform" id="commentForm" method="POST" action=""> <p> <label for="cname">Name</label> <input id="cname" name="name" size="25" class="required" minlength="2" /> </p> <p> <label for="cemail">E-Mail</label> <input

Zend Honeypot Validation

 ̄綄美尐妖づ 提交于 2019-12-13 00:35:16
问题 On my bootstrap I don't have a class, it's a simple php file: I have added there: $loader = Zend_Loader_Autoloader::getInstance (); $loader->setFallbackAutoloader ( true ); $loader->suppressNotFoundWarnings ( false ); //resource Loader $resourceLoader = new Zend_Loader_Autoloader_Resource(array( 'basePath' => APPLICATION_PATH, 'namespace' => '', )); $resourceLoader->addResourceType('validate', 'validators/', 'My_Validate_'); $loader->pushAutoloader($resourceLoader); Then, in application

PHP form - with validation honeypot

旧巷老猫 提交于 2019-12-05 04:32:29
问题 I have the below for that works well, but is open for spam bots. I want to put in a honeypot, not a captcha. The code below works with the validation for the name, email, message, but I can not get it to work with the honeypot. Can anyone look at the "honeypot" code and tell me how to fix it? I would like for the form to give an $success2 = "No Spamming allowed" that acts like the form was submitted, but does not actually submit the form. Thanks The Form: <form id="contactform" action="send2

PHP form - with validation honeypot

落爺英雄遲暮 提交于 2019-12-03 21:16:32
I have the below for that works well, but is open for spam bots. I want to put in a honeypot, not a captcha. The code below works with the validation for the name, email, message, but I can not get it to work with the honeypot. Can anyone look at the "honeypot" code and tell me how to fix it? I would like for the form to give an $success2 = "No Spamming allowed" that acts like the form was submitted, but does not actually submit the form. Thanks The Form: <form id="contactform" action="send2.php" method="post"><div id="success"></div><div id="error"></div> <label for="name">Name:</label><input

Honeypot implementation

删除回忆录丶 提交于 2019-12-03 13:49:40
问题 Trying to filter out spam from an online form. I have a hidden div with an input. The idea is that if something goes into the field, the form will ID the user as a bot and reject the submission. After trying to implement this method, the bots are still getting through. I'm not very familiar with javascript (or spam-filtration, for that matter) - here's what I'm working with: html (within the form): <form action="#" method='post' id='vsurvey' name='defer'> <div id="hp-div"> If you see this,

Honeypot implementation

荒凉一梦 提交于 2019-12-03 03:52:48
Trying to filter out spam from an online form. I have a hidden div with an input. The idea is that if something goes into the field, the form will ID the user as a bot and reject the submission. After trying to implement this method, the bots are still getting through. I'm not very familiar with javascript (or spam-filtration, for that matter) - here's what I'm working with: html (within the form): <form action="#" method='post' id='vsurvey' name='defer'> <div id="hp-div"> If you see this, leave this form field blank and invest in CSS support. <input type="text" name="question_20579" value=""

Better Honeypot Implementation (Form Anti-Spam)

我们两清 提交于 2019-11-27 10:16:34
How do we get rid of these spambots on our site? Every site falls victim to spambots at some point. How you handle it can effect your customers, and most solutions can discourage some people from filling out your forms. That's where the honeypot technique comes in. It allows you to ignore spambots without forcing your users to fill out a captcha or jump through other hoops to fill out your form. This post is purely to help others implement a honeypot trap on their website forms. Update: Since implementing the below honeypot on all of my client's websites, we have successfully blocked 99.5%