How to stop duplicates contacts entering Salesforce?

To stop duplicate contacts, accounts and leads from entering Salesforce do the following: