Forum: Ruby on Rails url.access-deny

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Bogdan I. (Guest)
on 2006-02-16 16:21
(Received via mailing list)
Hello,

There are several proxy servers that for some reason try every night to
download some gif files that do not exist on my site.
They make about 70 requests on the same second and that's not good to my
application
I was trying to use url.access-deny to deny the access to the unexisting
gif
files, but for some reason it does not work (meaning that I still see
the
request in the production.log file)
Any suggestion is welcome.
Below are some snipets from my lighttpd.conf file

server.modules           = ( "mod_rewrite", "mod_access","mod_fastcgi",
"mod_accesslog" )

$HTTP["url"] =~ "^/javascripts/" {
  url.access-deny = ( ".gif")
  }

fastcgi.server = ( ".fcgi" =>
  ( "localhost" =>
      (
        "min-procs" => 3,
        "max-procs" => 9,
        "socket"    => "/home/avirtual/railsData/log/fcgi.socket",
        "bin-path"  => "/home/avirtual/railsData/public/dispatch.fcgi",
        "bin-environment" => ( "RAILS_ENV" => "production" )
      )
  )
)
This topic is locked and can not be replied to.