R
R
Ruslan Galiev2013-12-13 15:09:31
Ruby on Rails
Ruslan Galiev, 2013-12-13 15:09:31

Where does the “No route matches [GET] /HNAP1” error come from in Rails?

Hello
Not so long ago I started using the Rollbar service. Periodically, or rather, once an hour, warnings of the following plan began to arrive:
ActionController::RoutingError: No route matches [GET] "/HNAP1"
I think the trace is not needed further.
The essence of the error is clear to me that the route was not found. Google talk about SpamBot looking for vulnerabilities. The URL on the Internet has not yet been exposed in any way, it is not clear how the bots got to it. The question is should I panic or not? What steps should be taken to avoid consequences?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
C
Cepega, 2013-12-13
@HerMajor

There is no point in panicking. Over time, there will be more and more such errors.
And in order to stop worrying and start living, you need to write something like this in routes.rb at the end
Make the appropriate controller and forget it.

_
_ _, 2013-12-13
@AMar4enko

The simplest thing, if you have a private service (the URL on the Internet has not yet been highlighted in any way), is to make base http authorization in nginx, and use it to login to the application.
In this case, invalid requests will be rejected at the nginx level, because they will not be able to pass authorization.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question