با انجام این تغییرات ا حدی میتوانید امنیت را در دیتالایف انجین حفظ كنید.
تاریخ انتشار: 14 تير 1389
آخرین ویرایش: 23 مرداد 1390
ارسال کننده: SalaR
احسان عابدی، سامان گلچمنی و engineer و 45 نفر دیگر تشکر کردهاند.
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>
آخرین های وبلاگ
- دیتالایف انجین نسخه 9,5 انتشار یافت
- اصلاحیه ۱۳۹۰/۰۷/۲۵ دیتالایف انجین نسخه ۹٫۴
- دیتالایف انجین نسخه ۹٫۴ انتشار یافت
- تغییرات و رفع مشکلات در نسخه ۹٫۳,۱
- راه اندازی ویترین سایت های دیتالایف انجین
- دیتالایف انجین نسخه ۹٫۳ انتشار یافت
- انتشار دی ال فروم نسخه ۲,۶,۱
- رفع مشکل ذخیره قالب در نسخه ۹٫۲
- فراخوان برای شرکت در تیم قالبهای فارسی
- دیتالایف انجین ۹٫۲ انتشار یافت
آخرین ارسال های انجمن
- آیکون برای نویسنده مطلب
- برگشتن قالب به حالت دیفالت
- اینترنت اکسپلورر به زانو در آمد
- درخواست عاجزانه کمک فوری
- درخواست قالب قرآنی
- خطایی در پایگاه داده بوجود آمده است!
- اشکال در اجرای ماژول ها
- سوال در مورد تگ امتیاز مطالب
- اضافه کردن نظرات به صفحات اضافی
- چرا بعد از رفتن اپدیت کردن مطالب پر بازیدی بروز نمیشه
