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


اطلاعات