• << Back to 5-Rings.com
  • |
  • Blog Home
  • |
  • About the Author
  • |
  • Sample Chapter
  • ||

What to do when your WordPress blog’s been compromised (Round Two)

Posted: under writing.
Tags: 5-Rings, Anati, theme, write

This is part two of a two-part series of posts on what to do if your self-hosted WordPress page has been hacked. If you haven’t yet, I strongly advise reading part 1 first. 

Round Two – Begin!
  1. The automation quandary.
     

    One thing that’s a pain in the butt for sure: There’s no way to automate updates for WordPress!
    If we want true peace of mind, we pretty much have to visit the WordPress backend every single day, or at least get Emails notifying us when updates are available for WordPress, and be unusually proactive about it–Especially with your add-ons, checking to see whether or not your active plug-ins are even being updated any more.

    (If you know of a way to automate updates on WordPress, please let me know.)
    So now, not only do webmasters have to keep their website software in check, but they also should be keeping track of program updates on all of their computers all of the time (And not just FTP programs. I’m talking about programs you’d never think of updating, such as Adobe Air).

    One way they may have gotten to my website is through an FTP program called Filezilla. Hackers can get full access to your website’s files using exploits if you happen to have an FTP installed on one of your computers and it happens to be outdated.

    I use three different computers, two of them on a regular basis. One of them had an outdated installation of Filezilla on it. Now it’s been updated. But every time I see another update, I pretty much have to run to the other computers and make sure they get updated, too.

    Pain. In. The. Ass.

    Luckily, I’ve found a better way.

    I don’t know if you have a smartphone, but one thing that’s great about them is they notify you when updates are available for all of your applications. You just touch ‘download and install’ and it starts doing just that in the background, much like how Windows Update works. No extra footwork required from you.

    There’s a program that behaves much the same way for Windows-based computers called Secunia PSI. It scans for installed programs, and listens for updates in the background, installing them right away (that is, if you choose to set it to’ automatic’). Once you have your PCs and laptops on auto-pilot, Secunia will make sure everything from Winamp to Avast! Antivirus stays up to date, up-to-the-minute (it even listens for Firefox and Chrome plug-in updates). And in most cases, there’s no extra footwork required.

     

     

     

     

  2.  

  3. The structure of web files, and their ‘rights’.
     

    When I first got my web space, one thing that was overwhelming to me was the file structure. It’s nothing like a C:\ drive, and there was no explanation from the web hosts telling me what’s what. I had to experiment and use a lot of guesswork to try and piece things together. 

    Unfortunately, if you don’t know why the structure is the way it is and what files do what and go where, it’s very difficult to track down a hack and fix it, much like looking for the proverbial needle in a haystack (if you’ll excuse the cliché), except it’s multiple haystacks and you don’t even know what the needle looks like.

    Certain files and folders need certain rights, and if you don’t have them PERFECT, if you make one single mistake, your entire site can be compromised.

    The domain root folder structure:

    I’ve
    only been on one web host, so I can’t be sure they’re all the
    same, but mine’s laid out like this: (I’ll label the directories we’re concerned with right now.)

    =============================================
    / <-(This is the system root directory. There are important config files in here. These are not publicly accessible.)
    /.cpaddons
    /.cpan
    /.cpanel
    /.cpcpan
    /.entropybanner
    /.fantasticodata
    /.fontconfig
    /.htmltemplates
    /.htpasswords
    /.MirrorSearch
    /.sqmaildata
    /.trash
    /access-logs
    /bin
    /cpmove.psql
    /etc
    /mail
    /php
    /public_ftp
    /public_html <-(This is the web root, where all the files that are publicly accessible are located. Literally, this is www.5-Rings.com and all of its subdirectories.)
    /quarantine
    /sql
    /sql_restore
    /tmp
    /www <-(This is literally a redirect to public_html.)
    =============================================

    Starting with the System Root directory (the plain ol’ forward slash), there may be an .htaccess file here, depending on if your server is being run with Apache or not. 

     

     

     

    One interesting thing to note is if there is a dot in front of a file, browsers ignore the file entirely. But that doesn’t mean the web host cannot preprocess commands from one of these dot files before displaying a web page to the end-user (a server-side command). 

     

     

     

    The rights to the files in this directory should be ‘644’. That is, everyone can read the files, but only you can write to it. 


    The power of .htaccess: Read the rest of this entry »

Comments (3) Apr 10 2011


Subscribe!
 
...by RSS Feed


...by Email

 

April 2011
S M T W T F S
« Mar   May »
 12
3456789
10111213141516
17181920212223
24252627282930

Tweets->

  • No public Twitter messages.

Recent Comments

  • Merrilee on I’ve had a vision: A Word Processor for Fantasy Novel Writers!
  • Ryan G. Sanders on I’ve had a vision: A Word Processor for Fantasy Novel Writers!
  • Nick Enlowe on I’ve had a vision: A Word Processor for Fantasy Novel Writers!
  • Ryan G. Sanders on I’ve had a vision: A Word Processor for Fantasy Novel Writers!
  • Brian on I’ve had a vision: A Word Processor for Fantasy Novel Writers!

Recent Posts

  • Something big’s going on
  • I’ve had a vision: A Word Processor for Fantasy Novel Writers!
  • Writing Journal Entry for 02-06
  • Journal entry for 1-31
  • This morning’s journal entry.

Archives

  • February 2012
  • January 2012
  • December 2011
  • November 2011
  • October 2011
  • September 2011
  • August 2011
  • July 2011
  • June 2011
  • May 2011
  • April 2011
  • March 2011
  • February 2011
  • January 2011
  • December 2010
  • November 2010
  • October 2010
  • September 2010
  • August 2010
  • July 2010
  • June 2010
  • May 2010
  • April 2010
  • March 2010
  • February 2010
  • January 2010
  • December 2009
  • November 2009
  • September 2009
  • August 2009
  • July 2009
  • June 2009
  • May 2009
  • April 2009
  • March 2009
  • February 2009
  • January 2009
  • December 2008
  • November 2008
  • October 2008
  • September 2008
  • August 2008
  • July 2008
  • June 2008
  • May 2008
  • April 2008
  • March 2008

Resources for Writers:


The Word Cloud writing community
Limyaael's Rants
Fantasy Worldbuilding Questions

Blogs by Well-known Authors:


The Dragonmount Blog
Patrick Rothfuss
Brandon Sanderson
Neil Gaiman

Writing Broadcasts:


Writing Excuses Podcast

Fellow Writers:


Not Enough Words
Ryan G. Sanders
Soul Saga
C.R. Hindmarsh
Davina Pearson
The Awake Ones
One Swaying Behind
SmithWriting Blog
Natania Barron
Tales of a Fantasy Scribbler
Right Brain Spasms
Ken Kizer
Steph-O-Rama

Miscellaneous:


Blisters In May
Goodreads

How-To Blogs - BlogCatalog Blog Directory Add to Technorati Favorites

Creative Commons License
FIVE RINGS by NICK ENLOWE is licensed under a Creative Commons Attribution-Noncommercial-No Derivative Works 3.0 United States License.
Based on a work at 5-Rings.com. [E]





Copyright © 2007-2012 Nick Enlowe.

MCN: W16-4STV-6080