• User

    .htaccess, bot spam e errore 500

    Ciao a tutti,
    qualche giorno fa ho modificato il file .htaccess inserendo questo codice per bloccare il bot spam buttons-for-website:

    Block buttons for website Referrer Spam

    RewriteEngine on
    RewriteCond %{HTTP_REFERER} ^http ://. buttons\ -for -website.com/
    RewriteRule ^(.
    )$ – [F,L]

    End buttons for website block

    La modifica mi ha provocato un errore 500.
    Ho quindi eliminato il file .htaccess e l'ho ricreato all'interno del plugin Yoast in WordPress e parzialmente risolto il problema inserendo solo il codice che segue:

    BEGIN WordPress

    <IfModule mod_rewrite.c>
    RewriteEngine On

    RewriteCond %{HTTP_REFERER} ^http:/ / .buttons -for-website\ .com/
    RewriteRule ^(.
    )$ - [F,L]

    RewriteBase /
    RewriteRule ^index.php$ -
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php
    </IfModule>

    END WordPress

    Il problema è che se solo provo a ripristinare la situazione precedente all'errore inserendo questo codice:

    protect wpconfig.php

    <files wp-config.php>order allow, deny deny from all</files>

    protects from sql

    injectionOptions +FollowSymLinks
    RewriteEngine
    OnRewriteCond %{QUERY_STRING} (<|%3C).script.(>|%3E) [NC,OR]
    RewriteCond %{QUERY_STRING} GLOBALS(=|[|%[0-9A-Z]{0,2})
    RewriteCond %{QUERY_STRING} _REQUEST(=|[|%[0-9A-Z]{0,2})
    RewriteRule ^(.*)$ index.php [F,L]

    BEGIN WordPress

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index.php$ -
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php
    </IfModule>

    END WordPress

    o ad aggiungere ulteriori blocchi a bot spam

    Block russo Referrer Spam

    RewriteEngine On
    RewriteCond %{HTTP_REFERER} ^ http: //. *buttons -for-website\ .com/ [NC,OR]
    RewriteCond %{HTTP_REFERER} ^ Http: // .*ilovevitaly. ru / [NC,OR]
    RewriteCond %{HTTP_REFERER} ^ Http: // .*ilovevitaly .org/ [NC,OR]
    RewriteCond %{HTTP_REFERER} ^ Http: // . *ilovevitaly .info/ [NC,OR]
    RewriteCond %{HTTP_REFERER} ^ Http : //.*iloveitaly .ru/ [NC,OR]
    RewriteCond %{HTTP_REFERER} ^ Http : //. *ilovevitaly .com/ [NC,OR]
    RewriteCond %{HTTP_REFERER} ^ Http :// .darodar .com/
    RewriteRule ^(.
    )$ - [F,L]

    si ricrea il problema.
    Qualcuno sa come risolvere la questione.
    Grazie mille