How can I block a rails application from getting bots?

Iโ€™m not even sure that Iโ€™m using the correct terminology whether these are bots or not. I did not want to use the word "spam" because it is not as if I have comments or messages that are created / spam. It looks like something is doing a second request in my domain, and it made me think it was some kind of bot.

I opened my first rail application for "public", which really is a small group of users and 50 now. That was last Friday. Today I started having performance problems, so I looked through the log and I see tons of these RoutingErrors

ActionController::RoutingError (No route matches "/portalApp/APF/pages/business/util/whichServer.jsp" with {:method=>:get}):

They fill out the journal, and I guess this leads to a slowdown. Pay attention to the .jsp at the end, and this is a rails application, so I donโ€™t have any URLs remotely like this in my application. I mean, I donโ€™t even have / portalApp, so I donโ€™t know where this comes from.

This is hosted on Dreamhost, and I chatted with one of their support people, and he suggested a couple of sites that describe in detail the use of htaccess to block. But it looks like you need to know the IP or domain from which the requests come from, which I don't know.

How can I block this? How can I find the IP or domain from the request? Any other suggestions?


Follow-up Information:

, , . , , url ( Flex), IP-. , - , , . , URL- , , .

+3
3

, , , Kickstarter . , .

+2

, :

-, . , useragent ? , useragent, , , .htaccess,

BrowserMatchNoCase SpammerRobot bad_bot
Order Deny,Allow
Deny from env=bad_bot

, , useragent , !

0
0

Source: https://habr.com/ru/post/1736371/


All Articles