Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

CSS How to Make a Website Sharing a Website Upload the Website

Corey Hayden
Corey Hayden
11,717 Points

Are there security precautions that need to be taken to protect visitors to my site?

What, if any, security precautions need to be taken to protect visitors to my site, and if so, are there domain registration services and hosting services that are better than others for this?

jerry bremser
jerry bremser
3,941 Points

when you sign up for everything (hosting, etc), they usually offer you a type of protection. the more protection the more money youll have to pay.

3 Answers

Sue Dough
Sue Dough
35,800 Points

A good host can't prevent you from most security attacks like others suggested. They can protect the infrastructure and their network but that won't stop someone from doing XSS or a MYSQL injection for example. Your coding standards matter. Security threats are bigger than ever. An SSL won't fully protect you either but you SHOULD have it. You will need to follow best practices for security when building a web application. There is many different types of attacks. There is lots of great information with examples on https://www.owasp.org/index.php/Main_Page .

jerry bremser
jerry bremser
3,941 Points

when you sign up for everything (hosting, etc), they usually offer you a type of protection. the more protection the more money youll have to pay.

I think this all depends on the nature of the site. Is it an e-commerce site, or something that will be using sensitive user info? If so, you'll need to contact the hosting company as you will need a security certificate.