referer must use http or https
add a gitlab test
test referer if no repo is set
manage error