This is an automated archive made by the Lemmit Bot.

The original was posted on /r/jailbreak by /u/paintedirondoor on 2024-09-13 13:17:40+00:00.


I was kinda bored and since i cannot find an adblock tweak for my iPhone 5s (12.5.7). i decided to go the classic unix way. and since i said i was bored so i wrote thsi post

Requirements:

  • Full read-write file system acesss (we editin shit in /etc) this is usually attainable by a rootful jailbreak
  • a way to write commands (terminal, openssh) openssh recommended. but a terminal app should do fine
  • hosts file from this github repo from the RAW FILE SOURCES section

copy/download the hosts file to the target filesystem.

$HFILE = replace with your own hosts file location.

Enter the following text in the code section.

rm /etc/hosts

since the hosts file already have local loopback. we dont need the old one. remember to replace $HFILE

mv $HFILE /etc/hosts

To update the blocklist. just rinse and repeat