Results 1 to 2 of 2

block referrer

This is a discussion on block referrer within the General Discussion forums, part of the vBSEO SEO Plugin category; I would normally block a problem referrer using mod-security or a proven rewrite rule to a 75mb file on flickr ...

  1. #1
    Junior Member
    Real Name
    hugh
    Join Date
    Apr 2007
    Posts
    19
    Liked
    0 times

    block referrer

    I would normally block a problem referrer using mod-security or a proven rewrite rule to a 75mb file on flickr if I'm feeling unkind. However I'm unable to block a new referrer today perhaps since installing vbseo and I'm at a loss to explain why, especially where when I test mod-security sending their referrer using Lynx my server behaves as it should and blocks the request.

    So I'm left thinking it's not working because the referrer I'm using is wrong or there's a conflict with vbseo. Any thoughts?

    Thanks!

    Hugh
    Last edited by partyvibe; 08-25-2008 at 06:49 PM.

  2. #2
    Junior Member
    Real Name
    hugh
    Join Date
    Apr 2007
    Posts
    19
    Liked
    0 times
    Never mind, this code in .htaccess worked...

    # set the spam_ref variable
    SetEnvIfNoCase Referer "^http://(www.)?some-spammer.com" spam_ref=1

    SetEnvIfNoCase Referer "^http://(www.)?other-spammer.com" spam_ref=1

    SetEnvIfNoCase Referer "^casino-poker" spam_ref=1

    # block all referres that have spam_ref set
    <FilesMatch "(.*)">
    Order Allow,Deny
    Allow from all
    Deny from env=spam_ref
    </FilesMatch>

Similar Threads

  1. Google referrer ratio?
    By Haakon in forum General Discussion
    Replies: 4
    Last Post: 02-11-2006, 04:00 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •