inport of BAD url detector patch