SitePoint Sponsor

User Tag List

Results 1 to 6 of 6

Threaded View

  1. #1
    SitePoint Member
    Join Date
    Jun 2012
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Unhappy Help with mod_rewrite!

    Hi everyone!

    I'm having many spam requests, shown bellow, on my apache server error log and I would like to block them using mod_rewrite.

    Code:
    [Sat Jun 30 12:21:21 2012] [error] [client 177.0.148.85] File does not exist: /var/www/html/favicon.ico, referer: http://sattotal.blogspot.com.br/2011/10/sobre-o-satelite-star-one-c3.html
    [Sat Jun 30 12:22:56 2012] [error] [client 201.75.1.138] File does not exist: /var/www/html/favicon.ico, referer: http://sattotal.blogspot.com.br/2012/05/especialista-revela-os-segredos-de-uma.html
    [Sat Jun 30 12:23:19 2012] [error] [client 201.14.103.135] File does not exist: /var/www/html/favicon.ico, referer: http://sattotal.blogspot.com.br/2008_04_27_archive.html
    [Sat Jun 30 12:25:01 2012] [error] [client 188.82.51.233] File does not exist: /var/www/html/favicon.ico, referer: http://sattotal.blogspot.pt/2011/11/satelite-hellas-sat-2-39-este-portugal.html
    [Sat Jun 30 12:25:04 2012] [error] [client 212.57.81.68] File does not exist: /var/www/html/favicon.ico, referer: http://sattotal.blogspot.pt/2009/03/novidade-hustler-tv-hd.html
    [Sat Jun 30 12:25:08 2012] [error] [client 189.71.46.254] File does not exist: /var/www/html/favicon.ico, referer: http://sattotal.blogspot.com.br/
    [Sat Jun 30 12:25:27 2012] [error] [client 189.71.46.254] File does not exist: /var/www/html/favicon.ico, referer: http://sattotal.blogspot.com.br/
    [Sat Jun 30 12:25:53 2012] [error] [client 188.82.51.233] File does not exist: /var/www/html/favicon.ico, referer: http://sattotal.blogspot.pt/2009/09/europa-canal-bulgaro-bgfar-hd-no-hellas.html
    [Sat Jun 30 12:29:57 2012] [error] [client 89.153.157.48] File does not exist: /var/www/html/favicon.ico, referer: http://sattotal.blogspot.pt/2009/11/portugal-panda-biggs-novo-canal-na-zon.html
    I tried to block them using the following rewrite rule, but isn't working... :-(

    RewriteEngine On
    RewriteCond %{HTTP_REFERER} ^http://sattotal\.blogspot\.* [NC]
    RewriteRule ^(.*)$ - [F,L]

    Any help will be very appreciated.

    Thanks,

    Mlino
    Last edited by Mittineague; Jun 30, 2012 at 10:42. Reason: OP forgot to turn off auto-link


Tags for this Thread

Bookmarks

Posting Permissions

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