Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

Enhanced Proxy

 [1/4] from: nverscheure::ceimedia::com at: 10-Apr-2002 14:22


Hi all, I'm trying to write a enhanced proxy script based on the script proxy.r found in the REBOL library. http://www.reboltech.com/library/html/proxy.html In my enhanced proxy, I want to filter the request according to the IP address in order to forbidde HTTP for some computer. Can anyone tell me if it is possible (and how) to get the IP address of the computer whose proxy receive the request ? Thanx, Nicolas

 [2/4] from: petr:krenzelok:trz:cz at: 10-Apr-2002 17:55


Nicolas Verscheure wrote: Hi, look at port structure, there is a word called remote-ip, so e.g. if conn/remote-ip = 1.1.1.1 [insert port "forbidden" close conn] -pekr-

 [3/4] from: anton:lexicon at: 12-Apr-2002 0:52


Just looking at the source, I think the address is in conn/target, is that correct? Anyway, given a machine such as www.rebol.com you can look up the ip like this: ip: read dns://www.rebol.com or ip: read join dns:// "www.rebol.com" You can do it both ways, too...
>> read dns://yahoo.com
== 66.218.71.113
>> read dns://66.218.71.113
== "w2.rc.scd.yahoo.com"
>> read dns://66.218.71.114
== "w3.rc.scd.yahoo.com"
>> read dns://66.218.71.115
== "reserved.rc.scd.yahoo.com" I based my proxy server on webserver.r from the script library. Here it is: http://anton.idatam.com.au/rebol/web/no-white-web-proxy.r It's not as good as Sterling's, it looks like, but it does blow away white colour pretty well... :) Anton.

 [4/4] from: felixs:ihug:au at: 12-Apr-2002 3:24


----- Original Message ----- From: "Anton" <[anton--lexicon--net]> To: <[rebol-list--rebol--com]> Sent: Thursday, April 11, 2002 7:52 AM Subject: [REBOL] Re: Enhanced Proxy
<snip> > I based my proxy server on webserver.r from the
<<quoted lines omitted: 3>>
> but it does blow away white colour pretty well... :) > Anton.
<delurk> Hmm, that's a fun script. Thanks Anton, I hate white backgrounds too ) Anyone else see the practical joke potential? =) Felix

Notes
  • Quoted lines have been omitted from some messages.
    View the message alone to see the lines that have been omitted