Sample Header Ad - 728x90

Firewall on an Android hotspot

0 votes
0 answers
257 views
So my idea for a project is a firewall for Android hotspot. Like on routers you can block access to certain websites, I want to implement it in Android. In settings, system can only limit number of connected users. There aren't advanced options (I'm using Android 13). So if I for example block instagram on my firewall, the devices connected to my mobile hotspot won't be able to access it. Like a parental control. I know I probably must root my phone for this, but it's no problem. The answers I read were old and I didn't find any specific instructions. People recommended using hosts file or iptables but I'm not sure it would work if the request isn't directly from my phone. Downloaded a few blockers but they also fail, or doesn't even have options to do this. So the main question is, is it possible ? I wanted to ask before I start digging in my phone. Information I found: https://android.stackexchange.com/questions/214660/is-there-a-way-to-set-up-a-firewall-on-mobile-hotspot-to-block-incoming-connecti https://www.reddit.com/r/AndroidQuestions/comments/ihjrbv/mobile_hotspot_allow_only_one_website/ How to use iptables in an Android application https://android.stackexchange.com/questions/144422/create-wifi-hotspot-but-block-access-certain-domains https://android.stackexchange.com/questions/195351/how-to-block-a-particular-website https://android.stackexchange.com/questions/149381/how-to-block-filter-sites-on-mobile-data-connection-preferably-using-dns-server/219405#219405 https://android.stackexchange.com/questions/16485/how-to-block-access-to-a-website/218316#218316
Asked by szymek349 (1 rep)
Oct 7, 2024, 04:07 PM