Forums

Really Simple CAPTCHA
Contact Form 7 + Really Simple Captcha on IIS servers (3 posts)

  1. Jacquesdancona
    Member
    Posted 4 months ago #

    Hi guys,

    Some users, like me, are hosted on IIS servers and our hosters can be very strict about using a htaccess file. Contact Form 7 in combination with really simple captcha won't work for (some of) us because it'll generate a htaccess file in /wp-content/uploads/wpcf7_captcha/ which will be detected and blocks the use of that folder.

    So, if anyone runs in to the problem of captcha images not showing while on IIS servers, the generated htaccess file could be the problem.

    @Takayuki Miyoshi
    Thanks for the great plugin. I know generating the htaccess files is done to guarantee some safety but for some users on IIS it just won't work. Could you include an option in wpcf7 or maybe a warning for users on IIS? (If you want to do some testing, I'll set up a clean WordPress install and give you access to it)

    Thanks!

    http://wordpress.org/extend/plugins/really-simple-captcha/

  2. Takayuki Miyoshi
    Member
    Plugin Author

    Posted 4 months ago #

    Simply removing the .htaccess file can't be a solution. To fix the issue, I need to know how you can guarantee both security and availability on IIS. If you have info, please let me know.

  3. Jacquesdancona
    Member
    Posted 4 months ago #

    Well, removing the htaccess and delete/rewrite some of your code to get it to work was a solution for me and might be a solution for others.

    I'd suggest to show a warning (best imho would be an option) to users on IIS with something about problems they could run into with the autogenerated htaccess while using Really Simple Captcha.

    You could use something like:

    $needle = 'Microsoft-IIS';
    $haystack = $_SERVER['SERVER_SOFTWARE'];
      if (strpos($haystack, $needle) !== false) {
      //On IIS
      } else {
      //Not on IIS
    }

Reply

You must log in to post.

About this Plugin

About this Topic