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

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的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://cn.wordpress.org/plugins/square-bracket-hack-prevention/#description)
 * [评价](https://cn.wordpress.org/plugins/square-bracket-hack-prevention/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/square-bracket-hack-prevention/#installation)
 * [开发进展](https://cn.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. 通过WordPress的的“Plugins”菜单激活插件

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**
 *  最后更新：**10 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 3.0.1 或更高版本 **
 *  已测试的最高版本为 **4.4.34**
 *  语言
 * [English (US)](https://wordpress.org/plugins/square-bracket-hack-prevention/)
 * 标签
 * [hack](https://cn.wordpress.org/plugins/tags/hack/)[htaccess](https://cn.wordpress.org/plugins/tags/htaccess/)
   [redirect](https://cn.wordpress.org/plugins/tags/redirect/)[security](https://cn.wordpress.org/plugins/tags/security/)
   [WPSOS](https://cn.wordpress.org/plugins/tags/wpsos/)
 *  [高级视图](https://cn.wordpress.org/plugins/square-bracket-hack-prevention/advanced/)

## 评级

尚未提交反馈。

[Your review](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/)