In our Magento store, we watch a series of reviews of spam products. I recently installed the Fontis reCaptcha extension to add the reCaptcha form to the feedback form. In all my tests, this works great. A โrealโ user cannot submit a form without filling in the reCaptcha part. However, this did not fix the problem. We still get spam reviews. Interestingly, these spam reviews also do not have a star rating. One way or another, these spam bots can provide an overview without any necessary information and completely bypass the reCaptcha code. Any thoughts on how I can fix this?
I also tried to create a simple script that would send form fields to view the form URL in an attempt to bypass the logic (see below). I either canโt make it work, or it just canโt be done, but I am always redirected to the "Please enable cookies" page.
Verification of the submission of the verification form
<?php $curl_connection = curl_init('http://my.domain.com/review/product/post/id/2587/'); curl_setopt($curl_connection, CURLOPT_CONNECTTIMEOUT, 30); curl_setopt($curl_connection, CURLOPT_USERAGENT, "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)"); curl_setopt($curl_connection, CURLOPT_RETURNTRANSFER, true); curl_setopt($curl_connection, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($curl_connection, CURLOPT_FOLLOWLOCATION, 1); $post_data = array(); $post_data['ratings[5]'] = '21'; $post_data['nickname'] = 'mynick'; $post_data['title'] = 'my title'; $post_data['detail'] = 'My Review Content'; $post_items = array(); foreach ( $post_data as $key => $value) { $post_items[] = $key . '=' . $value; } $post_string = implode ('&', $post_items); curl_setopt($curl_connection, CURLOPT_POSTFIELDS, $post_string); $result = curl_exec($curl_connection); echo "Curl Info:<br><pre>"; print_r(curl_getinfo($curl_connection), true); curl_close($curl_connection); echo "<br>Result:<br>" . htmlentities($result) . "</pre><br>"; ?>
Brianvps
source share