Proxy Script

Discussion in 'HTML & Website Design' started by RWJohn, Dec 25, 2007.

  1. #1
    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.
     
    RWJohn, Dec 25, 2007 IP
  2. Agent_Dweeb

    Agent_Dweeb Peon

    Messages:
    5,607
    Likes Received:
    384
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Get the phproxy script and open the php file in a notepad?
     
    Agent_Dweeb, Dec 25, 2007 IP
  3. RWJohn

    RWJohn Guest

    Messages:
    14
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    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.
     
    RWJohn, Dec 25, 2007 IP
  4. faceless

    faceless Peon

    Messages:
    34
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    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).
     
    faceless, Dec 25, 2007 IP
  5. RWJohn

    RWJohn Guest

    Messages:
    14
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    is that a class file or..
     
    RWJohn, Dec 26, 2007 IP
  6. 3dom

    3dom Peon

    Messages:
    304
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #6
    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.
     
    3dom, Dec 26, 2007 IP
  7. RWJohn

    RWJohn Guest

    Messages:
    14
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Will do thanks much :)
     
    RWJohn, Dec 27, 2007 IP