Basic rape middleware