I want to implement the proxy website like kproxy.com, so that I can load any website in my site's iframe and proxy all the data of website from my server
I have checked their functionality and I found out that they replace all the script tags, link(css) tags and image tags to fetch the content from their server
eg. if original website contains tag like
<script src="http://google.com/abc.js"></script>
they will replace it with
<script src="http://kproxy.com/redirect/foo/bar/abc.js"></script>
I have accomplished this kind of functionality with replacing all nodes so they can be proxied through my server
but now the problem remains with the ajax calls, which will be originated by javascript and will call the original server, so in my iframe I will sometimes get "x-frame-options = SAMEORIGIN"
error
So what can I do for having the same functionality like kproxy does? and proxy all the traffic through my server only.