10 Tips to Prevent Hackers
10 Tips to Prevent Hackers

10 Tips to Prevent Hackers

by Janith · 16 comments

Hack­ers have been around for too long, usu­ally asso­ci­ated with dark themes and “the evil side” they rep­re­sent the minor­ity of IT Gurus that just have too much time on their hands, and a touch of evilness.

Usu­ally rep­re­sented with a skull or “hor­rif­i­cally” they are iconic in a never end­ing bat­tle against inter­net crime.

Your host­ing provider should have set up your server with a cer­tain amount of secu­rity built-in. How­ever, there’s much you can do your­self to ensure your site stays unmolested.

Hack­ers play an “unwanted” yet a sig­nif­i­cant role on the net, it cre­ates thou­sands if not mil­lions of jobs, in the IT field but they are a men­ace to web­mas­ters, such as you and me alike.

Not to worry, because the fol­low­ing list of “Ten Tips” aims to tell you a lit­tle about the way mali­cious hack­ers work, and some ways of pro­tect­ing your site-and inevitably pre­serv­ing the pri­vacy of your visitors.

Ten Tips to Pre­vent Hackers

10) Com­ment Attacks

Com­ments are one of most prized fea­tures for blogs, and helps cre­ate a great rela­tion­ship between the author and the reader, and also between read­ers in the wider com­mu­nity. It would also be easy for some­one to insert HTML code that causes trouble.

You need to “val­i­date” the form input before it’s accepted, to strip out all but the most basic HTML tags, for exam­ple and also if you’re using Word­Press — you can uti­lize the “Key­word Fil­ter” to block out any harsh words that might raise an issue or two.

9) Unso­licited Instal­la­tion of Scripts

It can be dan­ger­ous to install third-party scripts and pro­grams on your web­site unless you under­stand what they are actu­ally doing. Even if you don’t fully under­stand the pro­gram­ming, you can read through the code and look for tell-tale signs such as ref­er­ences to third-party URLS.

You can also visit com­mu­nity forums such as Site­Point and Dig­i­tal­Point to ask around for bet­ter advice.

8) Avoid Scam/Spammy Websites

In a des­per­ate attempt to get vis­i­tors you might con­sider try exten­sive viral mar­ket­ing and other means of gain­ing the atten­tion, this may cause a few peo­ple in the wrong com­mu­nity to raise a few eyebrows.

The last thing you need as a set­tled web-master is to cause a stir amongst the wrong peo­ple. Stay away from web­sites and espe­cially forums that offer “infor­ma­tion” or “get traf­fic quick” that uses ille­gal spam lists and such.

7) Clear the Cookies!

web_cookie2Per­son­ally, I use a lot of pub­lic com­put­ers to blog and do other online activ­i­ties, maybe because it’s con­ve­nient or my unre­li­able ISP crashed on my once more. Inevitable there’s many, many web­mas­ters like me that use pub­lic ser­vices for either a quick access or reg­u­lar work.

Just don’t for­get to clear out the cook­ies and cache before you leave! Even if the ser­vice provider claims “no track­ing of pri­vacy” or any­thing along those lines, a quick clean before you leave wouldn’t hurt anyone.

6) Pre­vent ille­gal farm­ers’ from “har­vest­ing” your lists

Hack­ing tech­niques are used to “har­vest” email addresses, which are then used by spam­mers and other hack­ers for mali­cious activ­i­ties. If you are stor­ing email data on your web­site, for what-ever required rea­son, make sure it’s stored in a secure for­mat, such as a MySQL Database.

Most top-CMS such as Word­Press and Joomla make this com­pul­sory but there’s many self writ­ten CMS’s too. If your script sim­ply writes data to a text called “emails.txt” it won’t be long before some­one sniffs it out.

5) Make sure your files are using the cor­rect CHMOD Permissions

chmodCHMOD File Per­mis­sions assign a spe­cific value to every file/folder on your server, which allows dif­fer­ent lev­els of access.

CHMOD Per­mis­sion range from 000 (No access) to 777 (Full access), you must decide which files get what per­mis­sions, but be warned that some third party soft­ware require higher per­mis­sions to oper­ate prop­erly. You need to bal­ance out fea­tures with secu­rity and make an informed decision.

Using a FTP you can change the per­mis­sions given to each file/folder on your server. This is vital to ensure any unau­tho­rized access to your con­tent is com­pre­hen­sively denied.

Note — Make sure your CHMOD set­tings work with your cur­rent web-hosts. Some hosts pre­vent ‘777’ for secu­rity reasons.

4) Don’t use Generic Usernames

Using com­mon words for user­names such as “admin”, “admin­is­tra­tor” or “Site Owner” can cause many impli­ca­tions because you are sim­ply mak­ing the job of the hacker’s a lot eas­ier. By using such com­mon words for your user­name, you are incred­i­bly increas­ing the suc­cess rate of the hacker by at least a few points of a per­cent­age, which is con­sider a lot where only one answer can be right from an unlim­ited range of combinations.

3) Secur­ing your Ports

To put in sim­ple words, a “PORT” is used to access data from out­side the server. It also uti­lized to trans­fer data both ways, into the server and also out­go­ing. Most of this activ­ity is behind closed doors and hap­pens auto­mat­i­cally, and only trained pro­fes­sion­als tend to play around with such details.

Nev­er­the­less, ports are con­stantly opened & closed for easy-access, for pro­grams such as a FTP (File Trans­fer Pro­to­col). This can be favor­able for any hack­ers attempt­ing to access your sen­si­tive files, so make sure any unwanted ports are ‘prop­erly closed.’

2) Updated Secu­rity Patches

If your web host­ing provider hasn’t already done so, you should check that all the lat­est secu­rity patches for var­i­ous aspects of the ser­vice are prop­erly installed. As you might know, Word­Press (self-hosted) is one of the most pop­u­lar Con­tent Man­age­ment Sys­tems out there on the market.

It is used by mil­lions– so it’s not sur­pris­ing to see many hack­ers work­ing day/night try­ing to hack it. Updates and patches are reg­u­larly released, so keep an eye out for all your plug-ins/core files.

1) Use Strong Passwords!

password_starThe num­ber one tech­nique you can pos­si­bly imple­ment. Hack­ers are experts at pro­gram­ming com­put­ers to plough through huge amounts of data very quickly. That’s the rea­son longer pass­words are more secure; the num­ber of pos­si­ble com­bi­na­tions grows expo­nen­tially with every extra char­ac­ter added.

Hack­ers employ a tech­nique called “dic­tio­nary attack” where they repeat­edly try user­name and pass­word com­bi­na­tions by run­ning through hun­dreds of com­mon words, phrases, num­bers and com­bi­na­tion them till they get lucky. It’s impor­tant you use ran­dom strings like “j@m13s(!)” instead of per­haps “jamie123”

Lastly, this can­not be a ‘tip’ instead a com­plu­sory step in set­ting up your online com­mu­nity. Make sure your “.htac­cess” and “.htpass­wrd” is prop­erly for­mat­ted with the secure CHMOD of 644. This is impor­tant and adds the best out-layer of pro­tec­tion for you and your visitors.

Go to top

Article by Janith

Hey, I'm Janith. 16 years old, and livin' in Aussie.I'm with Twitter because it's the simplified version of Facebook + Myspace - crap. Along with Alex, we run Blogussion and plan to bring the blogging house down!

From Planning to Earning

A free course that explains all you need to know about maintaining and building a powerful, money making blog.

Information is delivered through a beautiful web guide & a 10 day email course (+ a weekly newsletter). Sign up, or learn more!

Make Money Tips January 6, 2009 at 11:35 pm

really great tips,
i know this cause i faced that problem,
And if your site was hacked check most of the files and replacing it with an old backup is a must,
cause they edit your files sometimes

Reply

Vennorex January 7, 2009 at 6:15 am

very useful tips although I didn’t have any hacker problems.I will be more precautious from now on

Reply

Janith January 7, 2009 at 10:14 am

Better safe, than trying to fix it.

Once a hacker gets in, you can try your best to regather – but it just won’t be the same.
I should have added “Back Up Your Data” as a point too, it’s really important that everyone does.

If your using Wordpress, there’s a plugin that emails you backups every day/week/month depending on your preference.

Reply

SoLinkable January 7, 2009 at 2:00 pm

These are some excellent tips. Security is one of my weaker skills. I’ve always wanted to learn more about it, but it can be so overwhelming… Just sitting back and hoping that your site doesn’t get hacked isn’t exactly the best way to deal with security.

Reply

Arfan January 7, 2009 at 4:54 pm

Good Tips and Have to agree it does help create Millions of Jobs

Reply

Henry January 7, 2009 at 5:20 pm

Thanks for the nice information, I never knew all of these tips.

Reply

Farrhad A January 7, 2009 at 9:43 pm

Nice tips, am making some required changes :)

Reply

michelle January 12, 2009 at 9:17 pm

Nice tips, thanks for sharing

Regards
Michelle

Reply

Janith January 15, 2009 at 10:16 am

Thank You, everyone for the comments!

I’m making another addition to this, a better explanation of how important the .htaccess and .htpasswd are.

Hopefully can publish it sometime soon :)

Reply

Beverley Aylward January 17, 2009 at 9:39 am

I wish I had found your blog a month ago My site was hacked by muslim extremists against the war and they made a complete mess of my site. Had to start from scratch. backed up now
but great content
i found you on blogcatalog
Bev

Reply

Alex January 17, 2009 at 3:38 pm

Sorry that happened to you, Beverly. But as long as you can recover, I guess that’s all the matters right?

Reply

Richael Neet January 23, 2009 at 9:42 pm

Nice collection of tips. Hackers do strike, so be prepared in advance! Opt for a good host too, who keep in par with securing the hosting platform with industry standard security tools. There have been many hackings whereby hackers accessed your site via the means of taking control of the hosting company’s servers. If in doubt, do not sign up with the host. A saving of few dollars does not justify risking your data and privacy….

Reply

Janith January 24, 2009 at 1:31 am

Well said Richael,
I can’t stress how important it is to give up a free extra dollars, so your mind can be at rest and not worry about being scammed.

I’ve seen the best/worst of both worlds – and from that experience paying the few more dollars so by far a better option.

Janith

Reply

Joe October 5, 2009 at 2:30 pm

Nice Tips! I will also be making a few changes to my site !

Reply

Team buyprintedgifts.com May 23, 2010 at 1:53 am

Nice article.
Regarsd,
Team buyprintedgifts.com

Reply

Nim @ Jobs from home August 30, 2010 at 7:29 pm

Thanks for these anti-hacking tips. I’ll surely apply all of these to all of my websites.

Reply

Leave a Comment

CommentLuv Enabled