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。 刪除可濕性粉劑身份證元標記。 刪除此標籤從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?

.