<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.occupyboston.org/wiki/index.php?action=history&amp;feed=atom&amp;title=IP_Ranges_blocking_for_voices.occupyboston.org</id>
	<title>IP Ranges blocking for voices.occupyboston.org - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.occupyboston.org/wiki/index.php?action=history&amp;feed=atom&amp;title=IP_Ranges_blocking_for_voices.occupyboston.org"/>
	<link rel="alternate" type="text/html" href="https://wiki.occupyboston.org/wiki/index.php?title=IP_Ranges_blocking_for_voices.occupyboston.org&amp;action=history"/>
	<updated>2026-04-21T15:03:30Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.0</generator>
	<entry>
		<id>https://wiki.occupyboston.org/wiki/index.php?title=IP_Ranges_blocking_for_voices.occupyboston.org&amp;diff=15780&amp;oldid=prev</id>
		<title>Srevilak: Created page with &quot;I've installed the ip_ranges module on voices.occupyboston.org.  We keep getting these spam posts from &lt;tt&gt;Raul\d+&lt;/tt&gt;, originating from a set of Chinese IP Addresses.  No di...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.occupyboston.org/wiki/index.php?title=IP_Ranges_blocking_for_voices.occupyboston.org&amp;diff=15780&amp;oldid=prev"/>
		<updated>2012-09-01T13:02:22Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;I&amp;#039;ve installed the ip_ranges module on voices.occupyboston.org.  We keep getting these spam posts from &amp;lt;tt&amp;gt;Raul\d+&amp;lt;/tt&amp;gt;, originating from a set of Chinese IP Addresses.  No di...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;I've installed the ip_ranges module on voices.occupyboston.org.  We keep getting these spam posts from &amp;lt;tt&amp;gt;Raul\d+&amp;lt;/tt&amp;gt;, originating from a set of Chinese IP Addresses.  No disrespect intended to Raul, but I'm going to start blocking entire non-us ARIN ranges.&lt;br /&gt;
&lt;br /&gt;
In admin/config, there are two options for blocking ip addresses&lt;br /&gt;
&lt;br /&gt;
* &amp;quot;IP address blocking&amp;quot;.  This is drupal's built-in facility for blocking single ip addresses.&lt;br /&gt;
&lt;br /&gt;
* &amp;quot;IP range bans&amp;quot;.  This comes from the ip_ranges module.&lt;br /&gt;
&lt;br /&gt;
ip_range stores its blocks in a table called &amp;lt;tt&amp;gt;ip_ranges&amp;lt;/tt&amp;gt;.  If you accidentally lock yourself out, you can delete the offending row.&lt;br /&gt;
&lt;br /&gt;
I've also made a small code change to ip_ranges, so that we log blocks.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
diff --git a/sites/all/modules/ip_ranges/ip_ranges.module b/sites/all/modules/ip_ranges/ip_ranges.module&lt;br /&gt;
index 7872de6..3129164 100644&lt;br /&gt;
--- a/sites/all/modules/ip_ranges/ip_ranges.module&lt;br /&gt;
+++ b/sites/all/modules/ip_ranges/ip_ranges.module&lt;br /&gt;
@@ -75,8 +75,10 @@ function ip_ranges_boot() {&lt;br /&gt;
  * Prints a message and exits if access is denied.&lt;br /&gt;
  */&lt;br /&gt;
 function ip_ranges_deny_access() {&lt;br /&gt;
+  $ip_addr = check_plain(ip_address());&lt;br /&gt;
+  watchdog('user', 'blocked by ip-ranges: %ip', array('%ip' =&amp;gt; $ip_addr));&lt;br /&gt;
   header($_SERVER['SERVER_PROTOCOL'] . ' 403 Forbidden');&lt;br /&gt;
-  print 'Sorry, ' . check_plain(ip_address()) . ' has been banned.';&lt;br /&gt;
+  print 'Sorry, ' . $ip_addr . ' has been banned.';&lt;br /&gt;
   exit();&lt;br /&gt;
 }&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
That's a hack.  If ip_ranges works well for us, I'll make the logging configurable, and submit the enhancement to the module maintainers.&lt;/div&gt;</summary>
		<author><name>Srevilak</name></author>
	</entry>
</feed>