Host RANDOMHOSTHERE was not connected to because it violates local access rules

Nextcloud version : 27.0.0
Operating system and version : CentOS Stream
Apache or nginx version: 2.4.37
PHP version: REMI PHP 8.1.16

The issue you are facing:
Random servers on my network continue to show up in the log files with this error:

{
  "reqId": "a9s8cua9sc8PzBEB6@j1WOQAAAIc",
  "level": 2,
  "time": "2023-07-18T18:08:05+00:00",
  "remoteAddr": "10.10.10.10",
  "user": "bee069c6-bd5e-1037-9ffe-33e859c5e555",
  "app": "no app in context",
  "method": "GET",
  "url": "/ocs/v2.php/references/resolve?reference=http%3A%2F%2Frandomhostname.domain.lan",
  "message": "Host randomhostname.domain.lan was not connected to because it violates local access rules",
  "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/115.0",
  "version": "27.0.0.8",
  "data": []
}

The “randomhostname” isn’t always the same host. It’s various different hosts on my network, none of which should/would be accessing the Nextcloud server.

Why is this happening?

Never mind, I’m kind of a dummy.

This is a GET not a POST. In some of the Text files I’m documenting about the RANDOMHOSTHERE host, and the Text app is trying to reach out to that host to bring in a pretty picture of what the web server returns. However, since Nextcloud can’t talk to RANDOMHOSTHERE, it throws that error.

Sorry for the post. Hopefully this helps someone else out in the future that makes the same silly mistake I just did :slight_smile: