Closed bagbyte closed 2 years ago
I have a similar problem on iPhone 8 iOS 13.5 and iPhone X iOS 13.5, both checkra1ned. My hosts entries are only respected by Safari but not by other apps. I've installed mDNSResponder from Sam Bingner's repo and LetMeBlock 0.0.7.1 from you and also reinstalled LMB several times. I've also restarted the devices after making changes to the hosts file and rejailbreaked it again. My hosts file includes ipv4 as well as ipv6 entries (127.0.0.1 / ::1) and every domain is listed twice. Once with www. and once without. Strangely enough, the block is not system-wide. My hosts file doesn't exceed the 1MB limit, in fact it's 4KB big and has already not worked with even fewer entries. It would be cool if you could look at it or give some tips! Thanks in advance.
Edit: After thinking about it further and reading Tweak.xm I came to the possible conclusion that UHB has to be installed. Is this the case? Do I need UHB for it?
Bizarre. You can see from hooking of fopen
and open
that it will fall back to the default host file if UHB’s host file is not found.
I will see if iOS 13.5 has yet another weird blocker.
Thank you! I did some more testing yesterday and can rule out that it is due to a wrong file encoding or Windows linebreaks (\r\n). I also replaced all spaces between IP and hostname with a tab as I read that this helped some people. The funny thing is that I currently do not have mDNSResponder from sbingner installed and the domains are still blocked in Safari. This did not work before, I had to install mDNSResponder manually although launchctl showed that it was already included. After I installed and uninstalled mDNSResponder a few times, it now works without this daemon from Cydia in Safari.
If you need further assistance with testing, please let me know.
@trapke It is working for you now?
@PoomSmart I'm afraid not. I tested further and replaced all 127.0.0.1 entries with 0.0.0.0, but that didn't bring any success either. When I ping the hosts, the connection cannot be established. However, it still works in apps and tweaks.
@trapke What's the issue now?
Closed due to inactivity.
@PoomSmart I'm afraid not. I tested further and replaced all 127.0.0.1 entries with 0.0.0.0, but that didn't bring any success either. When I ping the hosts, the connection cannot be established. However, it still works in apps and tweaks.
@trapke Can you share how you solved it?
I’m using an iPhone X running
iOS 13.5
andLetMeBlock 0.0.7.1
My changes to
/etc/hosts
are not taken in account, I’ve tried to execute thekillall
commands after the changes, but still not working, I’ve also tried to uninstall and rest all LetMeBlock, respring again thekillall
commands, but still not workingI've managed to gather the logs of
mDNSResponder
process when I request the website which should be blocked on Safari: