JTC Anti-Spam|Anti-Hacker – Read Me First

Home Forums BulletProof Security Pro JTC Anti-Spam|Anti-Hacker – Read Me First

Viewing 10 posts - 61 through 70 (of 70 total)
  • Author
  • #31199
    AITpro Admin

    @ Krzysztof – Great! 😉

    Mohamad Hegazy


    how can i force bps pro jtc captcha to show in different php templates

    or in specific woocommerce place under password text area directly as it’s by default uses hooks which put it under the total form before submitting button

    what’s the code to use <P class=*> * </p> etc

    thank you

    AITpro Admin

    @ Mohamad Hegazy – Yes, you are correct that JTC uses Hooks – Actions and Filters to hook into these Forms:  WordPress Forms (Login, Registration, Lost Password, Comments), BuddyPress, bbPress (Login, Registration and Activation) and WooCommerce Forms (Login and Registration).

    To load JTC in other Forms you would either need to hook into other Hooks in other php templates or hard code JTC into those other php templates.  See example hard coded JTC code below.

    To change CSS you would need to do something like the CSS changes for the Comments Form > See “Comment Form CSS Styling” at the beginning of this Forum topic.

    Important Notes: 
    I can only give you general examples and cannot actually assist you with building a new plugin or form, etc.  😉
    If you use the WordPress setting that requires users to be registered and logged into your website then spammers and hackers would be stopped at Registrations and Logins and you would not really need to create custom JTC CAPTCHA’s anywhere else.

    Example hard coded JTC code:
    Notes: You would need to manually copy the parts of JTC code from the login-security.php file that are used in Form Processing (note this example code below uses code from another plugin and some of the BPS JTC code modified and combined together):

    if ( isset( $_POST['doRegister'] ) ) {
    if ( $_POST['reference'] != $BPSoptionsJTC['bps_tooltip_captcha_key'] || $_POST['captcha'] != '' ) {
    //$err = urlencode("ERROR: Incorrect CAPTCHA Entered. Click your Browser back button and enter the captcha.");
    $err = "ERROR: Incorrect CAPTCHA Entered. Click your Browser back button and enter the captcha.";
    header("Location: register.php?msg=$err");
    echo '<div class="error">';
    echo $err;
    echo '</div>';

    Other code manually added into another plugin’s form page/template:

    		// This is the CAPTCHA Form Field
    		$reference = ( isset( $_POST['reference'] ) ) ? $_POST['reference'] : '';
    		// SpamBot Trap/Decoy Form Field 
    		$captcha = ( isset( $_POST['captcha'] ) ) ? $_POST['captcha'] : '';

    Other Code used in the Form code for another plugin:

    <td><label for="reference"><?php echo 'Enter CAPTCHA: <strong><font color="blue">xcode555</font></strong>'; ?></td>
    <td><input type="text" name="reference" id="reference" class="input" size="33" title="<?php echo $BPSoptionsJTC['bps_tooltip_captcha_hover_text']; ?>" value="<?php echo esc_attr(stripslashes($reference)); ?>" /></label>
    <input type="text" name="captcha" id="captcha" class="input" value="<?php echo esc_attr(stripslashes($captcha)); ?>" style="display: none;" /></td>

    changed jtc anti spam code but now get incorrect captcha entered

    AITpro Admin

    Are your JTC CAPTCHA and JTC ToolTip plugin option settings the same as the CAPTCHA you are entering.  Those things need to match of course.


    I renamed plugin logged in and put another jtc captcha now works, but yes both were the same



    For my site where I have members logging in, I don’t wish for them to enter a CAPTCHA (they use an Elementor widget from the menu bar) but I would like to use the CAPTCHA for the admins who login via the standard wp-login.php.

    When the CAPTCHA is enabled for login, members logging in with the Elementor widget (for which there isn’t a CAPTCHA field) receive an error because no CAPTCHA was inputted, and they’re redirected to the wp-login.php page.

    Do you know if I can disable the CAPTCHA for the Elementor login widget? I experienced the same issue with the login widget from Paid Membership Pro, but if I could just disable this for the Elementor widget that would be great.

    AITpro Admin

    @ Peter – You will need to turn Off JTC.  You cannot turn Off the JTC CAPTCHA for just the Elementor widget and will have to turn it Off for everything.  Check if the Elementor widget plugin offers a CAPTCHA option or some other security option for your Elementor forms.

    Fahimeh Khorsand

    Hi there,

    Not entirely sure why would someone in the world think JTC is somehow really protecting a website against spammers while what you guys call CAPTCHA code is just a manually added text which remains there permanently the same until someone changes it, especially when it’s easily exposed as HTML code. I can see this topic is old but even in those old days, this was not a CAPTCHA solution.

    Is there any clarification on how this is going to protect any website in the world?

    <input type="text" name="reference" id="reference" class="input" title="Type/Enter: jtc" value="">


    AITpro Admin

    @ Fahimeh – 99% of all hacking and spamming is automated with hackerbots and spambots.  JTC is 100% effective at blocking hackerbots and spambots.  human hackers and spammers do occasionally manually register and login to websites.  BPS Login Security protects against human hackers and spammers doing things like Brute Force attacks.  So using JTC and Login Security together effectively protects login and registration pages.

    On this forum site years ago I tested several different methods to protect against automated hackerbot and spambot auto-registrations, auto-logins and auto-posting done by hackerbots and spambots.  This forum site was getting 1,000 spam registrations per day before JTC was created, which of course meant spending 30 – 60 minutes per day deleting spam user accounts and spam forum topic posts.  With JTC in use this forum site gets 0 spambot registrations and that has remained consistent for many years.  I do occasionally get human spammers posting spam forum topics, but the average amount of spam forum topics that are posted by spammers is 1-3 per week, which is very quick and easy to cleanup.  😉

Viewing 10 posts - 61 through 70 (of 70 total)
  • You must be logged in to reply to this topic.