Preventing access by means of obstacles raising across the route