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

  1. 1
    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.
  2. 2
    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.[1]
    • 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
  3. 3
    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.
  4. 4
    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.[2]
    • 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.[3]
  5. 5
    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.[4]
    • 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.
  6. 6
    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.[5]
    • 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.
  7. 7
    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.[6]
  8. 8
    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.[7]
    • This goes for anything from 404 errors to 500-type server codes.
  9. 9
    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.
  10. Advertisement

Community Q&A

  • Question
    What is the meaning of the word "encryption"?
    Community Answer
    Community Answer
    Encryption is the process of converting information or data into a code, especially to prevent unauthorized access.
  • Question
    Do hosting websites provide complete security with the yearly fees?
    Nicole Futoryansky
    Nicole Futoryansky
    Community Answer
    Yes, typically for three dollars a year, you can get full security for your website.
  • Question
    What is a hashed format password?
    Free Eagle
    Free Eagle
    Community Answer
    A 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.
Advertisement

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.
    ⧼thumbs_response⧽
Advertisement

About This Article

Jack Lloyd
Written by:
wikiHow Technology Writer
This article was co-authored by wikiHow staff writer, Jack Lloyd. Jack Lloyd is a Technology Writer and Editor for wikiHow. He has over two years of experience writing and editing technology-related articles. He is technology enthusiast and an English teacher. This article has been viewed 182,074 times.
How helpful is this?
Co-authors: 15
Updated: September 16, 2021
Views: 182,074
Advertisement