check url before post