How do i can secure my wordpress blog to prevent from hacking

by Hafeez
37 replies
Hi guys,

I have my wordpress based blog and once that was hacked by someone and hacker did a pishing attack and finally my blog was reported as attacker and admin suspended my blog.

After giving some clarifications, admin reinstate my blog and now i want to secure my wordpress based blog to eleminate of hacking attack.

How do i secure my blog to maximum security level?

Any advise please?
#blog #hacking #prevent #secure #wordpress
  • Profile picture of the author jewelraz
    Don't use "Admin" or "admin" as Admin Username, password should be Upper case+lower case+numbers
    {{ DiscussionBoard.errors[6255302].message }}
    • Profile picture of the author Hafeez
      Thank you for your reply.

      I have changed my all passwords and user names as well. I also changed the .htaccess files for root and some other folders but still i am feeling unsecure. Is there need to do something more?
      {{ DiscussionBoard.errors[6258411].message }}
    • Profile picture of the author asgrm
      Originally Posted by jewelraz View Post

      Don't use "Admin" or "admin" as Admin Username, password should be Upper case+lower case+numbers
      Also, keep your password get changed periodically
      {{ DiscussionBoard.errors[10571879].message }}
  • Profile picture of the author DeMango25
    Personally I use WP Lockup (no affiliate link) and I'm pretty happy with it, easy to set up and adds some effective security measures to your wp installation.
    Signature

    {{ DiscussionBoard.errors[6258843].message }}
    • Profile picture of the author semrocks
      I had a client that had the dreaded "this site may harm your computer" in google's SERP's. (we took over doing seo from a guy doing it for them on the side, after the fact) The first thing we did was install a wp plugin called Sucuri scanner, I believe they'll scan your site for free, help you harden it (prevent future malware, spam, etc) They charge 99 bucks to remove any infections, I hope for your sake, you'll never have to deal with it. It's pretty stressful, rankings fall, customers freak out...all of the above.
      {{ DiscussionBoard.errors[6259436].message }}
  • Profile picture of the author K Meier
    Check this out. It's a bigger guide on how to secure your wordpress blog. The PDF file is quite big The WordPress Security Checklist
    {{ DiscussionBoard.errors[6259503].message }}
    • Originally Posted by K Meier View Post

      Check this out. It's a bigger guide on how to secure your wordpress blog. The PDF file is quite big The WordPress Security Checklist
      Thanks for sharing this. Nice one.
      Signature
      {{ DiscussionBoard.errors[6260063].message }}
    • Profile picture of the author Fahmzie
      Originally Posted by K Meier View Post

      Check this out. It's a bigger guide on how to secure your wordpress blog. The PDF file is quite big The WordPress Security Checklist
      Nice guide there..

      Always keep backup of your files and data. Use some automatic plugin that backup your data and send it to your email.
      {{ DiscussionBoard.errors[6269148].message }}
    • Originally Posted by K Meier View Post

      Check this out. It's a bigger guide on how to secure your wordpress blog. The PDF file is quite big The WordPress Security Checklist
      Thanks. This is really helpful.
      Signature
      {{ DiscussionBoard.errors[6356518].message }}
      • Profile picture of the author doganj1
        You can protect the folder wp-admin with password. So you have two layers password to access wp-admin
        {{ DiscussionBoard.errors[6356524].message }}
    • Profile picture of the author swriviera
      Originally Posted by K Meier View Post

      Check this out. It's a bigger guide on how to secure your wordpress blog. The PDF file is quite big The WordPress Security Checklist
      This is a GREAT reference. I only just skimmed through for right now ... so much to learn!!!

      There is a detail that I really like on their site. Just below the download button they add:

      "Please do not link directly to this page or the pdf document.
      Their locations will change over time.
      Instead link to the main home page."

      Even this is a small detail you can copy to add yet another level of protection to your downloads ...

      Simple yet brilliant.

      Until I have time to go through all of the document do you all have more suggestions of wp plugins that can help?
      wp lockup was suggested, any more?

      Thanks so much for all this info!!

      Sandra Walsh
      {{ DiscussionBoard.errors[6383442].message }}
  • Profile picture of the author Abledragon
    Don't forget to keep your computer clean and use SFTP rather than FTP to transfer files. WordPress security is about more than just WordPress.

    Some more details here:

    WordPress Security: Not Just About WordPress | WealthyDragon

    Cheers,

    Martin.
    Signature
    WealthyDragon - Earning My Living Online
    {{ DiscussionBoard.errors[6259516].message }}
  • Profile picture of the author darnellsmith
    Over the years I have had many websites hacked but there only one fool proof way to beat hackers.

    Keep a backup of your files and database.
    {{ DiscussionBoard.errors[6260420].message }}
  • Profile picture of the author gladiolus
    Hacking techniques are used to “harvest” email addresses, which are then used by spammers and other hackers for malicious activities. If you are storing email data on your website, for what-ever required reason, make sure it’s stored in a secure format, such as a MySQL Database.
    {{ DiscussionBoard.errors[6261212].message }}
    • Profile picture of the author JesseN
      You should also add this:

      <Files readme.html>
      Order Deny,Allow
      Deny from All
      </Files>

      to you .htaccess file. This prevents people (including you) from checking what version of Wordpress you are using which hackers might use to exploit vulnerabilities of the previous versions.
      {{ DiscussionBoard.errors[6268968].message }}
  • Profile picture of the author Randy27
    I use WP Lockup (no affiliate link) and I'm pretty happy with it,
    {{ DiscussionBoard.errors[6269399].message }}
  • Profile picture of the author aeroponica
    Make your password 100% strong.
    Signature


    {{ DiscussionBoard.errors[6269412].message }}
    • Profile picture of the author Mkj
      If you have a static ip address you can block access to the admin section, or any other part of your website, with this code placed in a htaccess file within the directory you want to protect:

      Code:
      AuthUserFile /dev/null
      AuthGroupFile /dev/null
      AuthName "Example Access Control"
      AuthType Basic
      <LIMIT GET>
      order deny,allow
      deny from all
      allow from (put your own ip address here without the brackets)
      </LIMIT>
      Bit more peace of mind. Works for me for sure.
      {{ DiscussionBoard.errors[6271371].message }}
  • Profile picture of the author derek.ang
    1) Change your password every month
    2) Upgrade to latest version ALWAYS
    Signature

    Get a free mobile site

    {{ DiscussionBoard.errors[6273244].message }}
  • Profile picture of the author so11
    Hello,

    all practices listed are true. But even if you follow them all your site may still have lots of vulnerabilities. Even if you use SFTP and have extremely strong password, etc. the problem is that you make constant changes to you sites (instal news scripts, add new code, plugins, etc.). thats how hackers penetrate.

    1. Test in test environments (if possible) before putting it in production it will reduce your risk significantly.
    2. Every time you make changes to your site, you need to audit it to make sure there are no vulnerabilities.
    3. Use good practices posted above.

    regards,

    So11
    Signature
    www.groupesoloviev.com
    We help businesses manage cyber risk and compliance requirements.
    {{ DiscussionBoard.errors[6334769].message }}
  • Profile picture of the author Terry Crim
    Don't use wordpress? Make sure you update it regularly. Disable the wp-admin access when you are not using it. Change your hosting passwords regularly. Instead of just updating or allowing cpanel to install your wordpress manually remove all the files on your host and manually install and setup wordpress.

    The one button installs that are in cpanel do leave security risks and holes open for hackers, which is why I recommend manually installing wordpress vs the easy push button route most hosts provide.

    Alternatively, don't use wordpress. Most here love it and I think wouldn't know what to do without a wordpress run website, everyone to their own. I personally don't like wordpress and security issues are a few of the reasons why, everyone to their own though.
    {{ DiscussionBoard.errors[6355654].message }}
    • Profile picture of the author swriviera
      Originally Posted by Terry Crim View Post

      Don't use wordpress? Make sure you update it regularly. Disable the wp-admin access when you are not using it. Change your hosting passwords regularly. Instead of just updating or allowing cpanel to install your wordpress manually remove all the files on your host and manually install and setup wordpress.

      The one button installs that are in cpanel do leave security risks and holes open for hackers, which is why I recommend manually installing wordpress vs the easy push button route most hosts provide.

      Alternatively, don't use wordpress. Most here love it and I think wouldn't know what to do without a wordpress run website, everyone to their own. I personally don't like wordpress and security issues are a few of the reasons why, everyone to their own though.
      I'm fairly new to making websites and I have learned how to use wordpress and I am very happy with all of the things you can do with it ... that being said what would YOU suggest to be a safer alternative to wordpress that someone who is NOT a computer programmer can use?

      Thanks,

      Sandra Walsh
      {{ DiscussionBoard.errors[6383272].message }}
  • Profile picture of the author rupasagar
    Banned
    [DELETED]
    {{ DiscussionBoard.errors[6357533].message }}
    • Profile picture of the author hilarious89
      Hey Hafiz, I am not that much expert on securing WP blogs. I haven't provided any security to my wordpress blog yet cause its free blog. You can use WP locker if you want.
      Signature
      My Archive :- A blog where you will get everything updated !
      Get Walkthrough Videos of Newly Released Games from Entertainment Discuss!!
      {{ DiscussionBoard.errors[6357562].message }}
  • Profile picture of the author so11
    Hello,

    I dont think it matters if its free or not. The point is to make your site/product look credible. If you have many subscribers coming to your defaced/hacked site, what impression does that make?
    Signature
    www.groupesoloviev.com
    We help businesses manage cyber risk and compliance requirements.
    {{ DiscussionBoard.errors[6358839].message }}
  • Profile picture of the author EndTheTrendNow
    The biggest reason wordpress sites get hacked is because the owner doesn't update the version when new releases come out, have easy passwords or have a virus on their machine that records login info.
    Signature

    Carpe Diem EndTheTrendNow.com
    Check out SEOBloggerBook for SEO tips.
    Check out AntiqueOutings.com for Antique Tips
    Check out MiniatureReview.blogspot.com for Gaming with miniatures.

    {{ DiscussionBoard.errors[6382303].message }}
  • Profile picture of the author annife polak
    This is a never ending topic. There will be attacks from hacker as long as it will comes new version and update. It natural.

    But you can do the best on your own. I would recommend you to use plugin called: "BulletProof Security".

    A.
    {{ DiscussionBoard.errors[6390194].message }}
  • Profile picture of the author porcupine73
    If only you ever have the need to log into your control panel, I like to lock down the /wp-admin/ directory. Something like this....

    Code:
    <Location /wp-admin/*>
     Order Deny,Allow
     Deny from all
     Allow from 127.0.0.1
     Allow from %%1
     Allow from 207.29.0.0/17      #.leapwireless.net 
    # Note: might want to include the server's own ip address too
    </Location>
    {{ DiscussionBoard.errors[6391660].message }}
  • Profile picture of the author Fadiz
    you can't 100% secure any site, i'm sure u all heard about linkedin hack yesterday now with that being said the only thing you can do is making your site less attractive to hackers and hackers bots.
    You can do it manually by adding few line of code to your .htaccess file Hardening WordPress « WordPress Codex
    or install a plugin like this one WordPress › BulletProof Security « WordPress Plugins
    {{ DiscussionBoard.errors[6391752].message }}
  • Profile picture of the author so11
    hello,

    What is security? It is a set of best practices and ongoing processes (Plan, do, check, act).

    How can I assure security of my site and information?
    1. Apply admin best practices
    2. Dont test anything in production
    3. Know what you are installing
    4. Use security hardening techniques (read white papers from known sources)
    5. Constantly audit/scan your sites and patch identified vulnerabilities.
    6. Repeat 1 to 5 non stop.

    What is a plugin : it is a patch to a known security problem.

    Why/how do i get vulnerabilities? Because we constantly make changes to our site/code (ex.: install new plugin )

    so11
    Signature
    www.groupesoloviev.com
    We help businesses manage cyber risk and compliance requirements.
    {{ DiscussionBoard.errors[6392304].message }}
  • Profile picture of the author Workman
    Hey! I know a thing or two about this!

    If you haven't already, check out Hardening Wordpress by the Wordpress team. They tend to keep a pulse on what's going on with their platform.

    You may want to make sure that...
    • After installing Wordpress, that you remove write permissions from all folders that don't need it. Never 777 any file/folder without good reason. This is grossly abused (Why?)
    • Keep regular backups of your database and site in case something terrible does happen or your site is compromised.
    • Admin Users should have reasonably difficult passwords to guess/brute force (8+, Alphanumeric, Symbols if you wish; The longer the better)
    • Ensure that you trust the Plugins and Themes you're installing and disable ones you're not using. Just one vulnerabilty could compromise your entire site. (More on this below)

    Plugins and Themes - How most Wordpress sites get hacked
    Anytime you install a plugin or theme, you're introducing new code that has complete control over the rest of your application.
    You know how some people always seem to have virus problems with their computers because they're installing various programs? It's the same with Wordpress plugins.

    A basic install of Wordpress is pretty well tightened, this is something the Wordpress core team has done a fantastic job with. But as you add more plugins by developers that work on the plugin as a side project you may inadvertently install a known security gap into your site. Same goes for themes.

    There's a good chance that if you only install trusted (and maintained) plugins (All-in-one SEO, wp-sitemap), create/modify your own themes, and keep your Wordpress install up to date, you'll be reasonably secure on the application level. The more you add on, the more potential weaknesses you introduce to your site. This is the reason why Wordpress is such a powerful engine, but makes it a dangerous platform if there's even one fault in any plugin or theme.

    There's more, but Hardening Wordpress covers most of it. Hope this helps!
    {{ DiscussionBoard.errors[6392882].message }}
  • Profile picture of the author naijabb
    Helpful hint on how to secure your blog from attacks

    How To Secure Your Wordpress Blogs
    {{ DiscussionBoard.errors[7749358].message }}
  • Profile picture of the author Michael71
    There is so much you can do to harden your blog.

    I am using a mix of htaccess rules, plugins like Wordfence and other security related ones and a backup solution (if it really gets hacked and I have to reinstall the blog).

    For example, my blog is in english...

    1. deny all proxies via htaccess
    2. deny all traffic from known spammer ip's via htaccess
    3. secure wp-admin via htaccess
    4. always stay up to date
    5. Wordfence plugin (free version)
    6. BPS plugin

    When installing a blog there are some basic rules like:

    1. do not use admin for administrator account
    2. admin account password should have 16 or more chars (upper-, lowercase, numbers, ...)
    3. do not use wp_ as database prefix

    ...
    Signature

    HTML/CSS/jQuery/ZURB Foundation/Twitter Bootstrap/Wordpress/Frontend Performance Optimizing
    ---
    Need HTML/CSS help? Skype: microcosmic - Test Your Responsive Design - InternetCookies.eu

    {{ DiscussionBoard.errors[7749507].message }}
  • Profile picture of the author vishwa
    Signature
    Techbizmasters.com- Blogging, Technology, and Digital Marketing
    {{ DiscussionBoard.errors[9104851].message }}
  • Profile picture of the author w13
    my site has been attacked by hacker but since I used bullet proof security plugin, my site comes safely and never get attack..
    {{ DiscussionBoard.errors[9119337].message }}
  • Profile picture of the author julliawilson
    That's great information you have discussed here.
    {{ DiscussionBoard.errors[9145296].message }}
  • Profile picture of the author jeffatrackaid
    There's a lot of information on this topic with may tips and tricks. Much of it is pre-mature security steps.

    3 Key Items

    • Keep your WP code, themes and plugins updated.
    • Use themes and plugins from reliable sources. Make sure these are actively maintained.
    • Remove unused plugins/themes from your server.
    The last one is often overlooked.



    A disabled plugin can pose as great a security threat as an active one.


    So make sure you remove what is not in use.


    I have a round up of some simple and advanced tips here:


    The 20 Best WordPress Security Tips on the Web


    Also, blocking logins using HTACCESS is highly preferred to plugin based methods. This technique uses far fewer resources than PHP based methods and provides a method that's independent of WP itself for security.


    Here's a Quick Way to Stop WordPress Brute Force Attacks


    If you manage multiple WP sites, check out https://managewp.com/
    {{ DiscussionBoard.errors[9145779].message }}
  • Profile picture of the author WPExpert
    Originally Posted by Hafeez View Post


    How do i secure my blog to maximum security level?

    Any advise please?
    I have a gig for that on Fiverr ~ stop your WordPress website from being hacked - fiverr

    If you want to take your site to DEFCON-1, I will do it for you.

    Terence.
    Signature
    Sales & Marketing Websites | QloudPressâ„¢ - When Your Website Is Mission-Critical
    {{ DiscussionBoard.errors[9407869].message }}

Trending Topics