add basic functions to check url safety