The financial website
https://wex1.in got it’s domain name deleted but it’s still possible to reach it by adding
22.214.171.124 wex1.in to etc/hosts files on a ᴘᴄ.
So how to access the website without editing
Android Enthusiasts Stack Exchange is a question and answer site for enthusiasts and power users of the Android operating system. It only takes a minute to sign up.Sign up to join this community
There are a few options you can go with:
Enter IP address directly (with port
443) to web browser's address bar instead of domain name. But this won't work if web server relies on
host header or SNI for virtually hosting multiple websites on same IP address.
It's possible to use VpnService API of Android to capture all DNS traffic without rooting phone. That's how apps like this and this work. Then the VPN app may use a custom
hosts file before making queries to configured upstream DNS server. Virtual Hosts is an open-source app to achieve this.
As suggested by @iBug, you can setup a DNS server (locally or on cloud) and configure your phone to use that for DNS queries. For instance if using
address=/wex1.in/126.96.36.199 to “dnsmasq.conf”. Or on
wex1.in 188.8.131.52 to “cloaking-rules.txt”.
Similarly other DNS servers can be configured to return a predefined IP address for a specific name.
Configure phone to use a proxy or VPN and then add the entry
184.108.40.206 wex1.in in
hosts file on proxy server or run a local DNS server on VPN server.
If you don't want to root the device but bootloader is unlocked (or possible to unlock) and a custom recovery is available, mount
/system in recovery and edit
hosts file there. Set proper permissions; ownership, mode and SELinux label.
If you don't want to modify
/system partition (e.g. to not break
dm-verity or OTAs), it's possible to bind mount a custom
hosts file from somewhere on
/data. But that would require some extra effort like defining an
init service, modifying SELinux policy etc.
Make sure not to use Private DNS (on Android 9+) so that DNS queries always go on port
PS: Same methods can be used to block ads without rooting phone.