[DataLife] بالابردن امنيت ديتالايف

Silver PC

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

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

کد:
<Files "salar.php">
order deny,allow
Allow from all
</files>

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

کد:
<FilesMatch "antivirus.php">
order deny,allow
Allow from all
</FilesMatch>

<FilesMatch "updates.php">
order deny,allow
Allow from all
</FilesMatch>

<FilesMatch "opensearch.php">
order deny,allow
Allow from all
</FilesMatch>

<FilesMatch "keywords.php">
order deny,allow
Allow from all
</FilesMatch>

<FilesMatch "registration.php">
order deny,allow
Allow from all
</FilesMatch>


<FilesMatch "rating.php">
order deny,allow
Allow from all
</FilesMatch>

<FilesMatch "refresh.php">
order deny,allow
Allow from all
</FilesMatch>

<FilesMatch "editpost.php">
order deny,allow
Allow from all
</FilesMatch>

<Files "referer.php">
order deny,allow
Allow from all
</files>

<Files "print.php">
order deny,allow
Allow from all
</files>

<Files "images.php">
order deny,allow
Allow from all
</files>

<Files "vote.php">
order deny,allow
Allow from all
</files>

<Files "addcomments.php">
order deny,allow
Allow from all
</files>

<Files "addpost.php">
order deny,allow
Allow from all
</files>

<Files "addcomments.php">
order deny,allow
Allow from all
</files>

<FilesMatch "\.(avi|mp3|mp4|flv|swf|wmv|png|css|gif|jpeg|jpg|rar|zip|xml|rss)$|^$">
   Order deny,allow
   Allow from all
</FilesMatch>

<Files "addcomments.php">
order deny,allow
Allow from all
</files>

<Files "editcomments.php">
order deny,allow
Allow from all
</files>
<Files "antibot.php">
order deny,allow
Allow from all
</files>


<Files "index.php">
order deny,allow
Allow from all
</files>

<Files "uploads.php">
order deny,allow
Allow from all
</files>

<Files "go.php">
Allow from all
</files>

<Files "rss.php">
Allow from all
</files>

<Files "ajax.php">
Allow from all
</files>

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

کد:
<Files "admin.php">
order deny,allow
Allow from 127.0.0.1.
   Deny from all
</files>
 

جدیدترین ارسال ها

بالا