How to hide response url when requests data from external API?
Hi all,
I am communicating with an external API and the response shows where the data comes from(website URL).
I need to hide this(or people will steal the idea behind my solution).
Is there a way to hide the response URLs for images and videos please?
I cannot work out how to send them the images with a different URL(ie: from my own domain).
The only solution I could think of is that I first need to download the images on my server first and then passes them on to the user.....but this will take time to complete each time.
Either directly from the front end(vue) and have the file downloaded via the browser of the client directly or, pass the request to Laravel, have Laravel make a copy of the file on your server and then serve the file to your client this way.
What I did tonight is this, I did not pass the request on the vue side but laravel side, copied the files for 24 hours on my server and then pass those files to the client, this way the download URLs(where I initiate the API requests from) are hidden.
The issue Martin was that I did not want my clients to see where I was downloading my files from(so they do not bypass my membership). If the API calls are initiated from the front end(vue), they can look through my code and crack the entire thing...then I lose my biz :-)
By doing it the Laravel way and copy the file locally, you can then pass the file back to the front end under your own URL(then protect your entire business idea).
I hope I explained it well.
PS: The reason I launched this business idea was that I discovered the calls/request of a competitor on another website and worked out where he was getting all his data from........then added all his ideas to my own app, as you can see, it is dangerous to initiate the calls from the front end directly:-)