the block function doesn't seem to work for a particular IP for some reason, not sure if this is due to my if statement or what