Wordpress Training

BySlide Scope

Important tips for Security of a WordPress Website

Security of a WordPress Website

  1. Protect from Spammers : Find this line in the header.php file of your wordpress –
<meta name=”generator” content=”WordPress <?php bloginfo(’version’); ?>” />

and remove the php code and make it look like:

<meta name=”generator” content=”WordPress  | Or Whatever You want here” />

If you can’t find the meta tag:

Place this line of code in your functions.php file.

 

remove_action(‘wp_head’, ‘wp_generator’);

 

This will remove <meta name=”generator” > tag from wordpress.  Changing this meta tag is important because of spammers. If they know the version of your wordpress website it becomes easy for them to post spam comments. It also prevents hack attempts.

  1. Use Passwords that are atleast of 8 characters with mix of numbers, special characters, capital and small alphabets etc.
  2. Use plugins to restrict number of login attempts, there are many security plugins like wordference, etc. to protect your site from unauthorized access as well.
  3. You must protect your /wp-admin/ directory using the .htaccess file in your root folder. You can set access controls to particular IP addresses.
  4. Protect your website from BAD BOTS which try to hack your site using Libwww-perl .

Simply write this line in your .htaccess :

SetEnvIfNoCase User-Agent “^Libwww-perl” bad_bot

<Limit GET POST>

Order Allow,Deny

Allow from all

Deny from env=bad_bot

</Limit>

To do this Go to You Hosting >> Root Domain of your site >> Find .htaccess file and past the code just above the line “# END WordPress”

This step will help you in improving your SEO score as well.

 

  1. You can use robots.txt file to allow or disallow directory access for search engine bots –

User-agent: *Disallow: /abc/wp-admin/Allow: /abc/wp-admin/admin-ajax.php Here “abc” is the directory where you have installed your wordpress.

 

  1. When you are on the urge of installing a new theme or a plugin make sure to have a look at it’s rating, reviews and bugs report. Install trustworthy plugins with considerable amount of installations.

Please comment below if you have more suggestions security of a wordpress website.

BySlide Scope

वर्डप्रेस वेबसाइट को लोकल कंप्यूटर पर कैसे होस्ट करें ?

वर्डप्रेस वेबसाइट को लोकल कंप्यूटर पर होस्ट करने के लिए आपको निम्नलिखित सॉफ्टवेर टूल्स की आवश्यकता होगी :
१. विंडोज ऑपरेटिंग सिस्टम या लिनक्स ऑपरेटिंग सिस्टम वाला लैपटॉप या डेस्कटॉप कंप्यूटर

२. xampp या ampps  सॉफ्टवेर जो की आपके कंप्यूटर में ज़रूरी अपाचे सर्वर (Apache Server) और माईएसक्यूएल mysql सर्वर इनस्टॉल  कर देगा

३. इसके बाद आपको wordpress.org वेबसाइट पे जाकर wordpress की फाइल डाउनलोड करनी है

४. जब आप xampp या ampps इनस्टॉल करते है तो वो आपकी C: ड्राइव में एक फोल्डर बना देता है जिसमे htdocs नाम का फोल्डर होता है

५. wordpress से डाउनलोड की गयी ज़िप फाइल को htdocs में किसी फोल्डर में पेस्ट करें और एक्सट्रेक्ट करें

६. जिस नाम से अपने फोल्डर बनाया है वो आपकी वेबसाइट की तरह काम करेगी

७. आप xampp या ampps कण्ट्रोल पैनल से अपाचे सर्वर और mysql सर्वर को ओपन कर लें

८. गूगल क्रोम, मोजिल्ला फायरफाक्स जैसे किसी भी ब्राउसर में localhost/yourwebsitename टाइप करे

९. ब्राउज़र में localhost/phpmyadmin लिखें और एक नया डेटाबेस बना ले और उसका नाम उसके आईडी पासवर्ड के साथ लिख ले

१०. localhost/yourwebsitename में इनस्टॉल पे क्लिक करें और अपनी भाषा का चुनाव करें

११. डेटाबेस का नाम दर्ज करें और डाटाबेस का यूजर नाम  और पासवर्ड दर्ज करें

१२. अपनी वेबसाइट के administrator यूजरनेम और पासवर्ड को चुने और ईमेल दर्ज करें

१३. अब आपकी वेबसाइट के डैशबोर्ड में आप localhost/yourwebsitename/wp-admin लिख के पहुच सकते है

Read this post in English

BySlide Scope

How to Host WordPress Website Locally

Step By Step Tutorial to Host wordpress Website Locally

Local wordpress Install Steps

1. Download WordPress from WordPress.org
2. Download Apche & MySql Server for windows/linux/mac – Eg. is Xampp, Ampps etc.
3. Run Xamp -> Start Apache and MySql Servers.
4. Copy and extract the WordPress-{version}.zip file in C: / Xampp / htdocs / YOURDIRECTORYNAME
5. You can access your latest wordpress using any browser and typing http://localhost/YOURDIRECTORYNAME
6. Installation will begin and proceed with selecting your desired language
7. You have to create a MySql Database – Open http://localhost/phpmyadmin to bring MySql Server Management Window
8. In the left sidebar you will find a list of pre-created databases. Select one of them or create a new db.
9. Click on new and name your database my_wp_db or any name of your choice.
10. Go to your YOURDIRECTORYNAME folder and edit wp-config-sample.php in notepad.
11. You have to fill the data as follows :
define(‘DB_NAME’, ‘my_wp_db’);

/** MySQL database username */
define(‘DB_USER’, ‘root’);

/** MySQL database password */
define(‘DB_PASSWORD’, ”);

/** MySQL hostname */
define(‘DB_HOST’, ‘localhost’);

/** Database Charset to use in creating database tables. */
define(‘DB_CHARSET’, ‘utf8’);

/** The Database Collate type. Don’t change this if in doubt. */
define(‘DB_COLLATE’, ”);

If you don’t know your Db User and Password you can create one using the Privilages >> User Accounts in phpmyadmin.
Or got to Xampp >> Passwords.txt
12. If worpress installation presents a form to you enter the respective details.

If you have any queries you can write to us or contact us

BySlide Scope

How to Install WordPress on your domain or subdomain | Part 1

Install WordPress on your domain or subdomain.

  1. Add a new domain to your hosting.
  2. Add your hosting nameservers to your domain.
  3. Open file manager in your hosting and upload the zipped WordPress folder that can be downloaded from WordPress.org
  4. If you don’t want to use option ‘c’ you can look for hosting with Autoinstallers like Softaculous.
  5. If you are following option ‘c’, extract your zipped WordPress in your root folder (directory) or directory of your choice.
  6. Look for a file named Wp-config-sample.php, right click and open it in php/file editor.
  7. Go to your hosting control panel and look for Database >> Create New MySql Database
  8. After creating the database add a user to your database, remember or write down the name of database user and its password.
  9. Now open the window in step ‘f’ and Look for Entries like – Database Name, Database User, Database Password and Host. Paste the respective credentials between the opening and closing single quotes ‘…..‘. Important: If you are on cPanel Hosting – In the Host – use ‘localhost’ (works in most of the cases) or you can ask your hosting provider about the Server IP of MySql database. In the case of Plesk hosting your server IP is provided by the hosting provider. You can use that IP as the host for MySql.

The code looks like this :

// ** MySQL settings – You can get this info from your web host ** //

/** The name of the database for WordPress */

define(‘DB_NAME’, ‘database_name_here’);

/** MySQL database username */

define(‘DB_USER’, ‘username_here’);

/** MySQL database password */

define(‘DB_PASSWORD’, ‘password_here’);

/** MySQL hostname */

define(‘DB_HOST’, ‘localhost’);

 

10. Now save this Wp-Config-Sample.php file as Wp-Config.php.

11.Open http://yourdomain.com/wp-admin/install.php if you installed it the root folder and http://yourdomain.com/directory/wp-admin/install.php if you installed in the directory folder named ‘directory’.

12. If your wp-config.php file was configured perfectly you will see a screen to enter your Site Name, Site Tag Line and Create Administrator User, Else you be asked to enter the credentials you entered in the step ‘i’.

13. After Installing your WordPress and creating a user you will be able to see your website on ‘yourdomain.com’ OR ‘yourdomain.com/directory’ and you will be able to login to your dashboard by writing ‘/wp-admin’ followed by your site url.

If you have difficulty in understanding any step of this tutorial please comment below.