The Voice of the Web Hosting World
The Web Hosting Show is the number one web hosting and development podcast. Never miss an episode! Subscribe today to our RSS feed for free, or subscribe via iTunes.

Enter your e-mail address to get daily tips delivered to your inbox:

Fixing Files and Folders After a Site Hack

Help Finding Alien Code, Files and Folders When somebody embeds an nasty iframe, uploads a virus or compromises your web site’s security in any other form or fashion, they do not want to be caught.  So like the classic detective, you have to get out your magnifying glass and get ready to hunt for code, files and folders that do not belong on your web hosting account.

Find Files and Folders that Do Not Belong

Remember that old childhood game of figuring out, which one of these does not belong with the others?

Search through your web site files and folders to make sure that you don’t have anything that is strange or alien in there.  Look for files that are not apart of scripts you have installed, or that may have odd names.  Your web host will be able to tell you what files are safe to delete and which files are an important part of your web hosting account.

Try to view the source code of your web pages too, and look for anything that does not look familiar or is related to the problems you are having.  For example, many iframe injection attacks will attach the iframe code to the bottom of your web site files.

Make Sure Your Permissions are in Check

You should also check to make sure your file and folder permissions are in check.  Folders should be set no higher than 755, and files should be set to 644. You can check or change folder and file permissions through your web host’s file manager or through most modern FTP programs.

Now, for those of you who say this sounds like a lot of busy work, I have a special tip to share.  If you have a recent backup of your hosting account files, you can compare it with the files and folders on your hosting account to see which ones do not match up.  Also, depending on when your web site was infected, your web host may be able to restore your web site from and older back they have too.

| More

Related Posts & Podcasts

.htaccess - a real american hero?
How to Create a .htaccess File
I like to tell you about the basics here on this show, as well as the advanced things.  Creating a .htaccess file is some where in between. The .htaccess file is a way to make a change to the configurations of

Remember to Check Your Passwords
Be Proactive About Password Theft
It might sound cliche to say, but I am going to say it anyways.  Make sure you keep your passwords complicated, long and different for each service you belong to, script you have installed or account you have created. 

Turning off “Index of”
3 Quick Tips – Hide Folder Content
Related Podcast Link: Listen to Episode 119! Want to hide the content of that folder you just uploaded? Here are three ways of doing just that. When you view a folder on the web that does not have any sort of index

  • FirefoxGlen
    Thanks for this, have enjoyed all these articles.
blog comments powered by Disqus

Mitch Keeler © 2009 - Sitemap | Privacy Policy
Dedicated Server Hosting provided by Layered Tech

Go to Top of Page