Wraper for security on direct access to URL's