• Resolved alice83

    (@alice83)


    Hello team,

    Sorry for disturbing you.

    Tell me please, All In One Security utilizes your 6G and 5G firewalls (by Jeff Starr). And I need my user to allow to download *.rar files from my site. The *.rar extension is forbidden by these rules. That is why I have to delete this *.rar extension name from my htaccess. But when I activate /deactivate (etc.) the plugin, I use to modify my htaccess again and delete *.rar from all relevant rules again. Is it possible to exclude *.rar from that list permanently or to have this option from admin panel to choose from? Why zip for example is ok?
    I have already contacted Jeff first, but he told me that I have to ask pugin’ developers for that.
    Or please advise some workaround different from restoring of the htaccess if possible.
    Thank you in advance!

    • This topic was modified 3 years, 11 months ago by alice83.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor mbrsolution

    (@mbrsolution)

    Hi, you can use the Custom Rules tab to add your customize code for any Firewall rule you wish to edit.

    Let me know if this helps you.

    Thank you

    Thread Starter alice83

    (@alice83)

    Thank you so much! I apologize, tell me please if possible, how can I not add but overwrite existence rule?

    Thank you in advance!

    Explicitly this line
    RedirectMatch 403 \.(cgi|asp|aspx|cfg|dll|exe|jsp|mdb|sql|ini|rar)$

    with this one
    RedirectMatch 403 \.(cgi|asp|aspx|cfg|dll|exe|jsp|mdb|sql|ini)$

    When 5G enabled I have this in my htaccess

    # 5G:[REQUEST STRINGS]
    <IfModule mod_alias.c>
    RedirectMatch 403 (https?|ftp|php)\://
    RedirectMatch 403 /(https?|ima|ucp)/
    RedirectMatch 403 /(Permanent|Better)$
    RedirectMatch 403 (\=\\\’|\=\\%27|/\\\’/?|\)\.css\()$
    RedirectMatch 403 (\,|\)\+|/\,/|\{0\}|\(/\(|\.\.\.|\+\+\+|\||\\\”\\\”)
    RedirectMatch 403 \.(cgi|asp|aspx|cfg|dll|exe|jsp|mdb|sql|ini|rar)$
    RedirectMatch 403 /(contac|fpw|install|pingserver|register)\.php$
    RedirectMatch 403 (base64|crossdomain|localhost|wwwroot|e107\_)
    RedirectMatch 403 (eval\(|\_vti\_|\(null\)|echo.*kae|config\.xml)
    RedirectMatch 403 \.well\-known/host\-meta
    RedirectMatch 403 /function\.array\-rand
    RedirectMatch 403 \)\;\$\(this\)\.html\(
    RedirectMatch 403 proc/self/environ
    RedirectMatch 403 msnbot\.htm\)\.\_
    RedirectMatch 403 /ref\.outcontrol
    RedirectMatch 403 com\_cropimage
    RedirectMatch 403 indonesia\.htm
    RedirectMatch 403 \{\$itemURL\}
    RedirectMatch 403 function\(\)
    RedirectMatch 403 labels\.rdf
    RedirectMatch 403 /playing.php
    RedirectMatch 403 muieblackcat
    </IfModule>

    How can I overwrite with this in custom rules:

    # 5G:[REQUEST STRINGS]
    <IfModule mod_alias.c>
    RedirectMatch 403 (https?|ftp|php)\://
    RedirectMatch 403 /(https?|ima|ucp)/
    RedirectMatch 403 /(Permanent|Better)$
    RedirectMatch 403 (\=\\\’|\=\\%27|/\\\’/?|\)\.css\()$
    RedirectMatch 403 (\,|\)\+|/\,/|\{0\}|\(/\(|\.\.\.|\+\+\+|\||\\\”\\\”)
    RedirectMatch 403 \.(cgi|asp|aspx|cfg|dll|exe|jsp|mdb|sql|ini)$
    RedirectMatch 403 /(contac|fpw|install|pingserver|register)\.php$
    RedirectMatch 403 (base64|crossdomain|localhost|wwwroot|e107\_)
    RedirectMatch 403 (eval\(|\_vti\_|\(null\)|echo.*kae|config\.xml)
    RedirectMatch 403 \.well\-known/host\-meta
    RedirectMatch 403 /function\.array\-rand
    RedirectMatch 403 \)\;\$\(this\)\.html\(
    RedirectMatch 403 proc/self/environ
    RedirectMatch 403 msnbot\.htm\)\.\_
    RedirectMatch 403 /ref\.outcontrol
    RedirectMatch 403 com\_cropimage
    RedirectMatch 403 indonesia\.htm
    RedirectMatch 403 \{\$itemURL\}
    RedirectMatch 403 function\(\)
    RedirectMatch 403 labels\.rdf
    RedirectMatch 403 /playing.php
    RedirectMatch 403 muieblackcat
    </IfModule>

    Plugin Contributor mbrsolution

    (@mbrsolution)

    Hi, please check the following documentation.

    https://mbrsolution.com/wordpress/all-in-one-wp-security-firewall-custom-rules.php

    Let me know if the above helps you.

    Thank you

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[NSFW] How to add *.rar extention to excerption of 5G and 6G firewall’ is closed to new replies.