• thedevnull

    (@thedevnull)


    Hello everyone,

    I have this person who keeps linking to me and I want to ban them so I set up a referrer ban. In this case an IP ban wouldn’t work because they are coming from a legit major blogging site (blogger.com). It doesn’t seem to be working…

    Is this correct?

    #Referrer Ban
    RewriteCond %{HTTP_REFERER ex1.blogspot.com [NC,OR]
    RewriteCond %{HTTP_REFERER} ex2.blogger.com [NC]
    RewriteRule .* – [F]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter thedevnull

    (@thedevnull)

    Now I tried this and it still doesn’t work…

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]

    ## SITE REFERRER BANNING
    RewriteEngine On
    Options +FollowSymlinks
    RewriteCond %{HTTP_REFERER} dumbass\.blogspot\.com [NC,OR]
    RewriteCond %{HTTP_REFERER} dumbass\.blogger\.com [NC]
    RewriteRule .* – [F]
    </IfModule>

    whooami

    (@whooami)

    RewriteCond %{HTTP_REFERER}  https://ex2.blogger.com.*$ [NC]
    RewriteRule ^.* - [F]

    works for me, and covers all pages originating from there.

    Thread Starter thedevnull

    (@thedevnull)

    Just gives me an internal server error… XD

    Neither of those .htaccess examples above worked… =(

    whooami

    (@whooami)

    thats not an issue with the rule. I tested that rule on my own server, and spoofed the domain. I know it works.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘.htaccess banning referrer question?’ is closed to new replies.