Skip to content

Commit

Permalink
Removed keyword that affected IPv6 localhost addresses
Browse files Browse the repository at this point in the history
  • Loading branch information
splorp committed Nov 24, 2014
1 parent 5320b6c commit 5b98869
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 0 additions & 1 deletion blacklist.txt
Original file line number Diff line number Diff line change
Expand Up @@ -678,7 +678,6 @@ _youtube
、、
;&#x
;#
::
:)!
! .
Expand Down
7 changes: 7 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,13 @@ According to the WordPress [Discussion Settings Screen](http://codex.wordpress.o

For example, in an earlier version of the blacklist the keywords `/4.` and `/5.` had been included to flag URLs with sequentially numbered pages with various file extensions. Unfortunately, these two benign-looking keywords also flagged comments containing common user agent strings, such as `Mozilla/4.0` and `Chrome/5.0`. In other words, nearly every single comment was flagged as spam, regardless of its content or whether the commenter had been previously approved.

**IPv6 Localhost**

Since the blacklist is applied to commenter’s IP address, we need to be aware of strings that might match seemingly generic, but valid addresses.

For example, in an earlier version of the blacklist the keyword `::` had been included, as it appeared occasionally in mangled comment text and URLs. However, double colons are also part of the [IPv6 localhost](http://en.wikipedia.org/wiki/Localhost) IP address `::1`. If you happened to be testing a WordPress installation on a system using IPv6 addresses, every single comment would have been flagged as spam.


## Mad Props

*“So much for using Akismet.”*
Expand Down

0 comments on commit 5b98869

Please sign in to comment.