title: how do I block my rails app from being hit by bots?
body: <p>I'm not even sure I'm using the right terminology, whether this is actually bots or not. I didn't want to use the word 'spam' because it's not like I have comments or posts that are being created/spammed. It looks more like something is making the same repeated request to my domain, which is what made me think it was some kind of bot.</p>
  
  <p>I've opened my first rails app to the 'public', which is a really a small group of users, &lt;50 currently. That was last Friday. I started having performance issues today, so I looked at the log and I see tons of these RoutingErrors</p>
  
  <pre><code>ActionController::RoutingError (No route matches "/portalApp/APF/pages/business/util/whichServer.jsp" with {:method=&gt;:get}):
  </code></pre>
  
  <p>They are filling up the log and I'm assuming this is causing the slowdown. Note the .jsp on the end and this is a rails app, so I've got no urls remotely like this in my app. I mean, the /portalApp I don't even have, so I don't know where this is coming from.</p>
  
  <p>This is hosted at Dreamhost and I chatted with one of their support people, and he suggested a couple sites that detail using htaccess to block things. But that looks like you need to know the IP or domain that the requests are coming from, which I don't.</p>
  
  <p>How can I block this? How can I find the IP or domain from the request? Any other suggestions?</p>
  
  <hr>
  
  <p>Follow up info:</p>
  
  <p>After looking at the access logs, it looks like it's not a bot. Maybe I'm not reading the logs right, but there are valid url requests (generated from within my Flex app) coming from the same IP. So now I'm wondering if it's some kind of plugin generating the requests, but I really don't know. Now I'm wondering if it's possible to block a certain url request, based on a pattern, but I suppose that's a separate question.</p>