add two functions to test the restrict of site