I was wondering if someone could drum up what the main code in a proxy is? and how is it that it is encrypted such as phproxy when say sitename.com/proxy/a?=sdfas53s6df354sdf35s just wondering how it works from the server end. If someone could show me the core coding of it that would be great. thanks much.
I would but i can't read through all of that code im not very good at php but i just want to know what lines make it so that it a proxy.
The proxy scripts reads the source code of the website, replaces all links (<a href="...") so that all other links are also accessed by the proxy and then the script displays the modified site (only rough).
Doesn't matter if code is separated in class or pure procedural code with HTML here and there. Don't mess with self-written classes unless you know for sure what you are doing... Also proxy script re-writes all link-like attributes for images, forms, tables, css like src, background, action. PHP is pretty simple to learn with good text editor - find one with code highlight and strings numeration.