In a TIdHTTPServer
component, I'd like to enable a blacklist of IP addresses to block. I'd like to make sure this is on the lowest level possible to prevent any unnecessary data streaming in from a blacklisted client. How should I intercept this server component to block an IP on the lowest level possible? This applies to both IP v4 and v6
相关问题
- Is there a Delphi 5 component that can handle .png
- Is there a way to install Delphi 2010 on Windows 2
- Is TWebBrowser dependant on IE version?
- iOS objective-c object: When to use release and wh
- DBGrid - How to set an individual background color
相关文章
- Best way to implement MVVM bindings (View <-> V
- Windows EventLog: How fast are operations with it?
- How to force Delphi compiler to display all hints
- Coloring cell background on firemonkey stringgrid
- HelpInsight documentation in Delphi 2007
- Can RTTI interrogate types from project code at de
- What specifically causes EPrivilege to be raised?
- Equivalent to designer guidelines in code
On Indy 9, there was an event for refusing a connection before it was actually accepted. On Indy 10, it's still not implemented.
If you look at IdCustomTCPServer.pas, in
procedure TIdListenerThread.Run
there is a comment in there about exposing an event to the user to let them decide whether the connection should be accepted.I would modify the source and implement it there.
If that's not for you, then you can disconnect them in the OnConnect event.