Add option to block location redirect