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
Hi,
could you please share custom rule for /wp-content/plugins/cloudflare/config.js?
I don’t want to disable 6G rules.
@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
Thanks for the response.
Removal is easy, could you tell me what rule I should put?
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
@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.