• I have recently encountered an internal server error. My host is award space and they have identified it is an ht.access fault. I have located the line of where the error is, however i am unsure as to what issue is on that line. Please see my ht.access content below.

    BEGIN RewriteEngine On

    RewriteCond %{HTTPS} off
    RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]All In One WP Security AIOWPS_BLOCK_WP_FILE_ACCESS_START

    Require all denied Order deny,allow Deny from all
    Require all denied Order deny,allow Deny from all
    Require all denied Order deny,allow Deny from all AIOWPS_BLOCK_WP_FILE_ACCESS_END AIOWPS_BASIC_HTACCESS_RULES_START

    Require all denied Order deny,allow Deny from all
    ServerSignature Off
    LimitRequestBody 10240000
    Require all denied Order deny,allow Deny from all AIOWPS_BASIC_HTACCESS_RULES_END AIOWPS_PINGBACK_HTACCESS_RULES_START

    Require all denied Order deny,allow Deny from all AIOWPS_PINGBACK_HTACCESS_RULES_END AIOWPS_DEBUG_LOG_BLOCK_HTACCESS_RULES_START

    Require all denied Order deny,allow Deny from all AIOWPS_DEBUG_LOG_BLOCK_HTACCESS_RULES_END AIOWPS_DISABLE_TRACE_TRACK_START

    RewriteEngine On RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK) RewriteRule .* - [F] AIOWPS_DISABLE_TRACE_TRACK_END AIOWPS_FORBID_PROXY_COMMENTS_START

    RewriteEngine On RewriteCond %{REQUEST_METHOD} ^POST RewriteCond %{HTTP:VIA} !^$ [OR] RewriteCond %{HTTP:FORWARDED} !^$ [OR] RewriteCond %{HTTP:USERAGENT_VIA} !^$ [OR] RewriteCond %{HTTP:X_FORWARDED_FOR} !^$ [OR] RewriteCond %{HTTP:X_FORWARDED_HOST} !^$ [OR] RewriteCond %{HTTP:PROXY_CONNECTION} !^$ [OR] RewriteCond %{HTTP:XPROXY_CONNECTION} !^$ [OR] RewriteCond %{HTTP:HTTP_PC_REMOTE_ADDR} !^$ [OR] RewriteCond %{HTTP:HTTP_CLIENT_IP} !^$ RewriteRule wp-comments-post.php - [F] AIOWPS_FORBID_PROXY_COMMENTS_END AIOWPS_DENY_BAD_QUERY_STRINGS_START

    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] AIOWPS_DENY_BAD_QUERY_STRINGS_END AIOWPS_ADVANCED_CHAR_STRING_FILTER_START


    RedirectMatch 403 \,
    RedirectMatch 403 \:
    RedirectMatch 403 \;
    RedirectMatch 403 =
    RedirectMatch 403 [
    RedirectMatch 403 ]
    RedirectMatch 403 \^
    RedirectMatch 403
    <br>RedirectMatch 403 {<br>RedirectMatch 403 }<br>RedirectMatch 403 ~<br>RedirectMatch 403 \"<br>RedirectMatch 403 \$<br>RedirectMatch 403 \<<br>RedirectMatch 403 ><br>RedirectMatch 403 |<br>RedirectMatch 403 ..<br>RedirectMatch 403 \%0<br>RedirectMatch 403 \%A<br>RedirectMatch 403 \%B<br>RedirectMatch 403 \%C<br>RedirectMatch 403 \%D<br>RedirectMatch 403 \%E<br>RedirectMatch 403 \%F<br>RedirectMatch 403 \%22<br>RedirectMatch 403 \%27<br>RedirectMatch 403 \%28<br>RedirectMatch 403 \%29<br>RedirectMatch 403 \%3C<br>RedirectMatch 403 \%3E<br>RedirectMatch 403 \%3F<br>RedirectMatch 403 \%5B<br>RedirectMatch 403 \%5C<br>RedirectMatch 403 \%5D<br>RedirectMatch 403 \%7B<br>RedirectMatch 403 \%7C<br>RedirectMatch 403 \%7D COMMON PATTERNS<br><br>Redirectmatch 403 _vpi<br>RedirectMatch 403 .inc<br>Redirectmatch 403 xAou6<br>Redirectmatch 403 db_name<br>Redirectmatch 403 select(<br>Redirectmatch 403 convert(<br>Redirectmatch 403 \/query\/<br>RedirectMatch 403 ImpEvData<br>Redirectmatch 403 .XMLHTTP<br>Redirectmatch 403 proxydeny<br>RedirectMatch 403 function.<br>Redirectmatch 403 remoteFile<br>Redirectmatch 403 servername<br>Redirectmatch 403 \&rptmode=<br>Redirectmatch 403 sys_cpanel<br>RedirectMatch 403 db_connect<br>RedirectMatch 403 doeditconfig<br>RedirectMatch 403 check_proxy<br>Redirectmatch 403 system_user<br>Redirectmatch 403 \/(null)\/<br>Redirectmatch 403 clientrequest<br>Redirectmatch 403 option_value<br>RedirectMatch 403 ref.outcontrol SPECIFIC EXPLOITS<br><br>RedirectMatch 403 errors.<br>RedirectMatch 403 config.<br>RedirectMatch 403 include.<br>RedirectMatch 403 display.<br>RedirectMatch 403 register.<br>Redirectmatch 403 password.<br>RedirectMatch 403 maincore.<br>RedirectMatch 403 authorize.<br>Redirectmatch 403 macromates.<br>RedirectMatch 403 head_auth.<br>RedirectMatch 403 submit_links.<br>RedirectMatch 403 change_action.<br>Redirectmatch 403 com_facileforms\/<br>RedirectMatch 403 admin_db_utilities.<br>RedirectMatch 403 admin.webring.docs.<br>Redirectmatch 403 Table\/Latest\/index.<br>AIOWPS_ADVANCED_CHAR_STRING_FILTER_END AIOWPS_SIX_G_BLACKLIST_START 6G FIREWALL/BLACKLIST @ https://perishablepress.com/6g/ 6G:[QUERY STRINGS]<br><br>RewriteEngine On RewriteCond %{QUERY_STRING} (eval() [NC,OR] RewriteCond %{QUERY_STRING} (127.0.0.1) [NC,OR] RewriteCond %{QUERY_STRING} ([a-z0-9]{2000,}) [NC,OR] RewriteCond %{QUERY_STRING} (javascript:)(.<em>)(;) [NC,OR] RewriteCond %{QUERY_STRING} (base64_encode)(.</em>)(() [NC,OR] RewriteCond %{QUERY_STRING} (GLOBALS|REQUEST)(=|[|%) [NC,OR] RewriteCond %{QUERY_STRING} (<|%3C)(.<em>)script(.</em>)(>|%3) [NC,OR] RewriteCond %{QUERY_STRING} (|...|../|~||<|>||) [NC,OR] RewriteCond %{QUERY_STRING} (boot.ini|etc/passwd|self/environ) [NC,OR] RewriteCond %{QUERY_STRING} (thumbs?(_editor|open)?|tim(thumb)?).php [NC,OR] RewriteCond %{QUERY_STRING} ('|\")(.)(drop|insert|md5|select|union) [NC] RewriteRule . - [F] 6G:[REQUEST METHOD]

    RewriteCond %{REQUEST_METHOD} ^(connect|debug|move|put|trace|track) [NC] RewriteRule .* - [F] 6G:[REFERRERS]

    RewriteCond %{HTTP_REFERER} ([a-z0-9]{2000,}) [NC,OR] RewriteCond %{HTTP_REFERER} (semalt.com|todaperfeita) [NC] RewriteRule .* - [F] 6G:[REQUEST STRINGS]

    RedirectMatch 403 (?i)([a-z0-9]{2000,}) RedirectMatch 403 (?i)(https?|ftp|php):/ RedirectMatch 403 (?i)(base64_encode)(.)(() RedirectMatch 403 (?i)(=\'|=\%27|/\'/?). RedirectMatch 403 (?i)/(\$(\&)?|*|\"|.|,|&|&?)/?$ RedirectMatch 403 (?i)({0}|(/(|...|+++|\"\") RedirectMatch 403 (?i)(~||<|>|:|;|,|%||\s|{|}|[|]||) RedirectMatch 403 (?i)/(=|\$&|mm|cgi-|etc/passwd|muieblack) RedirectMatch 403 (?i)(&pws=0|_vti|(null)|{\$itemURL}|echo(.</em>)kae|etc/passwd|eval(|self/environ) RedirectMatch 403 (?i).(aspx?|bash|bak?|cfg|cgi|dll|exe|git|hg|ini|jsp|log|mdb|out|sql|svn|swp|tar|rar|rdf)$ RedirectMatch 403 (?i)/(^$|(wp-)?config|mobiquo|phpinfo|shell|sqlpatch|thumb|thumb_editor|thumbopen|timthumb|webshell).php 6G:[USER AGENTS]<br><br><br>SetEnvIfNoCase User-Agent ([a-z0-9]{2000,}) bad_bot<br>SetEnvIfNoCase User-Agent (archive.org|binlar|casper|checkpriv|choppy|clshttp|cmsworld|diavol|dotbot|extract|feedfinder|flicky|g00g1e|harvest|heritrix|httrack|kmccrew|loader|miner|nikto|nutch|planetwork|postrank|purebot|pycurl|python|seekerspider|siclab|skygrid|sqlmap|sucker|turnit|vikspider|winhttp|xxxyy|youda|zmeu|zune) bad_bot Apache < 2.3<br><br>Order Allow,Deny Allow from all Deny from env=bad_bot Apache >= 2.3<br><br>Require all Granted Require not env bad_bot<br>AIOWPS_SIX_G_BLACKLIST_END AIOWPS_FIVE_G_BLACKLIST_START 5G BLACKLIST/FIREWALL (2013) @ https://perishablepress.com/5g-blacklist-2013/ 5G:[QUERY STRINGS]<br><br>RewriteEngine On RewriteBase / RewriteCond %{QUERY_STRING} (\"|%22).<em>(<|>|%3) [NC,OR] RewriteCond %{QUERY_STRING} (javascript:).</em>(\;) [NC,OR] RewriteCond %{QUERY_STRING} (<|%3C).<em>script.</em>(>|%3) [NC,OR] RewriteCond %{QUERY_STRING} (\|../||='$|=%27$) [NC,OR] RewriteCond %{QUERY_STRING} (\;|'|\"|%22).(union|select|insert|drop|update|md5|benchmark|or|and|if) [NC,OR] RewriteCond %{QUERY_STRING} (base64_encode|localhost|mosconfig) [NC,OR] RewriteCond %{QUERY_STRING} (boot.ini|echo.kae|etc/passwd) [NC,OR] RewriteCond %{QUERY_STRING} (GLOBALS|REQUEST)(=|[|%) [NC] RewriteRule .* - [F] 5G:[USER AGENTS] SetEnvIfNoCase User-Agent ^$ keep_out

    SetEnvIfNoCase User-Agent (binlar|casper|cmsworldmap|comodo|diavol|dotbot|feedfinder|flicky|ia_archiver|jakarta|kmccrew|nutch|planetwork|purebot|pycurl|skygrid|sucker|turnit|vikspider|zmeu) keep_out
    Order Allow,Deny Allow from all Deny from env=keep_out
    5G:[REQUEST STRINGS]

    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 5G:[REQUEST METHOD]


    RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
    RewriteRule .* - [F]
    AIOWPS_FIVE_G_BLACKLIST_END END All In One WP Security BEGIN WordPress

    RewriteEngine On RewriteBase / RewriteRule ^index.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] END WordPress Wordfence WAF

    Require all denied Order deny,allow Deny from all END Wordfence WAF

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • The code looks incorrectly formatted to me here. Or is this really all on one line?

    Require all denied Order deny,allow Deny from all

    To solve this, you could delete the file and have WordPress recreate it once by saving it in the backend under Settings > Permalinks.

    Thread Starter pcuser

    (@pcuser)

    Hi, This is not on the same line. I have used ht access check which advised me the issue was on the line where it says ”all in one WP security” I know the security cert has recently been updated. Do you think it maybe because of this?

    Unfortunately, I don’t know what exactly the error is. Since the content of an .htaccess file is incorrectly formatted here, it is difficult to judge.

    It is of course possible that plugins that insert code here are inserting it incorrectly. Hence my tip above about deleting and recreating the file, which would initially solve the problem immediately. If it then happens again, contact the support of the plugin that leaves the problematic entry.

    Thread Starter pcuser

    (@pcuser)

    Ok, great thank you! I will try that first.

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.