adds ip filtering to the front adn back