Initial implementation of referrer checks - to make trustworthy custom templates possible
Changed the security exception response code to 403 with details in content