First, you should know that a image like that is very easy to read by almost any OCR. The first one is much more hard to crack.
Anyway, if you don’t want to hack the existing plugin, you can use Really Simple Captcha, it looks exactly like that.
In your form:
<?php
$captcha_instance = new ReallySimpleCaptcha();
$prefix = mt_rand();
$word = $captcha_instance->generate_random_word();
$image = $captcha_instance->generate_image($prefix, $word);
?>
<input type="text" name="captcha" id="captcha" value="" />
<input type="hidden" name="captcha-id" value="<?php echo $prefix; ?>" />
<img src="https://wordpress.stackexchange.com/questions/20665/<?php echo $image; ?>" width="72" height="24" />
after your form is submitted:
$captcha_instance = new ReallySimpleCaptcha();
if(!$captcha_instance->check($_POST['captcha_id'], $_POST['captcha'])) die('wrong captcha!');
// captcha ok, remove the image
$captcha_instance->remove($captcha_id);
Related Posts:
- Is there a plugin to protect downloads with recaptcha?
- Custom comment type maybe?
- Contact Form 7 plugin refreshing page on submit [closed]
- Download any file after submitting a form [closed]
- Adding a slider captcha to the comment system
- Contact Form 7 Get Image Function [closed]
- Submit form after reCaptcha is solved
- Is there a way to embed a Google Docs form in a page without using plugins?
- WordPress contact form 7 to show the form dropdown menus as like [closed]
- Not One ‘Contact Form Plugin’ will send email // Work
- how to insert a HTML form into a javascript popup?
- How do I add the same contact form to multiple wordpress sites and capture the response in one place or database?
- How to find out which plugin create captcha after login?
- reCAPTCHA on page template without plugin
- Contact Form 7 “non-selectable” options in a drop down [closed]
- Making a Contact Form 7 calendar entry “required” [closed]
- Website Captcha Error: The reCAPTCHA wasn’t entered correctly
- Elementor contact form doesn’t work: “Oops! I cannot send this email!”
- How to send custom mail when a user complete a specific form
- How to set From filed in contact form 7 Use Mail (2) auto responder
- how to create or rewrite files in wordpress plugin folder
- Can’t edit Contact Us form on front page
- Plugin Beauty Contact Popup Form with while loop
- Issue using form in Google app in mobile
- Missing Contact Form/Form Default Plugin in WordPress
- WordPress Site is Broken, Cannot see wp-admin page [closed]
- Is there a script to collect all hooks and filters provided by a plugin?
- How to manipulate the content within wp_head
- Getting error “Warning: mysql_query(): Can’t connect to local MySQL server through socket ‘FILEPATH/cccatalog-plugin.php on line 1656”
- Change in one place the data about the company, which are placed on several pages
- Programatically upload a file to be stored inside blob field in database, NOT on filesystem
- Woocomerce add info after order email prouct item
- Updating WordPress plugin admin panel footer text
- WordPress super admin login issue. (Automatically logout)
- How do I add a plugin dependency to my customized theme?
- WordPress – source link plugin – how to modify it?
- How WordPress core manage the plugin installation
- Flickering sidebar when scrolling page [closed]
- How to add table class for tables of TinyMCE advanced wordpress plugin? [closed]
- All in One SEO Pack error message
- Shortcode not working – quotes seems strange
- Displaying content based on drop-down menu selection sitewide
- How do I make a shortcode to display the shop name on Dokan?
- Background Music WP [closed]
- How to fix broken media library?
- WordPress failing to update plugins
- Image tooltip enable/disable
- Using custom fields for image alt and title
- DB Query not working in Plugin
- Remove Pagination for Product Category Pages WooCommerce
- Is there a plugin or a way in the wordpress that would let us have different versions of a post or page accessibe to users?
- Error trying to update plugins
- Get all the URLs of the pages that uses a specific shortcode
- WordPress permissions error with admin account
- Deactivation Hook does not remove database
- Looking for Gallery Plugin [closed]
- How to accept images at multiple sizes and aspect ratios and display as standardized image size / ratio?
- Notice: Undefined index: mtral_field_subscriber
- Why is my WordPress Plugin page requesting my FTP Login Credentials?
- Delete free version plugin will also delete premium plugin
- add seperate suffix for low price and high price in woocommerce
- WordPress Editor completely blank [closed]
- Moving FB comments at the end of page
- Change the layout of action links under the plugin names
- Assign all Post in Wp to a specific Category
- How can i add simple code in only in posts by function.php
- Passing Parameters from shortcode to enqueue script
- Get products list by url key in WordPress Woocommerce [closed]
- URL rewrite with external JSON query
- Cross Sells are not being shown in Cart Page. Please Help!
- Possibility to login without password
- How to display registered customer list as dropdown in WooCommerce checkout?
- Using custom php file for ajax url inside plugin
- How do I create a custom permalink structure for a page template
- How do I get the Payzone WooCommerce payment gateway plugin to show up in the settings? [closed]
- simple-job-board Plugin throws an error on live server [closed]
- Where Should i write the code for wordpress ajax voting?
- How to remove a class function from a plugin by using remove_action()?
- Sending HTML email containing custom fields to site users from WordPress
- How to get images using taxonomy ( WP Media Folder)
- Plugin – Admin menu page broken url
- Error with get_price (and others) in self-written plugin to show price
- Hide DIV if empty – Plugin Gallery
- Easy WP SMTP plugin test email failed
- How to modify or create custom contact form 7 select options [closed]
- How to update a local development plugin on a separate machine
- adding Adsense’s In-Article Ads between images of blog post
- How to Include Fields in Query String When Making Request of WordPress.org Plugin API?
- Custom plugin – load enqueue only for this plugin
- Export postmeta (custom fields)
- Creating a form and displaying entry data as a table
- Which filter/action should I use to serve content for “virtual” files
- Customizing a blog page layout
- Add “Featured Image” box in my plugin post page
- Error When Trying To Login [closed]
- Is it a standard to have an empty `index.php` in root of Plugin? [duplicate]
- unable to remove malware from wp website [closed]
- Sub Plugin deactivation when Parent Plugin deactivate
- Getting 400 Error: redirect_uri_mismatch when trying to grant permission to Gmail SMTP plugin
- How to change WooCommece variation data programmtically [closed]