• So my host doesnt allow to work with .htaccess. Instead I always have to put code into iirf.ini but apparently I cant just add the same code there. I asked them if they could recode it for me as they claim to help out with wordpress questions even beyond the server config problems but they don’t answer my question an instead come with a blacklist IP code which I don’t want as its proven inefficient to solve my problem

    So this comes from codex:
    http://codex.wordpress.org/Combating_Comment_Spam/Denying_Access

    under chapter: Deny Access to No Referrer Requests

    RewriteEngine On
    RewriteCond %{REQUEST_METHOD} POST
    RewriteCond %{REQUEST_URI} .wp-comments-post\.php*
    RewriteCond %{HTTP_REFERER} !.*yourdomain.com.* [OR]
    RewriteCond %{HTTP_USER_AGENT} ^$
    RewriteRule (.*) http://%{REMOTE_ADDR}/$ [R=301,L]

    Does anyone know what this would be if I have to put it in an iirf.ini?

The topic ‘Codex code from .htaccess to iirf.ini’ is closed to new replies.