A proposed new code aims to stop Australians losing almost $3 billion to scammers as they did last year.