10 WordPress的提示,使防止黑客攻击。 终极指南。

English 英国(更改)
  • Digg
  • Twitter
  • Technorati
  • del.icio.us
  • Facebook
  • MySpace
  • Reddit
  • StumbleUpon
  • LinkedIn
  • email

视频操作方法:10提示,使WordPress的哈克防

10 WordPress的提示,使防止黑客攻击的形象

让你的博客黑客是不好玩,和标准的WordPress安装不渗透。 不仅做了黑客的攻击造成的停机时间博客,而您与您的ISP工作,跟踪问题,并确保它不会再发生,它也可以指你花费的时间,比如,让您的电子邮件客户端解决好一次。 总之,浪费宝贵的时间。

预防胜于治疗。 这里有10个提示使WordPress的砍证明

你所需要的

开始之前

  • 备份您的文件,使用FTP客户端
  • 备份您的数据库,使用可湿性粉剂,phpMyAdmin的。 如果您不知道如何做到这一点, 看看此视频教程 ,在这里Guvnr

视频:安全,稳健可靠.. 在10个步骤。

看,呃,guvideo了如何更好地做到这一点的想法。

退房the_guv的YouTube在http://youtube.com/guvnrDOTcom渠道

...或者如果您不能罢的,或者即使可以,这里的细节...

1。 升级WordPress。 到最新版本。 如果您使用2.7或更高版本,这是可以做到从您的管理员控制台,在按一下按钮,自动。 只要寻找“升级”按钮。 如果您使用较早版本, 阅读本

2。 更新插件。 要确保所有的都升级到其最新版本。 如果不是这样,您通知您的插件管理页面。 旧版本会带来安全风险。

10 WordPress的提示,使防止黑客攻击的形象

3。 更改“wp_”数据库表前缀。 我使用可湿性粉剂安全扫描的,发达国家都在徐一包,永远忠诚网页设计,超级方便的同时家伙。 一旦被激活,在左侧菜单中,单击“数据库”中的“安全性”下拉。 载入的页面,您可以轻松更改前缀。 如果不工作,而不是抛出一个错误,这样做: -

  • 字母i. 停用所有WordPress的插件,作为预防措施。
  • 二。 备份数据库, 如上Guvnr视频教程
  • 三。 打开一个文本编辑器下载的*. sql文件(其中*是您的数据库的名称。)
  • 四。 寻找与取代你“wp_”字头使用新的前缀的所有实例。
  • 五,在您的WordPress数据库,删除所有表。 不要删除数据库本身,而只表。 可湿性粉剂phpMyAdmin的是一个伟大的插件使用。
  • 六。 进口仍然在你的WordPress数据库,您的新修订的*. SQL文件,就是你通过更改前缀编辑。 可湿性粉剂,phpMyAdmin的或类似的一次。
  • 七。 打开和编辑wp - config.php文件在根,博客的文件夹,改变“$ table_prefix ='wp_';”到“$ table_prefix ='yourNewPrefix_';”。
  • 八。 重新启动您的插件。

4。 删除“管理员”用户。 只是为了使黑客更加努力,本此。 创建一个具有管理权限的新用户,为用户提供一个别名(用于公开展示)这是不一样的用户名相同。 然后注销,重新登录的新用户,删除原有的“管理员”用户。

5。 使用更强的密码。 位明显,这一个。 它与混合字母,数字和特殊字符,大小写。 我使用RoboForm的记忆(和加密)我的密码,这是免费的。

6。 隐藏你的WordPress版本。 从你的主题的文件夹,打开“的header.php”,为线搜索...

 “元名称=”发电机“ 
内容=“WordPress的”?PHP的bloginfo('版本');?“”/“

...并将其删除。 它没有用处。

7。 确保WordPress数据库错误被关闭。 在最近WordPress的版本中,它们是被默认关闭。 因此升级。

8。 删除号可湿性粉剂META标签。 删除此从WordPress的核心标签。 当您启动和运行可湿性粉剂安全扫描,这是自动完成。

9。 创建的。htaccess在“可湿性粉剂管理员/”文件打开一个新的文本文件并贴上此...

    # BEGIN WordPress
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    # END WordPress

... Save the file as .htaccess and upload it to your "wp-admin/" folder, ie, to http://myblog.com/wp-admin/

10. Hide Your Plugins. If you're not sure whether they're hidden or not, navigate to http://myblog.com/wp-content/plugins. If you see a 404 error page, they're hidden. Otherwise, you'll see them listed. In that case, copy the following into a new .htaccess file, adding the file to your wp-content/ folder...

    # BEGIN WordPress
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    # Prevents directory listing
    IndexIgnore *
    # END WordPress

Some web hosts don't allow you to administer .htaccess files. If that's the case, instead of using an .htaccess file to hide the list of plugins, create an index.html file. You can write something about restricted access in there, if you like. Either way, this file will prevent a plugin listing.

Now navigate to http://myblog.com/wp-content/plugins. They should be hidden.

After You're Done

Just to be thorough, and because a few things have changed...

  • Backup your files again, using your ftp client.
  • Backup your database again, using wp-phpmyadmin.

That's it. Your blog is more secure, and way less hackable. Go make content!

[ad]
If you liked that ...
... maybe you'll like these?

If you liked that ...
... maybe you'll like these?

.