Eddie Shipman wrote

>> Does anyone know how to redirect these IP addresses to another address
>> using the Indy 9 HTTPServer and D7?
>>
>
> Don't accept connections from them.
>

How do I do that?  Looking at the Indy 9 HTTPServer demo, it isn't exactly
obvious how to do that.  There is a reference to the IP address in the
HTTPServerCommandGet procedure which looks at the IP address as:

TIdIOHandlerSocket(AThread.Connection.IOHandler).Binding.PeerIP

which I could look up in a listbox of "bad IPs", but how do I know it hasn't
already been acknowledged deeper down in the Indy components?

If I put a test for a bad IP there, and just simply ignore the rest of the 
Get
procedure, does that constitute not accepting the connection, or is there a
deeper structure I need to modify in Indy 9?

Thanks,
Rich 

_______________________________________________
Delphi mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi

Reply via email to