Old 02-12-2008, 12:52 PM   #1 (permalink)
mohammad
Junior Critic
 
Join Date: Feb 2008
Location: Small Buziness! - مرند
Posts: 72
mohammad is on a distinguished road
Exclamation Directory Security Tips

I saw many people who ask about their directories hacking, maybe most of us are newbie and make simple directories with no any securities, and there are many helps wanted for hacking directory!

Some tips that you can following them and enhance your directory's security can be:
  • 1) Passwords: Use strong passwords! Never share your password or keep them in unsafe place. Give passwords to everything you can, phpLD admin, database user, FTP access, everything.
    Include some special characters like "$", "@", "&", "=", "+" or whatever else you want. Also use both lower- and uppercase characters. You password should not be shorter than 6 characters.
  • 2) Backups: Only people who had once a really big problem because they did not backed up know what I am talking about. Make backups as often as you can, backup all your files each time you make a small change, backup also your database.
  • 3) Permissions: Give only really needed permissions to files/folder. Unless the server is running as user "nobody" or simmilar, try to give files/folders the same username as the webserver is running. Do not use 666 or 777 permissions unless the script (.php) needs it. Usually it's good to run files/folders with permission set to 664 but also 755 or 775 is good.
  • 4) Files and Folders Protection: If your host supports ".htaccess" files you can easily protect some files and folders.
  • 5) Unneeded Files: Most *NIX (Linux, *BSD) create by default file backups each time you modify something. This files are marked eighter as "~filename.ext" or "filename.ext~" (ext = extension). If you are running Cpanel or another editor you regulary won't have this issue, but you never know. Always try to remove this files, you really don't want to have an "index.php~" file in your DocumentRoot, because it's content can be seen by others.
    A quick and dirty bash script that will remove these files is:
    Code:
    find /your_path -name "*~*" -exec rm -f '{}' \;
mohammad is offline   Reply With Quote
Old 02-12-2008, 03:51 PM   #2 (permalink)
dpSubi1
iSubmitter
 
dpSubi1's Avatar
 
Join Date: Feb 2008
Location: Tech-Tips-Now.com
Posts: 21
dpSubi1 is on a distinguished road
Send a message via MSN to dpSubi1 Send a message via Yahoo to dpSubi1
Default

Great tips. I would like to add one more. Delete all installation files once we complete the installation of a directory.
dpSubi1 is offline   Reply With Quote
Old 02-12-2008, 04:38 PM   #3 (permalink)
mohammad
Junior Critic
 
Join Date: Feb 2008
Location: Small Buziness! - مرند
Posts: 72
mohammad is on a distinguished road
Default

Yop, it is always recommended first to remove installation files
mohammad is offline   Reply With Quote
Old 02-24-2008, 11:22 AM   #4 (permalink)
megrisoft
Submit Shop
 
Join Date: Dec 2007
Location: Chandigarh India
Posts: 102
megrisoft is on a distinguished road
Default

Best is to update the script version
__________________
Submit Shop Since 1999
Manual Directory Submission Services
Link Building Service
megrisoft is offline   Reply With Quote
Reply


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

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


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


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
Copyright Directory Critic 2005-2007