Directory listing not allowed funcion.