detect url