Support » Plugin: iThemes Security (formerly Better WP Security) » Better-wp-security generating wrong .htaccess

  • Better WP Build is 3064
    Version is VersiĆ³n 3.6.2
    Wordpress is 3.8

    The site stoped working and it just gave a 500 Error.

    Don’t know much about the .htaccess file but the trouble seems to be there.

    Wp-Secutiry is writing this

    # BEGIN Better WP Security
    Order Allow,Deny
    Deny from env=DenyAccess
    Allow from all
    SetEnvIF REMOTE_ADDR “^5\.248\.84\.12$” DenyAccess
    SetEnvIF X-FORWARDED-FOR “^5\.248\.84\.12$” DenyAccess
    SetEnvIF X-CLUSTER-CLIENT-IP “^5\.248\.84\.12$” DenyAccess
    <IfModule mod_rewrite.c>
    RewriteEngine On

    RewriteCond %{REQUEST_METHOD} POST
    RewriteCond %{REQUEST_URI} ^(.*)wp-comments-post\.php*
    RewriteCond %{HTTP_REFERER} !^(.*)websitename.com.*
    RewriteCond %{HTTP_REFERER} !^http://jetpack\.wordpress\.com/jetpack-comment/ [OR]
    RewriteCond %{HTTP_USER_AGENT} ^$
    RewriteRule ^(.*)$ – [F,L]

    </IfModule>
    # END Better WP Security

    By trying I found that deleting the part that says this

    Order Allow,Deny
    Deny from env=DenyAccess
    Allow from all
    SetEnvIF REMOTE_ADDR “^5\.248\.84\.12$” DenyAccess
    SetEnvIF X-FORWARDED-FOR “^5\.248\.84\.12$” DenyAccess
    SetEnvIF X-CLUSTER-CLIENT-IP “^5\.248\.84\.12$” DenyAccess

    Just gets the website working, but it keeps writing the same. Why?

    http://wordpress.org/plugins/better-wp-security/

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Better-wp-security generating wrong .htaccess’ is closed to new replies.