This article was co-authored by Anar Kazimov and by wikiHow staff writer, Jack Lloyd. Anar Kazimov is a Digital Marketing Expert based in Vancouver, Canada. He is the Owner and Marketing Director of Pixel Prodigies, a company created to help business owners achieve more sales by revamping their digital portfolio. He has helped the NIH, IBM, Canadian film studios, Rolex dealerships, and many other firms in their marketing campaigns. He previously had a career in the IT industry and worked at Freelancer.com. He received a BS in Computer Science from the University of Victoria.
The wikiHow Tech Team also followed the article's instructions and verified that they work.
This article has been viewed 195,741 times.
This wikiHow teaches you how to ensure that your website is protected from attacks. Using an SSL certificate and HTTPS is the easiest way to secure an address, but there are a few other things you can do to prevent hackers and malware from compromising your website.
Steps
-
Keep your website up to date. Failing to update your website's software, security, and scripts when necessary is a sure way to allow intruders and malware to take advantage of your site.
- This goes for patches from your website's hosting service as well (if applicable). Whenever an update for your website is available, install it as immediately as possible.
- You should also keep your site's certificates up to date. While this won't directly affect your website's security, it will ensure that your website continues to show up in search engines.
-
Use security software or plugins. There are several different website firewalls to which you can subscribe for constant protection, and website hosting services like WordPress often offer security plugins as well. Just like protecting your computer with an antivirus program, it's wise to protect your website with security software.
- Sucuri Firewall is a good paid option, and you should be able to find free firewall or security plugins for WordPress, Weebly, Wix, and other hosting services.
- Website application firewalls (WAFs) are usually cloud-based, meaning you shouldn't have to download any software onto your computer in order to use them.
Advertisement -
Prevent users from uploading files. Allowing people to upload files to your website automatically creates a security vulnerability. If possible, remove any forms or areas to which website users can upload files.
- Limiting forms which allow uploads to support only one file type (e.g., a JPG for photos) is another possible fix for this problem.
- This can be tricky if your website relies on a webpage form for things like cover letter submissions. You can get around this problem by setting up an email address for submissions and adding the address to your "Contact" page so that users can email their files rather than uploading them to your website.
-
Install an SSL certificate. An SSL certificate essentially confirms that your website is secure and able to transfer encrypted information back and forth between your server and a person's browser. You'll usually have to pay a yearly fee to maintain your SSL certificate.[1]
- Paid SSL distribution options include GoGetSSL and SSLs.com.
- A free service called "Let's Encrypt" will also issue an SSL certificate.
- When choosing an SSL certificate, you have three options: domain validation, business validation, and extended validation. Both business validation and extended validation are required by Google in order to receive the green "Secure" bar next to your site's URL.[2]
-
Use HTTPS encryption. Once you've installed an SSL certificate, your website should qualify for HTTPS encryption; you can usually activate the HTTPS encryption by installing your SSL certificate to your website's "Certificates" section.[3]
- If you use a website platform such as WordPress or Weebly, your website probably already uses HTTPS.
- An HTTPS certificate must be renewed every year.
-
Create secure passwords. Using unique passwords for your admin-level site aspects isn't enough; you'll need to come up with complicated, random passwords which aren't replicated anywhere else and store their key somewhere outside of the website's directory.[4]
- For example, you might use a 16-digit jumble of letters and numbers as a password. You could then store the password in an offline file on a different computer or hard drive.
-
Hide your admin folders. Naming your website's sensitive files' folder "admin" or "root" is convenient; unfortunately, this goes for both you and hackers alike. Changing these files' location's name to something boring (e.g., "New folder (2)" or "history") can make it harder for would-be attackers to locate your files.[5]
-
Keep error messages simple. If your error message gives away too much information, hackers and malware can exploit the information to find and gain access to things like your website's root directory. Instead of adding explicit details to your website error messages, consider offering a concise apology and linking back to the main website.[6]
- This goes for anything from 404 errors to 500-type server codes.
-
Always hash passwords. If you store user passwords on your website, be sure to store them in an hashed format. A common error among new website owners is storing passwords in plain text format, which makes the passwords easy to steal if a hacker manages to find the file.
- Even prolific sites such as Twitter have been guilty of this error in the past.
Community Q&A
-
QuestionWhat is the meaning of the word "encryption"?Community AnswerEncryption is the process of converting information or data into a code, especially to prevent unauthorized access.
-
QuestionDo hosting websites provide complete security with the yearly fees?Community AnswerYes, typically for three dollars a year, you can get full security for your website.
-
QuestionWhat is a hashed format password?Free EagleCommunity AnswerA hashed password becomes an encrypted password in on the server it is stored in. So if your password was something like "Salt&Pepp3r", the server would store the password as something like: "2fde1c67a2d28fced840ee1bb76". Since a hashed password operates in only one direction, it's almost impossible for someone to hack the server and reverse the password. In other words see the "2fde1c67a2d28fced840ee1bb76" in storage, enter that and have it translate back to "Salt&Pepp3r", it won't happen.
Video
Tips
-
Hiring a web security consultant to take a look at your scripts is the quickest (albeit the most expensive) way to address potential flaws in your website.Thanks
-
Always test your website via a security tool (e.g., Observatory by Mozilla) before publishing the latest version.Thanks
Warnings
- Security vulnerabilities often aren't discovered until after they've affected someone. To avoid as many negative consequences as possible, remember to back up your website to an external location (e.g., a non-networked computer or hard drive) every week.Thanks
Expert Interview
Thanks for reading our article! If you’d like to learn more about digital marketing, check out our in-depth interview with Anar Kazimov.
References
- ↑ https://www.networksolutions.com/
- ↑ https://www.smashingmagazine.com/2017/06/guide-switching-http-https/
- ↑ https://support.google.com/webmasters/answer/6073543?hl=en
- ↑ https://www.hostgator.com/blog/3-easy-steps-that-protect-your-website-from-hackers/
- ↑ https://smallbiztrends.com/2014/12/secure-your-website-from-hackers.html
- ↑ https://www.creativebloq.com/web-design/website-security-tips-protect-your-site-7122853