php - Hide HTTP request URLs in Flutter

I have an HTTP request, I need to encrypt my HTTP call URL, so it can't be tracked, because when I tried to find the call URL, it was too easy by installing HTTPCanary from google play, so now I am confused. Is there any way to do it in Flutter? (btw I have access to the backend of the URL, and it is written in PHP)

Answer

Solution:

There is no way to hide the URL of your HTTP requests from your phone.


The reason is very straight forward: your phone needs to know where to send the request.

How do you expect your phone to know where to send the request if you encrypt the URL?
You could use the IP address directly, however, that is the same thing - just without the DNS proxy.

See also:

Making requests secure

The endpoint (the URL you are trying to access) is what you need to secure instead.
Always design your backend security knowing that anyone could send requests at any point in time.

Source