So, let's say that I am trying to proxy somesite.com, and I want to change this:
<!doctype html>
<html>
<body>
<img src="computerIcon.png">
</body>
</html>
to:
<!doctype html>
<html>
<body>
<img src="http://someproxy.net/?url=http://somesite.com/computerIcon.png">
</body>
</html>
And by the way, I prefer PHP.
You can use an XMLparser to update URLs of a document :
Output:
Demo: https://3v4l.org/bW68Z