You are not logged in.
On my LineageOS phone, I use the following rule to block a certain app from accessing adult websites:
sh -c 'iptables -A OUTPUT -m owner --uid-owner 10114 -m string --string ".xxx" --algo kmp -j REJECT'
But I just noticed that on archlinux, any rule with '.' in it, does not work, for example:
sudo iptables -A OUTPUT -j DROP -m string --string ".mobi" --algo kmp
whereas any rule not containing '.' works okay ( for example this one matches www.randomsite.mobi or www.mymobile.com )
sudo iptables -A OUTPUT -j DROP -m string --string "mobi" --algo kmp
Last edited by light9876 (2021-10-16 19:04:31)
Offline
I eventually solved this by using a transparent proxy.
Offline