coding proxy

Discussion in 'PHP' started by decepti0n, Jul 21, 2006.

  1. #1
    Just wondering, what sort of functions etc would I have to look into to fully code a proxy class from the ground up (like PHProxy and CGI proxy).

    Yeah im aware it'll be complicated as all hell, but im still just wondering, and also, what sort of things proxies would need? Like different things that would need to be done to the pages that are searched?

    Thanks
     
    decepti0n, Jul 21, 2006 IP
  2. coderlinks

    coderlinks Peon

    Messages:
    282
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Hi,
    Cool idea!!
    You would need lots of stuff. I will list some stuff below:

    1. Some functions to fetch URLs. (Snoopy class?) This would include HTTPS and HTTP.
    2. Some javascript to do client-side processing, like creating bitmask value from the options (like PHProxy does) and also for hiding the URL.
    3. Some encoding functions like ROT13 and BASE64 to encode the URLs.
    4. A page parser, to parse the HTML page and convert the links,images etc. to redirect through the proxy itself

    thats all I can think of now....

    Thomas:cool:
     
    coderlinks, Jul 21, 2006 IP
  3. decepti0n

    decepti0n Peon

    Messages:
    519
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Hey, thanks for the help, i'll have a look at those things tomorrow.

    Anyone else? :)
     
    decepti0n, Jul 21, 2006 IP
  4. Mrblogs

    Mrblogs Peon

    Messages:
    48
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Are you talking about a SOCKS proxy, or just a HTTP one?
     
    Mrblogs, Jul 21, 2006 IP
  5. coderlinks

    coderlinks Peon

    Messages:
    282
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    0
    #5
    coderlinks, Jul 21, 2006 IP
  6. decepti0n

    decepti0n Peon

    Messages:
    519
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Yeah, one similar to PHProxy, just i'll cram a crapload of extra features in it
     
    decepti0n, Jul 22, 2006 IP
  7. coderlinks

    coderlinks Peon

    Messages:
    282
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    0
    #7
    You can also make it so that it can be routed through ANOTHER remote HTTP or SOCKS proxy.

    Just an idea...
    Thomas
     
    coderlinks, Jul 22, 2006 IP
  8. ottodo

    ottodo Guest

    Messages:
    2,055
    Likes Received:
    70
    Best Answers:
    0
    Trophy Points:
    0
    #8
    hi,
    i did one 3 years ago,
    it was java based
    the main ideas is
    create 2 socket on the proxy
    1 is listening to client.
    2 is connect to server.
    i hope this help u
     
    ottodo, Jul 22, 2006 IP
  9. ravianz

    ravianz Notable Member

    Messages:
    1,536
    Likes Received:
    55
    Best Answers:
    0
    Trophy Points:
    250
    #9
    mean we are getting request from our client and then through another process we run that and then give the dive to our client? am i in right direction ottodo??

    if it is so then we might be in trouble if some one does some sort of fraud through our proxy site???

    infect i am also interested to make a PHP proxy or i can also do using JAVA..
     
    ravianz, Jul 22, 2006 IP
  10. decepti0n

    decepti0n Peon

    Messages:
    519
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    0
    #10
    I'll be logging every site search and used through the proxy, and the users IP etc, if anything illegal goes down i'll ensure I have all the information that whoever wants :D

    All im looking for is some pushes in the direction of PHP/JS functions or scripts that can help me out.

    And yeah I'll be scouring the PHProxy code for a while :)
     
    decepti0n, Jul 22, 2006 IP
  11. coderlinks

    coderlinks Peon

    Messages:
    282
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    0
    #11
    It will be a good thing to log those IPs and searches. In fact you may discover new profitable niches by just looking at those searches. I am looking for a good and cheap web hosting solution to run a proxy...

    Thomas
     
    coderlinks, Jul 22, 2006 IP