Ajax Search Lite – 403 error

Home Forums BulletProof Security Pro Ajax Search Lite – 403 error

Tagged: 

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #36802
    AITpro Admin
    Keymaster

    If you are using the BPS POST Request Protection Bonus Custom Code here > https://forum.ait-pro.com/forums/topic/post-request-protection-post-attack-protection-post-request-blocker/ an additional whitelist rule is needed to allow the Ajax Search Lite plugin to successfully complete a search POST Request.  Do the steps below to add an additional whitelist rule for the Ajax Search Lite plugin.  Important Notes: Edit your existing POST Request Protection code. Do not use the WP REWRITE LOOP START code example code below.  You are only adding an additional whitelist rule shown below to your existing POST Request Protection code that you already saved/added in BPS Root Custom Code previously.

    The additional whitelist rule for the Ajax Search Lite plugin:

    # Whitelist Ajax Lite Search Widget POST Requests by Query String
    RewriteCond %{QUERY_STRING} !^s=(.*) [NC]

    1. Move (cut and paste) your existing POST Request Protection code from this BPS Root Custom Code text box: 14. CUSTOM CODE BOTTOM HOTLINKING/FORBID COMMENT SPAMMERS/BLOCK BOTS/BLOCK IP/REDIRECT CODE into this BPS Root Custom Code text box: 8. CUSTOM CODE WP REWRITE LOOP START.
    2. Edit your POST Request Protection code and add the Ajax Lite Search Widget POST Requests by Query String whitelist rule shown above into your POST Request Protection code (see screenshot below).
    3. Go to the htaccess File Editor tab page > Your Current Root htaccess File tab > scroll down in your root htaccess file code until you see the WP REWRITE LOOP START code. It will look similar to this example code directly below. Do not use this code below since your WP REWRITE LOOP START code may be different.

    # WP REWRITE LOOP START
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]

    4. Copy your WP REWRITE LOOP START code and paste it above your POST Request Protection code in the Root Custom Code text box: 8. CUSTOM CODE WP REWRITE LOOP START (see screenshot below).
    5.
    Click the Save Root Custom Code button.
    6. Go to the Security Modes tab page and click the Root folder BulletProof Mode Activate button.

    The screenshot below shows what the finished/completed solution will look like.  The new Ajax Search Lite plugin whitelist rule is displayed with a green border around it below. Note: Your actual code will most likely be/look different, but be somewhat generally similar.

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.