Title: 6G rules block Cloudflare plugin JavaScript
Last modified: June 2, 2019

---

# 6G rules block Cloudflare plugin JavaScript

 *  Resolved [Chris J. Zähller](https://wordpress.org/support/users/seezee/)
 * (@seezee)
 * [6 years, 12 months ago](https://wordpress.org/support/topic/6g-rules-block-cloudflare-plugin-javascript/)
 * The 6G firewall rules include this line:
 * `RedirectMatch 403 config\.`
 * This prevents the file `/wp-content/plugins/cloudflare/config.js` from loading.
   Of course, I can just comment the rule out but it would be nice if you could 
   update the blacklist to take this file into account. In the meantime I’m working
   out a regex I can use in this rule’s place.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2F6g-rules-block-cloudflare-plugin-javascript%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Plugin Contributor [mbrsolution](https://wordpress.org/support/users/mbrsolution/)
 * (@mbrsolution)
 * [6 years, 12 months ago](https://wordpress.org/support/topic/6g-rules-block-cloudflare-plugin-javascript/#post-11597989)
 * Hi, you can use the **Custom Rules** tab under **Firewall** rules to customize
   the 6G code.
 * Let me know if you need more information or help.
 * Kind regards
 *  [mubasshir](https://wordpress.org/support/users/mubasshir/)
 * (@mubasshir)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/6g-rules-block-cloudflare-plugin-javascript/#post-11640678)
 * Hi,
    could you please share custom rule for `/wp-content/plugins/cloudflare/config.
   js`?
 * I don’t want to disable 6G rules.
 *  Plugin Contributor [mbrsolution](https://wordpress.org/support/users/mbrsolution/)
 * (@mbrsolution)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/6g-rules-block-cloudflare-plugin-javascript/#post-11640714)
 * [@mubasshir](https://wordpress.org/support/users/mubasshir/), you need to exclude`
   RedirectMatch 403 config\.` from the 6G rules and add the new custom code in 
   the **Custom Rules** tab.
 * Kind regards
 *  [mubasshir](https://wordpress.org/support/users/mubasshir/)
 * (@mubasshir)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/6g-rules-block-cloudflare-plugin-javascript/#post-11640718)
 * Thanks for the response.
    Removal is easy, could you tell me what rule I should
   put?
 *  Plugin Contributor [mbrsolution](https://wordpress.org/support/users/mbrsolution/)
 * (@mbrsolution)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/6g-rules-block-cloudflare-plugin-javascript/#post-11643590)
 * Hi, you will add the same rules added to the .htaccess file when the feature 
   is enabled minus the following enty `RedirectMatch 403 config\.`
 * Let me know if the above makes sense.
 * Kind regards
 *  Thread Starter [Chris J. Zähller](https://wordpress.org/support/users/seezee/)
 * (@seezee)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/6g-rules-block-cloudflare-plugin-javascript/#post-11650217)
 * [@mubasshir](https://wordpress.org/support/users/mubasshir/),
 * Find this block in .htaccess:
 *     ```
       <IfModule mod_rewrite.c>
       RewriteEngine On
       RewriteCond %{QUERY_STRING} ftp:     [NC,OR]
       RewriteCond %{QUERY_STRING} http:    [NC,OR]
       RewriteCond %{QUERY_STRING} https:   [NC,OR]
       RewriteCond %{QUERY_STRING} mosConfig [NC,OR]
       RewriteCond %{QUERY_STRING} ^.*(globals|encode|localhost|loopback).* [NC,OR]
       RewriteCond %{QUERY_STRING} (\;|'|\"|%22).*(request|insert|union|declare|drop) [NC]
       RewriteRule ^(.*)$ - [F,L]
       </IfModule>
       ```
   
 * Add this line to the end, before the closing `</IfModule>`:
 * `RewriteCond %{REQUEST_URI} !cloudflare\/config\.js$ [L]`
 * Reload Apache & go to the plugin admin screen to see if the javascript loaded.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘6G rules block Cloudflare plugin JavaScript’ is closed to new replies.

 * ![](https://ps.w.org/all-in-one-wp-security-and-firewall/assets/icon-256x256.
   png?rev=2798307)
 * [All-In-One Security (AIOS) – Security and Firewall](https://wordpress.org/plugins/all-in-one-wp-security-and-firewall/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/all-in-one-wp-security-and-firewall/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/all-in-one-wp-security-and-firewall/)
 * [Active Topics](https://wordpress.org/support/plugin/all-in-one-wp-security-and-firewall/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/all-in-one-wp-security-and-firewall/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/all-in-one-wp-security-and-firewall/reviews/)

 * 6 replies
 * 3 participants
 * Last reply from: [Chris J. Zähller](https://wordpress.org/support/users/seezee/)
 * Last activity: [6 years, 11 months ago](https://wordpress.org/support/topic/6g-rules-block-cloudflare-plugin-javascript/#post-11650217)
 * Status: resolved