Guidelines on How you can Protect Your Site from Getting Hacked


Hacking is an issue that has been faced since a long time. People are hacking websites, email ids, social media profiles and everything they can. It is not necessary that websites are hacked to steal your data but, it may even be to use your server as an email relay for spam or to setup a temporary web server to send illegal files to the users. Hacking is done through automated scripts. Last year saw a 180% increase in the number of sites getting hacked! Hence, we bring you a few tips that you must follow to prevent your website from facing hacking issues.


It is a well-known fact that you must have a strong password to protect anyone from hacking it. A strong password means one which is long – more than 8 characters in length, because longer passwords are harder to guess. Your password should also include a combination of numbers and alphabets, with a mix of upper case and lower case letters. Keep your password complicated for others to guess but, easy enough for you to remember. You can turn on a 2-factor authentication for strengthening your account’s security. You should store your password as encrypted values, preferably using a one-way hashing algorithm like SHA or you can also salt your passwords using a new salt per password. Remember not to use the same password across multiple services.

Hosting Provider

Check with your hosting provider to offer you with support for dealing with issues related to website hacking. If you do not have a hosting provider, you need to be well-prepared yourself to deal with such complex issues related to website security. Generally, the hosting companies take care of applying security updates for the operating system you are using. So, be sure to check with them.

Error messages

When sending error messages, be careful about what you indicate. Be very cautious while using the language to communicate with the users. In a login form, if a user types incorrectly, you must only say “Incorrect username or password”. Do not instead indicate which one of the two is incorrect. For example, if you indicate that only the password is wrong, and the person trying to login is a hacker, he will now only have to concentrate on hacking the password because he knows that the username is correct.


Ensuring that all your software is up-to-date will keep your website secure. This applies to both server operating system and any software you may be running like CMS or forum. Outdated software is a very common way in which a hacker can get control of your site. So, make sure to keep your plug-ins and add-ons updated. Some softwares like WordPress, Umbraco and CMS notify you of available updates when you log in. Make sure to keep them updated with time.

File uploads

Allowing users to upload files on your website can be quite risky. It is possible that an uploaded file can contain a script that can open up your site when executed. So, you need to treat your uploaded files with great caution. You need to stop users from being able to execute a file that they upload. What you can do is rename the file on uploading to ensure the correct file extension or change file permissions. You must also prevent direct access to uploaded files. Hence, you will need to create a script to fetch the files from the private folder and deliver them to the browser.


You must always consider validation done on both the browser as well as server side. Browsers are well-built to get hold of minute failures like a certain field left blank while filling a form or when you enter a text in a numeric field. If these failures are neglected, you may be in for a malicious or scripting code being inserted into the database. Hence, make sure to check for browser validation and deeper validation server side.

If you want to have a secured website from a trusted web hosting company, Jain Technosoft is where you should come to. They are also one of the leading SEO companies in Bangalore, who have a skilled team of web developers and web designers to create the perfect website for you.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s