Skip to content

Instantly share code, notes, and snippets.

@mwordpress
Last active February 10, 2017 21:55
Show Gist options
  • Save mwordpress/834a077f857535a10e115ba4c12685e7 to your computer and use it in GitHub Desktop.
Save mwordpress/834a077f857535a10e115ba4c12685e7 to your computer and use it in GitHub Desktop.
the codes listed here is part of the following article : https://www.mwordpress.net/protect-files-and-folders-to-wordpress-blog/
# Protect Readme files
<FilesMatch "readme.html">
order allow,deny
deny from all
satisfy all
</FilesMatch>
<FilesMatch "readme.txt">
order allow,deny
deny from all
satisfy all
</FilesMatch>
# Protect wp-config.php
<Files wp-config.php>
order allow,deny
deny from all
satisfy all
</Files>
<?php
/** إعدادات برنامج ووردبريس المعرب **/
// ** إعدادات قاعدة البيانات – ينمكنك الحصول على هذه المعلومات من مستضيفك ** //
/** اسم قاعدة بيانات ووردبريس */
//Added by WP-Cache Manager
define('DB_NAME', 'news');
include '/home/user/connect.php';
/** عنوان خادم قاعدة البيانات */
define('DB_HOST', 'localhost');
/** ترميز قاعدة البيانات */
define('DB_CHARSET', 'utf8');
/** مقارنات قاعدة الببيانات (Collation).
* إذا كنت غير متأكّد أتركها فارغة */
define('DB_COLLATE', '');
/**#@+
* مفاتيح الأمان.
* استخدم الرابط التالي لتوليد المفتايح {@link https://api.wordpress.org/secret-key/1.1/salt/}
* @منذ 2.6.0
*/
define('AUTH_KEY', '');
define('SECURE_AUTH_KEY', '');
define('LOGGED_IN_KEY', '');
define('NONCE_KEY', '');
define('AUTH_SALT', '');
define('SECURE_AUTH_SALT', '');
define('LOGGED_IN_SALT', '');
define('NONCE_SALT', '');
/**#@-*/
/**
* بادئة الجداول في قاعدة البيانات.
* تستطيع تركيب أكثر من مدونة على نفس قاعدة البيانات إذا أعطيت لكل قاعدة بادئة جداول مختلفة
* استخدم فقط حروف, أرقام وخطوط سفلية!
*/
$table_prefix = 'wp_';
/**
* اللغة الافتراضية المستخدمة في هذه النسخة هي العربية
* إذا أردت أن تكون لوحة التحكم في مدونتك بالانجليزية قم بحذف الحرفين أدناه وهي الحروف ar
*/
define('WPLANG', 'ar');
/**
* للمطورين: نظام تشخيص الأخطاء
* قم بتغيير flase إلى true لتمكين عرض الملاحظات أثناء التطوير
*/
define('WP_DEBUG', false);
/* هذا هو المطلوب! توقف عن التعديل. نتمنى لك التوفيق في موقعك! */
/** المسار المطلق لمجلد ووردبريس. */
if ( !defined('ABSPATH') )
define('ABSPATH', dirname(__FILE__) . '/');
/** Sets up WordPress vars and included files. */
require_once(ABSPATH . 'wp-settings.php');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment