The Best Practices to Mitigate Web and Mobile App Security Threats