That’s a browsers job now a days. Firefox and Chrome have very good site warnings. Using a secure DNS will also do this.