UnsecuredLayoutsPageBase.AllowAnonymousAccess property
SharePoint 2013
Gets a value that indicates whether users can access the page without logging in.
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)