Added a server implementation of url checking. It's a bit slow, so will refactor to client-side checking.