Error log shows an Exception for HEAD request to null path

Hi there, I encountered an error in my server’s error log that I’m not sure how to interpret. Currently running Kirby 3.9.2.

It looks like someone is sending an empty HEAD request to the panel (or to the main url of the site? It’s unclear to me).

I feel like it’s a spambot/crawler and that I should create a custom route to intercept these types of requests. Has anyone else experienced something similar?

Exception: No route found for path: "" and request method: "HEAD" in /public_html/kirby/src/Http/Router.php:185
Stack trace:
#0 /public_html/kirby/src/Http/Router.php(110): Kirby\Http\Router->find('', 'HEAD', Array)
#1 /public_html/kirby/src/Http/Router.php(151): Kirby\Http\Router->call('', 'HEAD', Object(Closure))
#2 /public_html/kirby/src/Panel/Panel.php(283): Kirby\Http\Router::execute(NULL, 'HEAD', Array, Object(Closure))
#3 /public_html/kirby/config/routes.php(102): Kirby\Panel\Panel::router(NULL)
#4 [internal function]: Kirby\Http\Route->{closure}()
#5 /public_html/kirby/src/Http/Router.php(120): Closure->call(Object(Kirby\Http\Route))
#6 /public_html/kirby/src/Cms/App.php(341): Kirby\Http\Router->call('panel', 'HEAD')
#7 /public_html/kirby/src/Cms/App.php(1238): Kirby\Cms\App->call('panel', 'HEAD')
#8 /public_html/index.php(5): Kirby\Cms\App->render()
#9 {main}

Hey @samnabi just a wild guess - have you enabled languages and set the “url” key to something like

'url' => '',

for any of the languages? I guess I had a similar issue and was able to fix it by setting

'url' => NULL,

inside my language. Especially when you have language auto detection.

Thanks for the suggestion — unfortunately no luck, this is a single-language site. I think I’ll try to log more info about the origin of these requests and see what I can find out. It only happens sporadically.