View Single Post
ישן 22-02-11, 15:11   # 1
MyDns
עסק רשום [?]
דירוג מסחר: (0)
 
מיני פרופיל
תאריך הצטרפות: Feb 2011
מיקום: כפר סבא
גיל: 33
הודעות: 561

MyDns לא מחובר  

מדריך | טיפים קטנים לאבטחת השרת

אבטחת ה-SSH:
קובץ:
קוד:
/etc/ssh/sshd_config
קוד:
Protocol 2
UseDNS no
MaxAuthTries 3
החליפו את כל הערכים שצויינו למעלה.

אבטחת PHP:
קוד:
safe_mode = On
disable_functions = exec,system,passthru,shell_exec,escapeshellarg,escapeshellcmd,proc_close,proc_open,dl,popen,show_source
allow_url_fopen = Off 
display_errors = Off 
display_startup_errors = Off 
log_errors = On 
error_reporting = E_ALL 
error_log = /var/log/php.log
expose_php = Off 
magic_quotes_gpc = On 
magic_quotes_sybase = Off 
register_globals = Off
NAEMED:
קובץ:
קוד:
/etc/named.conf
בפונקציה OPTIONS הוסיפו:
קוד:
version "Not Avisable";
allow-recursion { "none"; };
allow-transfer {"none";};
אני יעדכן עוד בהמשך...

Last edited by MyDns; 22-02-11 at 15:21..
  Reply With Quote