vibe.d beta banner
get vibe.d
0.9.3

Asynchronous I/O that doesn’t get in your way, written in D

Variable HTTPServerSettings.rejectConnectionPredicate

Provides a way to reject incoming connections as early as possible.

class HTTPServerSettings
{
  // ...
  DFNbNfIS4vibe4core3net14NetworkAddressZb rejectConnectionPredicate ;
  // ...
}

Allows to ban and unban network addresses and reduce the impact of DOS attacks.

If the callback returns true for a specific NetworkAddress, then all incoming requests from that address will be rejected.

Authors

Sönke Ludwig, Jan Krüger, Ilya Shipunov

Copyright

© 2012-2017 Sönke Ludwig

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.