<?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-09-16T15:18:50Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.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&#039;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&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 disrespect intended to Raul, but I&amp;#039;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&amp;#039;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&amp;#039;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(&amp;#039;user&amp;#039;, &amp;#039;blocked by ip-ranges: %ip&amp;#039;, array(&amp;#039;%ip&amp;#039; =&amp;gt; $ip_addr));&lt;br /&gt;
   header($_SERVER[&amp;#039;SERVER_PROTOCOL&amp;#039;] . &amp;#039; 403 Forbidden&amp;#039;);&lt;br /&gt;
-  print &amp;#039;Sorry, &amp;#039; . check_plain(ip_address()) . &amp;#039; has been banned.&amp;#039;;&lt;br /&gt;
+  print &amp;#039;Sorry, &amp;#039; . $ip_addr . &amp;#039; has been banned.&amp;#039;;&lt;br /&gt;
   exit();&lt;br /&gt;
 }&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
That&amp;#039;s a hack.  If ip_ranges works well for us, I&amp;#039;ll make the logging configurable, and submit the enhancement to the module maintainers.&lt;/div&gt;</summary>
		<author><name>Srevilak</name></author>
	</entry>
</feed>