Title: Square Bracket Hack Prevention
Author: Miina Sikk
Published: <strong>2015 年 8 月 21 日</strong>
Last modified: 2016 年 2 月 5 日

---

搜尋外掛

這個外掛**並未在最新的 3 個 WordPress 主要版本上進行測試**。開發者可能不再對這個
外掛進行維護或提供技術支援，並可能會與更新版本的 WordPress 產生使用上的相容性問題。

![](https://s.w.org/plugins/geopattern-icon/square-bracket-hack-prevention.svg)

# Square Bracket Hack Prevention

 由 [Miina Sikk](https://profiles.wordpress.org/miinasikk/) 開發

[下載](https://downloads.wordpress.org/plugin/square-bracket-hack-prevention.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/square-bracket-hack-prevention/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/square-bracket-hack-prevention/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/square-bracket-hack-prevention/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/square-bracket-hack-prevention/#developers)

 [技術支援](https://wordpress.org/support/plugin/square-bracket-hack-prevention/)

## 外掛說明

The Square Bracket Hack Prevention plugin prevents a simple but very common exploit
of WordPress, by adding in a .htaccess rule upon activation preventing hackers from
adding a “[” to the URL.

A common attempt at a WPSOS exploit is to add a “[” to a URL, which can often break
a site and expose an ability to inject code. This plugin stops it by banning all
attempts at adding a “[” to the URL. It does so via adding code to the .htaccess
file.

Additionally, upon the uninstallation of the plugin, the line is removed. And if
the .htaccess file is not editable, then the admin user is warned.

If you have any suggestions let us know via http://www.wpsos.io/wordpress-plugin-
square-bracket-hack-prevention/

For more information and support, check out: http://www.wpsos.io/wordpress-plugin-
square-bracket-hack-prevention/

## 安裝方式

The installation and use is very straightforward. You should:

 1. Upload the folder `square-bracket-hack-prevention` to the `/wp-content/plugins/`
    directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress

NB! If the .htaccess file wasn’t writeable during the activation, please make .htaccess
writeable, and deactivate and activate the plugin again.

## 常見問題集

  Which options do you modify?

As of version 1.0 there are no options to modify.

  Where can I get some support?

Check out our site, at: http://www.wpsos.io/wordpress-plugin-square-bracket-hack-
prevention/

  I have some suggestions for other options I want edited

Let us know, via: http://www.wpsos.io/wordpress-plugin-square-bracket-hack-prevention/

## 使用者評論

這個外掛目前沒有任何使用者評論。

## 參與者及開發者

以下人員參與了開源軟體〈Square Bracket Hack Prevention〉的開發相關工作。

參與者

 *   [ Miina Sikk ](https://profiles.wordpress.org/miinasikk/)
 *   [ citywanderer ](https://profiles.wordpress.org/citywanderer/)
 *   [ Miina Sikk ](https://profiles.wordpress.org/stubgo/)

[將〈Square Bracket Hack Prevention〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/square-bracket-hack-prevention)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/square-bracket-hack-prevention/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/square-bracket-hack-prevention/)，
或透過 [RSS](https://plugins.trac.wordpress.org/log/square-bracket-hack-prevention/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/square-bracket-hack-prevention/)。

## 變更記錄

#### 1.0

 * Initial version.

## 中繼資料

 *  版本 **1.0**
 *  最後更新 **11 年前**
 *  啟用安裝數 **10+**
 *  WordPress 版本需求 ** 3.0.1 或更新版本 **
 *  已測試相容的 WordPress 版本 **4.4.34**
 *  語言
 * [English (US)](https://wordpress.org/plugins/square-bracket-hack-prevention/)
 * 標籤:
 * [hack](https://tw.wordpress.org/plugins/tags/hack/)[htaccess](https://tw.wordpress.org/plugins/tags/htaccess/)
   [redirect](https://tw.wordpress.org/plugins/tags/redirect/)[security](https://tw.wordpress.org/plugins/tags/security/)
   [WPSOS](https://tw.wordpress.org/plugins/tags/wpsos/)
 *  [進階檢視](https://tw.wordpress.org/plugins/square-bracket-hack-prevention/advanced/)

## 評分

這個項目尚無任何評論記錄。

[撰寫評分](https://wordpress.org/support/plugin/square-bracket-hack-prevention/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/square-bracket-hack-prevention/reviews/)

## 參與者

 *   [ Miina Sikk ](https://profiles.wordpress.org/miinasikk/)
 *   [ citywanderer ](https://profiles.wordpress.org/citywanderer/)
 *   [ Miina Sikk ](https://profiles.wordpress.org/stubgo/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/square-bracket-hack-prevention/)

## 贊助

想要支援這個外掛的發展嗎？

 [ 贊助這個外掛 ](http://www.wpsos.io/wordpress-plugin-square-bracket-hack-prevention/)