refine binary search and ip blacklist