To speed that up: Once they get past the filter, set a cookie. Then just check for the cookie on each page. Then you only hit the array once (it will get bigger over time). If the cookie was not set, then redirect to the cookie-setting page.