Make index page secure