Skip to content

Latest commit

 

History

History
11 lines (7 loc) · 444 Bytes

README.md

File metadata and controls

11 lines (7 loc) · 444 Bytes

RequestsBlocker

Blocks requests according to IP

Guidelines

You've got a list of suspicious IPs in CIDR notation.

You need to block requests arriving from these IPs. Implement the fun isAllowed(incomingIp: String): Boolean

The implementation has to be in Kotlin

A working solution isn't the only requirement. The code should be simple (to read and understand), robust and testable (you don't have to write the actual tests though..).