با انجام این تغییرات ا حدی میتوانید امنیت را در دیتالایف انجین حفظ كنید.
تاریخ انتشار: 14 تير 1389
آخرین ویرایش: 23 مرداد 1390
ارسال کننده: SalaR
mahmoodbarani، احسان عابدی و سامان گلچمنی و 46 نفر دیگر تشکر کردهاند.
1. فایلهای engine/init.php , /engine/inc/include/init.php رو باز كنید به دنبال كد dbconfig.php بگردید و آنرا به نام دلخواه مثلاً salar.php تغییر بدید بعد همین 2 تا فایل ( فایل های init.php ) كه در هاست شما قرار دارد رو به salar.php تغییر بدید . ( salar.php مثال بود )
2.فایل htacess رو باز كنید و كد زیر رو در خط آخر قرار بدید :
3. فایل htacess رو باز كنید و كد زیر رو در خط آخر قرار بدید :
4. اگر ip شما ثابت هست هم میتونید كد زیر رو در htacess اضافه كنید كه فقط این ip به admin.php دسترسی داشته باشد به جای 127.0.0.1 آی پی خودتون رو قرار بدید.
2.فایل htacess رو باز كنید و كد زیر رو در خط آخر قرار بدید :
<Files "salar.php">
order deny,allow
Allow from all
</files>
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>
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>
order deny,allow
Allow from 127.0.0.1.
Deny from all
</files>
آخرین های وبلاگ
- اصلاحیه 21/2/1391 دیتالایف انجین نسخه 9,6
- دیتالایف انجین نسخه 9,6 انتشار یافت
- رفع مشکل عدم نمایش مطالب برتر و تصادفی
- دیتالایف انجین نسخه 9,5 انتشار یافت
- اصلاحیه ۱۳۹۰/۰۷/۲۵ دیتالایف انجین نسخه ۹٫۴
- دیتالایف انجین نسخه ۹٫۴ انتشار یافت
- تغییرات و رفع مشکلات در نسخه ۹٫۳,۱
- راه اندازی ویترین سایت های دیتالایف انجین
- دیتالایف انجین نسخه ۹٫۳ انتشار یافت
- انتشار دی ال فروم نسخه ۲,۶,۱
آخرین ارسال های انجمن
- فروشگاه بعد از آپگرید ...
- مطالب تصادفی،آخرین مطالب و برترین مطالب با استفاده از تگ costum
- مشکل در ماژول تشکر ورژن 2
- سبد خرید فروشگاه ...
- تغییر نوشته یا همان امضای پلیر
- هک مشاهده پیام خصوصی دیگران
- call back برای فروشگاه
- روش پاک کردن (Copyright Farsi Group) این نوشته از قالب
- سطح دسترسی 755
- نمایش فقط در صفحه اصلی


اطلاعات