Distinguish between root dir and root path
Log user-agent when submitting