بالابردن امنیت در دیتالایف انجین چاپ

  • 0

1. فایلهای engine/init.php , /engine/inc/include/init.php رو باز كنید به دنبال كد dbconfig.php بگردید و آنرا به نام دلخواه مثلاً salar.php تغییر بدید بعد همین 2 تا فایل ( فایل های init.php ) كه در هاست شما قرار دارد رو به salar.php تغییر بدید . ( salar.php مثال بود )

2.فایل htacess رو باز كنید و كد زیر رو در خط آخر قرار بدید :

  1. <Files "salar.php">
  2. order deny,allow
  3. Allow from all
  4. </files>


3. فایل htacess رو باز كنید و كد زیر رو در خط آخر قرار بدید :

  1. <FilesMatch "antivirus.php">
  2. order deny,allow
  3. Allow from all
  4. </FilesMatch>
  5. <FilesMatch "updates.php">
  6. order deny,allow
  7. Allow from all
  8. </FilesMatch>
  9. <FilesMatch "opensearch.php">
  10. order deny,allow
  11. Allow from all
  12. </FilesMatch>
  13. <FilesMatch "keywords.php">
  14. order deny,allow
  15. Allow from all
  16. </FilesMatch>
  17. <FilesMatch "registration.php">
  18. order deny,allow
  19. Allow from all
  20. </FilesMatch>
  21. <FilesMatch "rating.php">
  22. order deny,allow
  23. Allow from all
  24. </FilesMatch>
  25. <FilesMatch "refresh.php">
  26. order deny,allow
  27. Allow from all
  28. </FilesMatch>
  29. <FilesMatch "editpost.php">
  30. order deny,allow
  31. Allow from all
  32. </FilesMatch>
  33. <Files "referer.php">
  34. order deny,allow
  35. Allow from all
  36. </files>
  37. <Files "print.php">
  38. order deny,allow
  39. Allow from all
  40. </files>
  41. <Files "images.php">
  42. order deny,allow
  43. Allow from all
  44. </files>
  45. <Files "vote.php">
  46. order deny,allow
  47. Allow from all
  48. </files>
  49. <Files "addcomments.php">
  50. order deny,allow
  51. Allow from all
  52. </files>
  53. <Files "addpost.php">
  54. order deny,allow
  55. Allow from all
  56. </files>
  57. <Files "addcomments.php">
  58. order deny,allow
  59. Allow from all
  60. </files>
  61. <FilesMatch "\.(avi|mp3|mp4|flv|swf|wmv|png|css|gif|jpeg|jpg|rar|zip|xml|rss)$|^$">
  62.    Order deny,allow
  63.    Allow from all
  64. </FilesMatch>
  65. <Files "addcomments.php">
  66. order deny,allow
  67. Allow from all
  68. </files>
  69. <Files "editcomments.php">
  70. order deny,allow
  71. Allow from all
  72. </files>
  73. <Files "antibot.php">
  74. order deny,allow
  75. Allow from all
  76. </files>
  77. <Files "index.php">
  78. order deny,allow
  79. Allow from all
  80. </files>
  81. <Files "uploads.php">
  82. order deny,allow
  83. Allow from all
  84. </files>
  85. <Files "go.php">
  86. Allow from all
  87. </files>
  88. <Files "rss.php">
  89. Allow from all
  90. </files>
  91. <Files "ajax.php">
  92. Allow from all
  93. </files>


4. اگر ip شما ثابت هست هم میتونید كد زیر رو در htacess اضافه كنید كه فقط این ip به admin.php دسترسی داشته باشد به جای 127.0.0.1 آی پی خودتون رو قرار بدید.

  1. <Files "admin.php">
  2. order deny,allow
  3. Allow from 127.0.0.1.
  4.    Deny from all
  5. </files>

 

 

آیا این پاسخ مفید بود؟

« بازگشت