الخميس، 28 ديسمبر 2017

How to Secure your Wordpress Site in few steps 2019

WordPress security has always been food for thought. Even though most of the latest updates deal with WordPress security issues, there is still a lot that can be done to improve that security, even by the less tech-savvy of us. Here, I’d like to enumerate some suggestions on how to improve security on your WordPress website for the best WordPress security.

Table of contents

  • 1. Don't use admin as a username
  • 2. Use a less common password
  • 3. Add Two-Factor Authentication
  • 4. Employ Least Privileged principles
  • 5. Hide wp-config.php and .htaccess
  • 6. Use WordPress security keys for authentication
  • 7. Disable file editing
  • 8. Limit login attempts
  • 9. Be selective with XML-RPC
  • 10. Hosting & WordPress security
  • 11. Stay up-to-date
  • 12. Best WordPress security plugins & themes
  • Closing thoughts
WordPress itself has a list on WordPress security you might want to read. Of course, some of the things in that list will be repeated in the article below. Personally, I prefer a more hands on list and direction; that’s why we decided to write this article about the best WordPress security.
Since we do not know your site we are not sure how it will respond to these tips. We highly suggest to backup your site before trying any of the methods here.

1. Don’t use admin as a username

Think about this. This is perhaps the easiest baseline step for WordPress security you can take as a WordPress user. It costs you nothing, and the install makes it easy to do. A majority of today’s attacks target your wp-admin / wp-login access points using a combination of admin and some password in what is known as Brute Force attacks. Common sense would dictate that if you remove admin, you’ll also kill the attack outright.
Yes, the argument exists that the attacker can still enumerate the user ID and Name and can in some instances pull the new username. There is no denying this. Remember, though, as our friends at Sucuri like to say, Security is not about risk elimination, it’s about risk reduction.
For the everyday, automated Brute Force attack, removing the default admin or administrator username will already help a lot. You’re at least making it a bit harder for the hacker to guess the username. For the sake of clarity, understand that when we say admin we are speaking specifically to the username only and not the role.
Simply create a new user in WordPress at Users > New User and make that a user with Administrator rights. After that, delete the admin user. Don’t worry about the post or pages the admin user has already created. WordPress will nicely ask you: “What should be done with content owned by this user?” and give you the option to delete all content or assign it to a new user, like the one you have just created.




2. Use a less common password

An easy thing to remember is CLU: Complex. Long. Unique.
This is where tools like 1Password and LastPass come into play, as they each have password generators. You type in the length, and it generates the password. You save the link, save the password, and move on with your day. Depending on how secure I want the password to be, I usually set length of the password (20 characters is always right) and decide on things like the inclusion of less usual characters like # or *.
‘123456’ isn’t a password. ‘qwerty’ is like writing your security code on your bank card. ‘letmein’; seriously? Shame on you. Even ‘starwars’ made the 2015 list of 25 most used passwords. Remember, you’re never as unique as you think you are…

3. Add Two-Factor Authentication

Even if you’re not using ‘admin’ and are using a strong, randomly generated password, Brute Force attacks can still be a problem. To address this, things like Two-Factor Authentication are key to helping to reduce the risk of such attacks.
Oh, I know, the hassle two-factor authentication is. But for now, it’s your Fort Knox. The essence of two-factor authentication for WordPress security is exactly as implied in the name, two forms of authentication. It’s the standard today for enhanced security at your access points.  You are already using two-factor authentication for Gmail, Paypal, and the works (at least you should be), why not add it to your WordPress security toolkit as well. Ipstenu (Mika Epstein) did an article on the subject you might want to read: Two Factor Authentication.
There is a plugin for that: Google Authenticator. An alternative that takes a slightly different approach for the same purpose is the Rublon Plugin.

4. Employ Least Privileged principles

The WordPress.org team put together a great article in the WordPress Codex regarding Roles and Capabilities. We encourage you to read it and become familiar with it because it applies to this step.
The concept of Least Privileged is simple, give permissions to:
  • those that need it,
  • when they need it and
  • only for the time they need it.
If someone requires administrator access momentarily for a configuration change, grant it, but then remove it upon completion of the task. The good news is you don’t have to do much here, other than employ best practices.
Contrary to popular belief, not every user accessing your WordPress instance needs to be categorized under the administrator role. Assign people to the appropriate roles, and you’ll greatly reduce your security risk.

5. Hide wp-config.php and .htaccess

This is relatively easy to do, but doing it wrong might make your site inaccessible. Make a backup and procede with caution. Yoast SEO for WordPress makes this proces somewhat easier. Go to Tools > File Editor to edit your .htaccess.
For better WordPress security, you’d need to add this to your .htaccessfile to protect wp-config.php:
1<Files wp-config.php>
2order allow,deny
3deny from all
4</Files>
That will prevent the file from being accessed. Similar code can be used for your .htaccess file itself, by the way:
1<Files .htaccess>
2order allow,deny
3deny from all
4</Files>
You can do it. It’s no rocket science.

6. Use WordPress security keys for authentication

Authentication Keys and Salts work in conjunction with each other to protect your cookies and passwords in transit between the browser and web server. These authentication keys are basically a set of random variables. That keys improve security (encryption) of information in cookies. To change this in wp-config.php, simply get a new set of keys here and add these. These keys change on a refresh of that page, so you’ll always get a fresh set.
Syed Balkhi at WPBeginner did an article on WP security keys, in case you want some more background information. The Sucuri plugin can help you with these keys as well.

7. Disable file editing

If a hacker gets in, the easiest way to change your files would be to go to Appearance > Editor in WordPress. To lift your WordPress security, you could disable writing of these files via that editor. Again, open wp-config.php and add this line of code:
1define('DISALLOW_FILE_EDIT', true);
You’ll still be able to edit your templates via your favorite FTP application, you just won’t be able to do it via WordPress itself.

8. Limit login attempts

Attacks like a Brute Force attack, target your login form. Specifically for WordPress security, the All in One WP Security & Firewall plugin has an option to simply change the default URL (/wp-admin/) for that login form.
Next to that, you could also limit the number of attempts to login from a certain IP address. There are several WordPress plugins to help you to protect your login form from IP addresses that fire a multitude of login attempts your way. We haven’t tested all, but feel free to let me know your experiences.

9. Be selective with XML-RPC

XML-RPC is an application program interface (API) that’s been around for a while. It’s used by a number of plugins and themes, so we caution the less technical to be mindful how they implement this specific hardening tip.
While functional, disabling can come with a cost. Which is why we don’t recommend disabling for everything, but being more selective on how and what you allow to access it. In WordPress, if you use Jetpack you’ll want to be extra careful here.
There are a number of plugins that help you be very selective in the way you implement and disable XML-RPC by default.

10. Hosting & WordPress security

In the past years of website reviews, we have had our share of website owners stating that their hosting company couldn’t help with this, or knew jack about that. Hosting companies simply see your website differently. There is no simple rule to decide on your WordPress hosting company. But the choice of a hosting company does matter when optimizing your WordPress security.
Every article written on hosting or hosting companies seems to start by telling you that the cheapest one is probably not the best one. Most cheaper hosting plans won’t have support to help you out with a hacked site. These plans include little to secure your website, like for instance set up a Website Firewall (more on the Sucuri Website Firewall later). Shared hosting, for instance, does imply that your hosting server is also the home of other websites. These might have security issues of their own, which in turn might affect your own website’s security as well.
WordPress security seems to be one of the main USPs offered in specialized WordPress hosting products, like the one offered by GoDaddy. They offer backups, redundant firewalls, malware scanning and DDoS protection and automatic WordPress updates for very reasonable pricing (understatement).

Be mindful of host account

One of the biggest challenges with hosts is in their account configuration for website owners. Website owners can install and configure as many websites as they want, and this fosters “soup kitchen”-like environments.
This is challenging because, in many instances, a website will be compromised via a concept known as cross-site contamination in which a neighboring site is used as the attack vector. The attacker penetrates the server, then moves laterally into neighboring sites on the server.
The best way to account for this is to create two accounts. One account which you treat as a production environment – only live sites are on this one – and a staging one, in which you put everything else.

11. Stay up-to-date

Staying up-to-date is an easy statement to make, but for website owners in the day-to-day, we realize how hard this can be. Our websites are complex beings. They have 150 different things happening at any given time, and sometimes it’s difficult to apply the changes quickly. A recent study shows that 56% of WordPress installations were running out of date versions of core.
Updates need to extend beyond WordPress core. The same study shows that a very large percentage of the website hacks came from out-of-date, vulnerable, versions of plugins.
This can be compounded in really complex environments in which dependencies make it so that backups can’t be achieved. This is why we personally employ Sucuri’s Firewall. This firewall virtually patches and hardens our website at the edge. It gives us the time we require to go back and apply updates in a more reasonable time frame, allowing us to test in our staging environments first, and only then push to production.

12. Best WordPress security plugins & themes

Most WordPress users tend to apply themes and plugins at will to their posts. Unless you’re doing this on a test server for the sole purpose of testing that theme or plugin, that makes no sense, especially not with reference to WordPress security. Most plugins and a lot of themes are free, and unless you have a solid business model to accompany these free giveaways. If a developer is maintaining a plugin just because it’s good fun, chances are he or she did not take the time to do proper security checks.
We have teamed up with Sucuri years ago, to make sure every plugin is checked for security before release, and we have an agreement with them for ongoing checks as well. If you are creating a free theme or free plugin, you might not have the resources to add solid checks like that.

How to pick the right plugin

Ratings on WordPress.org exampleIf you want to be taken by the hand in selecting the right WordPress securityplugin for your website, please read this in-depth article Tony Perez did on the subject: Understanding the WordPress Security Plugin Ecosystem.
Let me focus on the basics of plugin selection here. As explained above, free plugins and themes could be a possible vulnerability. When adding a plugin (or theme for that matter), always check the rating of that plugin. WordPress.org shows ratings, but one five star rating won’t tell you anything, so also check the number or ratings. Depending on the niche, a plugin should be able to get multiple reviews. If more people think a plugin is awesome and take the time to rate it, you could decide to use it too.

WordPress 4.5.2 compatible exampleThere is one other thing you want to check. If a plugin hasn’t been updated for two years, WordPress will tell you that. That doesn’t mean it’s a bad plugin, it could also mean there hasn’t been a need to update it, simply because the plugin still works. The ratings will tell you that, and the compatibility with the current WordPress version, which is also shown on the plugin page at wordpress.org. Having said that, Sucuri strongly recommends against using any plugins that haven’t been updated for that long. You should take their word for it.
Based on these ratings and compatibility, you could pick your plugins less random and have a larger chance of some kind of security being added.

Closing thoughts

If you have come this far in this article, you will have no excuse not to improve the WordPress security for your website. Like adding posts and pages, checking your WordPress security should be a regular routine for every WordPress site owner.
This isn’t the full list of all the things you can do to secure your website. I am aware that one should, for instance, create regular backups. And that WordPress has a number of plugins for this as well. But backups are not part of WordPress security per se, I think these are part of having a website in general – they are administrative/maintenance tasks.
I trust this article about WordPress security gives you a practical list of things you can and should do to secure at least the first layer of defense of your website. Remember, WordPress security isn’t an absolute, and it’s on us to make it harder for the hackers!

الأربعاء، 7 ديسمبر 2016

How to Create Classified Ads Site Using WordPress

Have you ever tried to create classified ads site ? No problem if not allow me.
Classified ads are the form of advertisements which is very commonly used in newspapers, online news sources and other magazines which are published at regular intervals and this form of advertisement is sold for free of charge.
You have observed that advertisement in newspaper is very short in size as they are charged on the basis of lines. So, today in this article I will show you some of the best WordPress classifieds theme and plugins by which you can create classified ads sites using WordPress.
When I was searching for this topic I have found that classified pages are really successful. For example sites to post Free classified ads in Bangladesh , are one of the most visited Pages. In Most of them you can easily post these free classified ads directly from their mobile application as well as from their website too.
Do you know that in a WordPress classifieds theme, classified ads are posted by their categories, prices, location etc. So, have a look to some best free WordPress classifieds plugins and WordPress classified themes and choose one for your own classified Ads WordPress site.

WordPress Classified Ads Theme

1. ClassiPress Ads Theme

Create Classified Ads  site
Classipress is one of the most famous WordPress theme. This free WordPress theme can be easily used. Also it allows you to be online and sell classified ads in a minute. This WordPress template has lots of cool features which takes your WordPress blog to next stage. I have mentioned some amazing features of classipress as follows :
  • Multiple Pricing Module : There are mainly three kinds of pricing module available i.e., percentage, fixed and category. You can also choose both paid and free ads together. If you also choose featured ads then you may be charged an extra fee.
  • Custom Fields and Forms : You can easily create your own fields and forms with the help you builder. You can also have custom fields for each category. Not only this much but you can also create the order, field types, forms etc.
  • Fully Customizable Front Page : You have 5 different types of color schemes and 2 different types of page layout by which you can easily customize the front page.
  • Responsive Design : You will be getting a responsive web design on your all type devices like android, iPad, iPhone etc.

2. Classifier WordPress Theme

classifier WordPress theme for classified ads site
Classifier is from one of the best WordPress themes which help the user in building a classified ad website. You can easily add, remove, renew or modify multimedia to your advertisement. Some other features of this best WordPress theme are given below :
  • Responsive layout : No matter that what kind of screen you are using from viewing your WordPress site, your WordPress website will look really great on every platforms.
  • SEO Management system : SEO management system which is provided in this theme will allow you to add and modify everything related to SEO i.e., from page title to meta tags.
  • Custom Menu : You can easily add or modify web page navigation items in this theme.
  • Custom Shortcodes : With the help of these custom shortcodes provided here you can easily add buttonlinks, and many more cool things in your blog post.
  • Three Different Content Layouts : This theme gives your freedom of choosing which website layout you want to use. It has 3 different website layouts with Fully customizable width, left sidebar and right sidebar.

3. Responsive Classified Theme

Responsive Classified WordPress theme
I have to say that this is the best WordPress theme full of features. You can easily customize this template according to your requirements. This WordPress theme is fully responsive WordPress theme which looks great on every device screen. If you download this WordPress theme then your will be getting some child theme free with this template as bonus. Some other features of this theme are mentioned below :
  • Google Map : This feature will helps in showing the full address of the publisher on the classified ads. User have to enter their full address details that will be further automatically be generated through Google Maps.
  • Payment Gateways : This WordPress theme has a payment gateway system which helps the developer in creating and then integrating their payment solutions.
  • Listing Expiry Features : You can setup expiry dates for your all packages which will help you in controlling that for how long your content will be displayed.
  • Featured listings : You can also charge extra money for the listings which will be displayed on the top of your search results.
  • Claim Listing You can also add your own content on your WordPress site and then further claim their listing with some tools and other options.

Classifieds WordPress Plugin

Below I have mentioned some of the best WordPress classifieds Plugin which will actually help you in creating your classified sites in an easier and effective manner. You just need to select the correct WordPress Plugin which full fill your requirements.

1. AWPCP

This is the best WordPress Plugin which has been developed fast and easy to use. I’m sure that this classifieds WordPress Plugin will surely help you in creating your WordPress site. But I would like to inform you that before using this Plugin kindly translate the instructions in your language so that you can understand this Plugin fully. You can easily use this WordPress plugins in your website themes.

2. Classifieds

After choosing this option you can easily add classified ads in your websites/blogs. This Plugin allows you to create ads, send mails, and alter your user id to post ads ads on your network or in sites.

3. ROO Classifieds

Roo Classifieds is the newest Plugin which is specially developed for the classified ads. This Plugin comes has a control panel which is perfectly build and with the help of it’s easy operating user can use this Plugin without any problem.

4. SOFA Front Post

This Plugin help in creating classified advertising for your WordPress blog. This Plugin also supports all your WordPress blog themes so that you can make best classified ads for them.

5. WordPress Classifieds Plugin

WordPress Classifieds Plugin allows you to add simple and effective classified ads on your WordPress website.
ClassyFrieds has directory listing and classified systems which works really amazing with the original WordPress functions.
So, that’s all with this article. If you have found something interesting above or want to ask anything related to above content then please let me know by leaving your valuable comments below.