Block sites /etc/host



  • I searched it on here but haven’t had any luck. Does anyone know how to block sites with etc/host on ubports. Also lol if anyone knows how to make a guest account. It doesn’t seem very safe to have admin only on here.

    Thank you



  • @augustblake :
    There could be a simplest way with adb, I don't know.
    Here is how I did with simple means, assuming that Terminal is installed :
    Put your desired hosts file in Memory Card's /Documents folder.
    This file must include the lines of the original hosts file of your phone

    Stop all radio interfaces

    Insert the memory card. Launch the Terminal.

    ls /media/phablet => XXXX-YYYY
    
    sudo mount -o remount,rw /
    cd /etc
    sudo mv hosts hosts_org
    sudo cp /media/phablet/XXXX-YYYY/Documents/hosts .
    

    Ignore "cannot create regular file" message if any
    Restart and check

    BR
    Pulsar33

    Check twice when you enter the line sudo mount ...



  • @augustblake Please explain further what you mean about guest account and admin. We don't have guest accounts unless you mean browsing without joining (very limited options). If your worried about your details they are safe but as i said explain further.



  • @Lakotaubp said in Block sites /etc/host:

    @augustblake Please explain further what you mean about guest account and admin. We don't have guest accounts unless you mean browsing without joining (very limited options). If your worried about your details they are safe but as i said explain further.

    He wants "guest" account on his ubport device.

    @augustblake said in Block sites /etc/host:

    Also lol if anyone knows how to make a guest account. It doesn’t seem very safe to have admin only on here.

    uTouch works on sandbox basis or quite similar, all important files and folders are read only, and quite all apps have low privilege access.

    Only some trusted, and reviewed apps, have full system access, and those apps will for most ask you for your account/device admin password to allow you to "mess" with important system parts.


Log in to reply