[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 = 22.214.171.124 [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
>> read dns://126.96.36.199
>> read dns://188.8.131.52
>> read dns://184.108.40.206
== "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
- Quoted lines have been omitted from some messages.
View the message alone to see the lines that have been omitted