On Fri, Jun 6, 2008 at 5:45 PM, DanTMan <dan_the_man(a)telus.net> wrote:
But basically what I'm saying is, just like how we
have SimpleRegex
which is used by two or more of the Regex based extensions, It would be
nice if half of TorBlock was cut out into a SimpleTor extension which
would handle the basic parts of identifying Tor nodes. Then we could
make features in other extensions depend on SimpleTor and use it's
shared functionality to build those checks in.
Read the code, please.
The TorBlock extension has a method TorBlock::isExitNode( $ip = null
), where null means the current IP. All features can be disabled with
configuration settings. The TorBlock extension, as it exists, already
accomplishes this goal.
--
Andrew Garrett