A very simple trick I’ve been using with a surprisingly good success rate is this: Provide a text field that is hidden from human users with style="display: none"
, but with an enticing name like email
. Most bots will fill in something in this field, but humans can’t see it so they wont. At the server, just make sure the field is empty, else treat the submission as spam.
Related Contents:
- Why is using onClick() in HTML a bad practice?
- Event on a disabled input
- How to get value of selected radio button?
- Using an HTML button to call a JavaScript function
- Vue.js dynamic images not working
- Can I turn off antialiasing on an HTML element?
- Electron require() is not defined
- How do I create a link using javascript?
- Should setting an image src to data URL be available immediately?
- Show datalist labels but submit the actual value
- (change) vs (ngModelChange) in angular
- Clear icon inside input text
- How can I make a browser to browser (peer to peer) connection? [closed]
- Show and hide divs at a specific time interval using jQuery
- How to download a file without using element with download attribute or a server?
- How to bind Events on Ajax loaded Content?
- How to use Javascript to read local text file and read line by line?
- How to save image from canvas with CSS filters
- How to export html table to excel using javascript
- HTML5 canvas ctx.fillText won’t do line breaks?
- Can we refer to JavaScript variables across webpages in a browser session?
- Textarea that can do syntax highlighting on the fly?
- Creating SVG elements dynamically with javascript inside HTML
- javascript function name cannot set as click?
- JavaScript to scroll long page to DIV
- How to Select Element That Does Not have Specific Class
- Creating Dynamic button with click event in JavaScript
- How to play a video in a webview with android?
- HTML Mobile -forcing the soft keyboard to hide [duplicate]
- How to find the size of localStorage
- Addeventlistener with ajax not working well
- How do image preloaders work?
- How to add background-image using ngStyle (angular2)?
- Javascript regex returning true.. then false.. then true.. etc [duplicate]
- Preview images before upload
- Best JavaScript solution for client-side form validation and interaction? [closed]
- clearRect not working
- Why is the variable holding the input value always logged as empty?
- Javascript – .innerHTML changes auto close tags
- How to send variables from one file to another in Javascript? [duplicate]
- Save a pre element as PDF with CSS
- How to print a PDF from the browser
- Highcharts – issue about full chart width
- Get HTML code using JavaScript with a URL
- option.style.display = “none” not working in safari [duplicate]
- Multiple Select limit number of selection
- Load HTML page dynamically into div with jQuery
- Impossible to hide navigation bars in Safari iOS 7 for iPhone/iPod touch
- How to stop page load in html static page
- Can you target an elements parent element using event.target?