BLC ignores /etc/hosts
-
BLC seems to ignore
/etc/hosts
for the purposes of domain name resolution.I’m trying to redirect requests for my own domain to the local host, as the domain name normally resolves to Cloudflare and I’d like to avoid hitting Cloudflare just to query localhost.
I have the relevant entry in
/etc/hosts
and everything else on the system uses it correctly (including PHP when I do e.g.plesk php -r "echo gethostbyname('mydomain.com');"
), but BLC does not – I can clearly see its traffic going through Cloudflare still, using e.g.tcpdump
.Can this be fixed, or worked around? I searched through the BLC source but couldn’t find any suitable filter hooks or similar.
As far as I can tell it’s not using
curl
(I see nocurl
processes spawn when I force a link recheck), so I guess it’s using WordPress’s built-inwp_safe_remote_get
?
- The topic ‘BLC ignores /etc/hosts’ is closed to new replies.