Hi, im going to try to describe my project which I'm sure a developer has a better idea how to accomplish or maybe there are coded scripts (im sure) you can use already for this.
Im pulling PNG images, charts from an API server using RESTful http call.
Something similar like this:
[url removed, login to view]
I show the image directly on a website and its not a security risk because the accounts are limited on readme only permissions but still there a couple of things I don´t like.
Some date is displayed like username, id, etc. Which can lead to a user changing the ID and pulling an image that he is not suppose to view or access. Its not something serious but I still don't want this.
I of course change the IDs and other that on the fly on a PHP code just using simple get calls or sessions.
What I need is to change this source url on the images.
This is not to avoid hotlinking or anything similar. Just to hide the API parameters.
I had 3 ideas more or less.
1. Maybe a rule with mod rewrite to rewrite the urls in the source code for this hostname (the images in the API servers are on another domain or hostname I own so maybe rewriting all images coming from that hostname). Not sure. Ideas are welcome.
2. PHP, a simple file that takes the image, and changes the url and displays it again with the changed url.
3. PHP file that actually saves the image temporary to the server to display them. I dont like this one so much because some images with stats can change every 1 minute, so using the resthttp call I can just refresh the page and get the new data, this would make it need to overwrite it all the time, consuming resouces and killing the basic idea of getting the dynamic images.
Any other ideas are welcome. I think this is very simple and if you google you will find example, but a developer or programmer may have the logic thinking or maybe he did this already in a better way.
I would not pay even 20$ for something this simple, as you can get scripts already for this, but since Freelancers minimum is 30$ if you bid this I expect something of a little quality or that does something else. This is just basically be able to change the url in the fly for this images.