Personal Development for Smart People Forums

Personal Development for Smart PeopleTM Forums

 

Go Back   Personal Development for Smart People Forums > Personal Development > Technology & Technical Skills

Notices

Technology & Technical Skills Computer skills, hardware, software, internet topics, gadgets, programming

Reply
 
Thread Tools Display Modes
Old 10-28-2011, 03:00 PM   #1 (permalink)
Senior Member
 
Join Date: Aug 2011
Location: New York City
Posts: 209
Aminka Ozmun is on a distinguished road
Default Preventing a WordPress Site Getting Hacked

There's someone I know who works as a six-figure sysadmin for a major university that's verbally threatened to hack into my WordPress sites. (I know this person, how shall I say it, most personally and he's definitely got some level of hacking skills. He's also a bully and the kind of person who used to get kicked out of school for fighting -- so I know this is serious.)

After talking with my webhost, Bluehost, it seems like the most damage that a hacker can do is cause a momentary nuisance, as timely backups exist and can have a site restored within mere minutes.

Is this true?

What would you do with your WordPress sites (all on one shared account, if that matters) if you knew you were going to get hacking attempts??
Aminka Ozmun is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-28-2011, 04:06 PM   #2 (permalink)
Member
 
Join Date: Oct 2010
Posts: 84
dogstar will become famous soon enoughdogstar will become famous soon enough
Default

I've had my charity Wordpress site hacked before. Make sure that your directories are all set to read only as one of the hacks was uploaded to one of my directories.

Also be sure to back up your WP database as recommended by your hosting provider. It's pretty easy to rebuild your site from that if it does get hacked.

Good luck!
dogstar is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-28-2011, 05:07 PM   #3 (permalink)
Member
 
Join Date: Jun 2011
Posts: 30
apsinvo is on a distinguished road
Default

Quote:
Originally Posted by Aminka Ozmun View Post
There's someone I know who works as a six-figure sysadmin for a major university that's verbally threatened to hack into my WordPress sites. (I know this person, how shall I say it, most personally and he's definitely got some level of hacking skills. He's also a bully and the kind of person who used to get kicked out of school for fighting -- so I know this is serious.)

After talking with my webhost, Bluehost, it seems like the most damage that a hacker can do is cause a momentary nuisance, as timely backups exist and can have a site restored within mere minutes.

Is this true?

What would you do with your WordPress sites (all on one shared account, if that matters) if you knew you were going to get hacking attempts??
I am a sysadmin of 10 years by professional and have the following advice;

1. Make sure all your passwords for access are strong. example: vKf8D%c!
2. Make sure all your passwords are different between wordpress, hosting account, email, etc.
3. Make sure permissions are set correctly on your files/installation.
4. Make sure wordpress, all themes, and modules are totally up to date.
5. Remove any unnecessary modules that you don't need or want.
6. Don't get hacked yourself! i.e. clicking on fake links in bogus emails sent, or being tricked into entering your details anywhere.
7. Make sure your own PC is up to date with patches and antivirus, run a virus scan, remove any and all junk you don't need.
8. Scan your own PC with a separate virus scan - I usually use the free TRENDMICRO online one.

Hope this helps and good luck. Don't worry. People talk a lot of BS online

EDIT: Also take full backups of your hosting account(s).
apsinvo is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-28-2011, 05:37 PM   #4 (permalink)
Senior Member
 
Join Date: Aug 2011
Location: New York City
Posts: 209
Aminka Ozmun is on a distinguished road
Default

Thanks, dogstar -- but for at least one of my sites I'd like to have a forum and other interactive aspects. Sound like write-protecting my directories would prohibit that, right? I guess I just have to render read-only specific folders, correct??

Thanks as well, apsinvo, for your tips. Sounds like there's really nothing to be done except adopt all the standard precautions (I'll need to look into setting up permissions)....
Aminka Ozmun is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-28-2011, 07:02 PM   #5 (permalink)
Member
 
Join Date: Oct 2010
Posts: 84
dogstar will become famous soon enoughdogstar will become famous soon enough
Default

Quote:
Originally Posted by Aminka Ozmun View Post
Thanks, dogstar -- but for at least one of my sites I'd like to have a forum and other interactive aspects. Sound like write-protecting my directories would prohibit that, right? I guess I just have to render read-only specific folders, correct??
That would depend on how your forum solution is implemented. If it writes to a database and not a file system, modifying the permissions of your file systems under your Wordpress directory shouldn't have any impact. How familiar are you with the implementation of your forums and other interactive components?

I would certainly test the site after you modify any permissions as well to make sure that it still works correctly. You can always change them back.
dogstar is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-28-2011, 07:28 PM   #6 (permalink)
Family Member
 
Join Date: Nov 2006
Location: Somewhere in time...
Posts: 2,213
Lil Chris is a splendid one to beholdLil Chris is a splendid one to beholdLil Chris is a splendid one to beholdLil Chris is a splendid one to beholdLil Chris is a splendid one to beholdLil Chris is a splendid one to beholdLil Chris is a splendid one to beholdLil Chris is a splendid one to behold
Default

Also, you could install a plug-in called WordPress File Monitor to monitor any changes that happen on your site. This can be a pain if you are always making changes, but it'll help keep an eye on things actively. You can always turn it on when you are not making changes and turn it off when you are.

I wouldn't worry too much, you can always restore from a back up like your host mentioned.
Lil Chris is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-31-2011, 07:54 PM   #7 (permalink)
Junior Member
 
Join Date: Oct 2011
Posts: 15
Peter T is on a distinguished road
Default

Always install latest versions plugins and if you don't update plugin then you are exposing yourself to vulnerabilities. well, if you know some one who has hacked your site then you can report him to authorities.
Peter T is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-09-2011, 10:53 PM   #8 (permalink)
Senior Member
 
Join Date: Feb 2011
Location: Monkton, Maryland
Posts: 262
Justin Mazza will become famous soon enoughJustin Mazza will become famous soon enough
Default

There is a free WordPress plugin called Login Lockdown. Adds some extra security to WordPress by restricting the rate at which failed logins can be re-attempted from a given IP range.
Justin Mazza is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-12-2011, 03:24 AM   #9 (permalink)
Senior Member
 
Join Date: Nov 2006
Location: Ballarat, Victoria, Australia
Posts: 287
aussieNickuss will become famous soon enough
Default

If you to set all directories in your wordpress install to read-only, then you're not going to be able to automatically install or update plugins through the wp-admin interface as that requires write access to at least the wp-content folder. You're also not going to be able to auto-update your wordpress installation either. That's not stopping you from locking down your install though, because if you're up for it, you can install/update plugins and update wordpress manually.

If you really want to lock things down, but don't want to lose too much flexibility... my suggestion would be to set read-only to the wp-admin, wp-includes and all the files that sit within the root directory (including files such as wp-config.php, wp-settings.php and index.php). Leave the wp-content folder writable only by the system (on a unix server, that would be 755). When it comes time to update wordpress itself (which will be very soon with the 3.3 release), follow the instructions to manually update it (or temporarily allow write access to the files/folders mentioned above).

I've had one Wordpress site "hacked" and it actually came about by my clients PC being infected by a virus. While they were FTP'ing into the server (to bulk upload images) the virus that had infected their PC wrote to the wp-settings.php file and inserted a small bit of javascript to output to the wordpress pages. That's why you have to ensure your own PC is just as secure as your web server.
aussieNickuss is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-22-2011, 03:53 PM   #10 (permalink)
Senior Member
 
Join Date: Aug 2011
Location: New York City
Posts: 209
Aminka Ozmun is on a distinguished road
Default

Hey, Everyone,

Been away a few weeks to deal with school and work and life offline...just a quick note to say thanks so much for the suggestions! I don't want to detail the measures I've taken but I do want to note that all your feedback has been really helpful!!
Aminka Ozmun is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Wordpress as a CMS for building a site (not a blog) ron7519 Business & Financial 3 03-21-2011 01:27 PM
Is wordpress suitable for non-blog SBI-type site? runningbird Technology & Technical Skills 4 04-23-2009 02:21 AM
I think my site has been hacked runningbird Technology & Technical Skills 11 04-05-2009 11:55 PM
Making wordpress site into business site trekr5 Technology & Technical Skills 3 07-03-2007 03:01 AM


All times are GMT. The time now is 05:43 AM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Copyright © 2010 by Pavlina LLC