<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://wiki.whirlwind-ecommerce.com/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Functions%3AipBlockCheck</id>
		<title>Functions:ipBlockCheck - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://wiki.whirlwind-ecommerce.com/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Functions%3AipBlockCheck"/>
		<link rel="alternate" type="text/html" href="http://wiki.whirlwind-ecommerce.com/mediawiki/index.php?title=Functions:ipBlockCheck&amp;action=history"/>
		<updated>2026-04-24T11:13:24Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.24.2</generator>

	<entry>
		<id>http://wiki.whirlwind-ecommerce.com/mediawiki/index.php?title=Functions:ipBlockCheck&amp;diff=615&amp;oldid=prev</id>
		<title>71.163.185.8: New page: == Description == eV::ipBlockCheck($ipAddress,$forwardOnBlock) checks if the passed IP address has been selected in administration as a 'blocked' address. Blocked addresses have been selec...</title>
		<link rel="alternate" type="text/html" href="http://wiki.whirlwind-ecommerce.com/mediawiki/index.php?title=Functions:ipBlockCheck&amp;diff=615&amp;oldid=prev"/>
				<updated>2009-02-25T13:03:48Z</updated>
		
		<summary type="html">&lt;p&gt;New page: == Description == eV::ipBlockCheck($ipAddress,$forwardOnBlock) checks if the passed IP address has been selected in administration as a &amp;#039;blocked&amp;#039; address. Blocked addresses have been selec...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Description ==&lt;br /&gt;
eV::ipBlockCheck($ipAddress,$forwardOnBlock) checks if the passed IP address has been selected in administration as a 'blocked' address. Blocked addresses have been selected in administration from form submission tools including campaign subscribers, custom forms, poll/forum postings, etc. IP blocking is used to curve spam and inappropriate form submission on the web site. An IP is blocked with the intention of not allowing visitors from the blocked IP to submit form data anywhere on the site.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
$bool = eV::ipBlockCheck($ipAddress[,$forwardOnBlock]);&lt;br /&gt;
&lt;br /&gt;
== Paramaters ==&lt;br /&gt;
*$ipAddress STRING REQUIRED&lt;br /&gt;
:: IP address to be checked.&lt;br /&gt;
*$forwardOnBlock STRING OPTIONAL&lt;br /&gt;
:: URL to redirect visitor to, if ip block check returns TRUE (meaning they are designated as blocked). If not passed, boolean TRUE/FALSE will be returned instead.&lt;br /&gt;
&lt;br /&gt;
== Return Values ==&lt;br /&gt;
Boolean TRUE/FALSE is returns IF $forwardOnBlock is not passed or empty. TRUE is returned if the IP address IS BLOCKED. FALSE is returned if IP address IS NOT BLOCKED.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
;Example using redirect&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
// forward to home page with message&lt;br /&gt;
// if visitor's IP is blocked&lt;br /&gt;
// recommend placing in the pre-process block of the template&lt;br /&gt;
eV::ipBlockCheck($_SERVER['REMOTE_ADDR'],'index.php?message=You are blocked and cannot view the requested page');&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
;Example not using redirect&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
// Check if ip address is blocked&lt;br /&gt;
// return content appropriate&lt;br /&gt;
$isBlocked = eV::ipBlockCheck($_SERVER['REMOTE_ADDR']);&lt;br /&gt;
if($isBlocked){&lt;br /&gt;
echo &amp;quot;Your IP is blocked&amp;quot;;&lt;br /&gt;
} else {&lt;br /&gt;
echo &amp;quot;YOur IP is not blocked&amp;quot;;&lt;br /&gt;
};&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>71.163.185.8</name></author>	</entry>

	</feed>