Forums » Plugin: Wordfence Security - Firewall, Malware Scan, and Login Security » Can’t solve “Scan failed” problem.

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

    (@wfgerald)

    Hey @fuji2yama,

    My apologies for the delayed response.

    I took a look at the previous post where you shared the scan failure details. The error below indicates that the wp-admin directory may be blocked. I don’t see an attached .htaccess file. Can you please check to see if you have an htaccess file in the wp-admin directory restricting access? If there isn’t one there can you please share the contents of the htaccess in the WordPress root directory?

    Scan process ended after forking.

    https://www.wordfence.com/help/scan/troubleshooting/#scan-process-ended-after-forking

    Please let me know.

    Thanks,

    Gerroald

    Thread Starter fuji2yama

    (@fuji2yama)

    @wfgerald
    Hi,thanks reply.

    Pls check contents of the htaccess.

    <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond %{HTTPS} off
    RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
    </IfModule>
    <IfModule mod_headers.c>
    <FilesMatch “.(js|css|xml|gz|html)$”>
    Header append Vary: Accept-Encoding
    </FilesMatch>
    </IfModule>
    #RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
    #RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
    #RewriteEngine On
    #RewriteCond %{SERVER_PORT} 80
    #RewriteRule ^(.*)$ https://gxomens.com/$1 [R=301,L]
    #RewriteRule ^(.*)$ https://blog.gxomens.com/$1 [R=301,L]
    #RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
    #RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
    #RewriteEngine On
    #RewriteCond %{HTTP_HOST} ^blog.gxomens.com [NC]
    #RewriteCond %{SERVER_PORT} 80
    #RewriteRule ^(.*)$ https://blog.gxomens.com/$1 [R=301,L]
    # Support

    SetEnvIf Request_URI “.*” Ngx_Cache_NoCacheMode=off
    SetEnvIf Request_URI “.*” Ngx_Cache_AllCacheMode
    SetEnvIf Remote_Addr ^92\.203\.2\.204$ AllowCountry
    SetEnvIf Remote_Addr ^92\.203\.2\.230$ AllowCountry
    SetEnvIf Request_URI “.*” AllowRestApi
    SetEnvIf Request_URI “.*” AllowCountry
    SetEnvIf Request_URI “.*” AllowXmlrpc
    SetEnvIf Request_URI “.*” AllowCountry
    SetEnvIf Request_URI “.*” AllowRestApi
    SetEnvIf Request_URI “.*” WpLoginNoLimit
    SetEnvIf Request_URI “.*” WpCommentNoLimit

    Thread Starter fuji2yama

    (@fuji2yama)

    @wfgerald Hi,can you check again??

    WFGerroald

    (@wfgerald)

    Hey @fuji2yama,

    Is this the htaccess file in your root directory? If so, can you please look in the wp-admin directory to see if there’s one there?

    Thanks,

    Gerroald

    Thread Starter fuji2yama

    (@fuji2yama)

    # BEGIN WordPress
    # BEGIN WordPress から END WordPress までのディレクティブ (行) は
    # 動的に生成され、WordPress フィルターによってのみ修正が可能です。
    # これらのマーカー間にあるディレクティブへのいかなる変更も上書きされてしまいます。
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    # END WordPress

    # BEGIN EWWWIO
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{HTTP_ACCEPT} image/webp
    RewriteCond %{REQUEST_FILENAME} (.*)\.(jpe?g|png)$
    RewriteCond %{REQUEST_FILENAME}.webp -f
    RewriteCond %{QUERY_STRING} !type=original
    RewriteRule (.+)\.(jpe?g|png)$ %{REQUEST_URI}.webp [T=image/webp,E=accept:1,L]
    </IfModule>
    <IfModule mod_headers.c>
    Header append Vary Accept env=REDIRECT_accept
    </IfModule>
    AddType image/webp .webp
    # END EWWWIO

    SetEnvIf Remote_Addr ^92\.203\.2\.204$ AllowCountry
    SetEnvIf Remote_Addr ^92\.203\.2\.230$ AllowCountry

    <IfModule mod_headers.c>
    <filesMatch “\.(ico|pdf|flv|jpg|svg|jpeg|png|gif|js|css|swf)$”>
    Header set Cache-Control “max-age=31557600, public”
    </filesMatch>
    </IfModule>

    <IfModule mod_deflate.c>
    # Compress HTML, CSS, JavaScript, Text, XML and fonts
    AddOutputFilterByType DEFLATE application/javascript
    AddOutputFilterByType DEFLATE application/rss+xml
    AddOutputFilterByType DEFLATE application/vnd.ms-fontobject
    AddOutputFilterByType DEFLATE application/x-font
    AddOutputFilterByType DEFLATE application/x-font-opentype
    AddOutputFilterByType DEFLATE application/x-font-otf
    AddOutputFilterByType DEFLATE application/x-font-truetype
    AddOutputFilterByType DEFLATE application/x-font-ttf
    AddOutputFilterByType DEFLATE application/x-javascript
    AddOutputFilterByType DEFLATE application/xhtml+xml
    AddOutputFilterByType DEFLATE application/xml
    AddOutputFilterByType DEFLATE font/opentype
    AddOutputFilterByType DEFLATE font/otf
    AddOutputFilterByType DEFLATE font/ttf
    AddOutputFilterByType DEFLATE image/svg+xml
    AddOutputFilterByType DEFLATE image/x-icon
    AddOutputFilterByType DEFLATE text/css
    AddOutputFilterByType DEFLATE text/html
    AddOutputFilterByType DEFLATE text/javascript
    AddOutputFilterByType DEFLATE text/plain
    AddOutputFilterByType DEFLATE text/xml

    # Remove browser bugs (only needed for really old browsers)
    BrowserMatch ^Mozilla/4 gzip-only-text/html
    BrowserMatch ^Mozilla/4\.0[678] no-gzip
    BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
    Header append Vary User-Agent
    </IfModule>

    # BEGIN Expire headers
    <ifModule mod_expires.c>
    ExpiresActive On
    ExpiresDefault “access plus 5 seconds”
    ExpiresByType image/x-icon “access plus 31557600 seconds”
    ExpiresByType image/jpeg “access plus 31557600 seconds”
    ExpiresByType image/png “access plus 31557600 seconds”
    ExpiresByType image/gif “access plus 31557600 seconds”
    ExpiresByType image/svg+xml “access plus 31557600 seconds”
    ExpiresByType application/x-font-ttf “access plus 31557600 seconds”
    ExpiresByType application/x-font-truetype “access plus 31557600 seconds”
    ExpiresByType application/x-font-opentype “access plus 31557600 seconds”
    ExpiresByType application/x-font-woff “access plus 31557600 seconds”
    ExpiresByType application/font-woff2 “access plus 31557600 seconds”
    ExpiresByType application/vnd.ms-fontobject “access plus 31557600 seconds”
    ExpiresByType application/font-sfnt “access plus 31557600 seconds”
    ExpiresByType application/x-shockwave-flash “access plus 31557600 seconds”
    ExpiresByType text/css “access plus 604800 seconds”
    ExpiresByType text/javascript “access plus 216000 seconds”
    ExpiresByType application/javascript “access plus 216000 seconds”
    ExpiresByType application/x-javascript “access plus 216000 seconds”
    ExpiresByType text/html “access plus 600 seconds”
    ExpiresByType application/xhtml+xml “access plus 600 seconds”
    </ifModule>
    # END Expire headers

    # BEGIN Caching
    <ifModule mod_headers.c>
    <filesMatch “\\.(ico|pdf|flv|jpg|jpeg|png|gif|swf|ttf|otf|woff|woff2|eot|svg)$”>
    Header set Cache-Control “max-age=31557600, public”
    </filesMatch>
    <filesMatch “\\.(css)$”>
    Header set Cache-Control “max-age=31557600, public”
    </filesMatch>
    <filesMatch “\\.(js)$”>
    Header set Cache-Control “max-age=31557600, private”
    </filesMatch>
    <filesMatch “\\.(xml|txt)$”>
    Header set Cache-Control “max-age=31557600, public, must-revalidate”
    </filesMatch>
    <filesMatch “\\.(html|htm|php)$”>
    Header set Cache-Control “max-age=1, private, must-revalidate”
    </filesMatch>
    </ifModule>
    # END Caching

    # Wordfence WAF
    <Files “.user.ini”>
    <IfModule mod_authz_core.c>
    Require all denied
    </IfModule>
    <IfModule !mod_authz_core.c>
    Order deny,allow
    Deny from all
    </IfModule>
    </Files>

    # END Wordfence WAF

    Thread Starter fuji2yama

    (@fuji2yama)

    @wfgerald Hi,sorry late reply.
    Pls check this again.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Can’t solve “Scan failed” problem.’ is closed to new replies.