با سلام امیدوارم تکراری نباشه گرچه اینا حاصل تجربه ی خودم هست ولی به هر حال ..... ( البته در مورد امن کردن پوشه ی Tmp و ... چیزی نمیگیم چون اموزش براش زیاده
موارد زیر را به صورتی که اعلام میشه تغییر بدید
برید به
و Protocol 2 را فعال کنید و UseDNS no به این صورت تغییر بدیدنقل قول:
nano /etc/ssh/sshd_config
Change #Port 22 to some other port and uncomment it
برداشتن # و همچنین باز کردن پورت دلخواه در فایروال سرور
موارد زیر را دقیقا مانند دستور تغییر بدید تمامی این موارد از منوی سمت چپ سیپنل یافت میشند
Enable open_basedir protection
Disable Compilers for all accounts(except root)
Enable Shell Bomb/memory Protection
Enable cPHulk Brute Force Protection
در قسمت
TraceEnable Offکد:Main >> Service Configuration >> Apache Configuration >> Global Configuration
ServerSignature Off
ServerTokens ProductOnly
FileETag None
درEnable mod_userdir Protection را تیک بزنیدنقل قول:
Main >> Security Center >> Apache mod_userdir Tweak
در قسمتDefault PHP Version (.php files) 5کد:Main >> Service Configuration >> Configure PHP and SuExec
PHP 5 Handler suphp
PHP 4 Handler none
Apache suEXEC on
Apache Ruid2 off
به این صورت باشه
درenable_dl = Offکد:nano /usr/local/lib/php.ini
disable_functions
symlink, show_source, passthru, exec, fpassthru, popen, crack_check, crack_closedict, proc_open, crack_getlastmessage, crack_opendict, psockopen, php_ini_scanned_files, shell-exec, system, dl, tmp, safe_mode, systemroot, server_software, get_current_user, ini_restore, popen, pclose, exec, shell_exec, suExec, proc_open, proc_nice, proc_terminate, proc_get_status, proc_close, pfsockopen, leak, apache_child_terminate, posix_kill, posix_mkfifo, posix_setpgid, posix_setsid, posix_setuid, escapeshellcmd, escapeshellarg, posix_ctermid, posix_getcwd, posix_getegid, posix_geteuid, posix_getgid, posix_getgrgid, posix_getgrnam, posix_getgroups, posix_getlogin, posix_getpgid, posix_getpgrp, posix_getpid, posix_getppid, posix_getpwnam, posix_getpwuid, posix_getrlimit, posix_getsid, posix_getuid, posix_isatty, posix_setegid, posix_seteuid, posix_setgid, posix_times, posix_ttyname, posix_uname, posix_access, posix_get_last_error, posix_mknod, posix_strerror, posix_initgroups, posix_setsid, posix_setuid, perl, rsync, wget, ./, python, whoami, cat, perm, find, phpinfo, php_uname, c99_buff_prepare, c99_sess_put, c99getsource, c99sh_getupdate, c99fsearch, c99shexit, c99ftpbrutecheck, fpassthru
register_globals = Off
safe_mode = On
expose_php = Off
magic_quotes = On
display errors = off
درEnable php open_basedir Protection تیک بزنیدکد:Main >> Security Center >> PHP open_basedir Tweak
حتما Suhosin را نصب کنید اگر آموزش نصب این مورد هم نیاز بود بفرمایید تا آموزششو بدم ولی از طریق easy apache قابل نصبه با یه تیک و یه تغییر کوچیک در فایل
مواردی مثل suhosin و zend رو هم اگه حوصله باشه حتما مینویسمکد:nano /usr/local/lib/php.ini
دراین تغییرات رو بدیدکد:Main >> Server Configuration >> Tweak Settings
Enable BoxTrapper spam trap off
Email password reset off
SSL Support for cPanel daemons (no stunnel) on
Allow Remote Domains off
***** subdomains off
***** subdomain override off
درCompiler Access رو disable کنیدکد:Main >> Security Center >> Compiler Access
درAllow Anonymous Logins noکد:Main >> Service Configuration >> FTP Server Configuration
Allow Anonymous Uploads no
Allow Logins with Root Password no
Broken Clients Compatibility no
و همچنین
Set some MySQL password
از قسمت
کد:Main >> SQL Services >> MySQL Root Password
همچنین نصب و کانفیگ cxs
http://www.webhostingtalk.ir/f10/53185/#post488673
خیلی موارد دیگه هست ولی چون یهویی میاد تو ذهنم خیلی قاطی پاتی شده
بذارید تا چند روز آینده قشنگ دسته بندی میکنم و مینویسم
تغریبا 10 پست دیگه شاید مطلب باشه و اینا فقط موارد اولیه هست