Autonomous Ships (again)

Ships could just shoot out thin lines of kevlar rope in the path of oncoming pirates, that might have the same effect, kevlar floats so lines of it would get caught in their propellers.

Piracy only seems to be a big problem around Nigerian waters these days, so there might not be a big market for technology to fight it.