Version Notes
stable release
Download this release
Release Info
Developer | Magento Core Team |
Extension | ET_IpSecurity |
Version | 1.5.3 |
Comparing to | |
See all releases |
Code changes from version 1.5.2 to 1.5.3
app/code/community/ET/ET_IpSecurity_ChangeLog.txt
CHANGED
@@ -9,8 +9,11 @@ TODO and some thoughts:
|
|
9 |
+ integrate anti spam service http://www.projecthoneypot.org/
|
10 |
|
11 |
=====================================
|
|
|
|
|
|
|
12 |
ver. 1.5.2
|
13 |
-
+ added ability to use IP ranges (
|
14 |
|
15 |
ver. 1.5.1
|
16 |
* resolved infinite loop when admin block rule happens and option "Add Store Code to Urls" = Yes and redirect to CMS page is on.
|
9 |
+ integrate anti spam service http://www.projecthoneypot.org/
|
10 |
|
11 |
=====================================
|
12 |
+
ver. 1.5.3 (06/06/2011)
|
13 |
+
* minor bug fixes (variable initializing)
|
14 |
+
|
15 |
ver. 1.5.2
|
16 |
+
+ added ability to use IP ranges (Example: 10.0.0.1-20.0.0.1|IP Range)
|
17 |
|
18 |
ver. 1.5.1
|
19 |
* resolved infinite loop when admin block rule happens and option "Add Store Code to Urls" = Yes and redirect to CMS page is on.
|
app/code/community/ET/ET_IpSecurity_Description.txt
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
==== Description /
|
2 |
|
3 |
EN:
|
4 |
Extension allows to restrict access to website for visitors by IP or IP mask.
|
@@ -7,13 +7,13 @@ When blocking rule is applied user is redirected to selected CMS page or blank p
|
|
7 |
Second function: Allows to turn off frontend during maintenance operations.
|
8 |
|
9 |
RU:
|
10 |
-
|
11 |
-
|
12 |
|
13 |
-
|
14 |
|
15 |
|
16 |
-
====Features /
|
17 |
|
18 |
EN:
|
19 |
* Open Source
|
@@ -35,25 +35,25 @@ EN:
|
|
35 |
|
36 |
RU:
|
37 |
* Open Source
|
38 |
-
*
|
39 |
-
*
|
40 |
-
*
|
41 |
-
*
|
42 |
-
*
|
43 |
-
*
|
44 |
-
*
|
45 |
127.0.0.1|My address
|
46 |
10.*.*.*|internal company IPs
|
47 |
10.0.0.1-20.0.0.1|IP Ranges
|
48 |
-
*
|
49 |
|
50 |
-
*
|
51 |
-
*
|
52 |
|
53 |
|
54 |
|
55 |
-
====Version Compatibility /
|
56 |
-
1.3
|
57 |
1.4.x (tested in 1.4.1.1.)
|
58 |
1.5.x (tested in 1.5.0.1.)
|
59 |
|
1 |
+
==== Description / Для чего этот модуль? ====
|
2 |
|
3 |
EN:
|
4 |
Extension allows to restrict access to website for visitors by IP or IP mask.
|
7 |
Second function: Allows to turn off frontend during maintenance operations.
|
8 |
|
9 |
RU:
|
10 |
+
Модуль позволяет ограничивать доступ к сайту посетителям по IP или по IP маскам.
|
11 |
+
При срабатывании правила перенаправляет посетителя на указанную CMS страницу или просто на пустую страницу. Также может оповестить владельца сайта о сработавшем правиле по е-майл.
|
12 |
|
13 |
+
Доступна функция отключения сайта на техническое обслуживание.
|
14 |
|
15 |
|
16 |
+
====Features / Особенности модуля====
|
17 |
|
18 |
EN:
|
19 |
* Open Source
|
35 |
|
36 |
RU:
|
37 |
* Open Source
|
38 |
+
* Отдельные белые/чёрные списки IP для пользовательской части и панели администрирования
|
39 |
+
* Оповещение владельца магазина по е-майл о сработавшем правиле блокировке
|
40 |
+
* Два типа действи при срабатывании правила (Показ пустой страницы и Перенаправление на указанную CMS страницу)
|
41 |
+
* Статус ответа на показываемой странице при блокировке - HTTP Error 403 - Forbidden: Access is denied
|
42 |
+
* Редактируемые шаблоны писем оповещения
|
43 |
+
* Доступные языки для панели администрирования (en_US, ru_RU)
|
44 |
+
* Можно указывать как IP адреса, так и маски адресов и диапазоны IP адресов. К каждому правилу можно добавить комментарий.
|
45 |
127.0.0.1|My address
|
46 |
10.*.*.*|internal company IPs
|
47 |
10.0.0.1-20.0.0.1|IP Ranges
|
48 |
+
* Редактируемое сообщение (показывается посетителям во время технических работ).
|
49 |
|
50 |
+
* Сохранение в базе данных ИП адресов на которые сработала блокировка
|
51 |
+
* Просмотр журнала блокировки в панели администрирования
|
52 |
|
53 |
|
54 |
|
55 |
+
====Version Compatibility / Совместимость версий====
|
56 |
+
1.3.х (tested in 1.3.2.4.)
|
57 |
1.4.x (tested in 1.4.1.1.)
|
58 |
1.5.x (tested in 1.5.0.1.)
|
59 |
|
app/code/community/ET/IpSecurity/Model/Observer.php
CHANGED
@@ -83,7 +83,9 @@ class ET_IpSecurity_Model_Observer
|
|
83 |
|
84 |
// searching for CMS page storeId
|
85 |
// if we don't do it - we have loop in redirect with setting Add Store Code to Urls = Yes (block access to admin redirects to admin)
|
86 |
-
$stores
|
|
|
|
|
87 |
foreach (Mage::app()->getStores() as $store)
|
88 |
{
|
89 |
$stores[] = $store->getId();
|
@@ -190,7 +192,7 @@ class ET_IpSecurity_Model_Observer
|
|
190 |
|
191 |
private function _findByRange($allIp)
|
192 |
{
|
193 |
-
|
194 |
}
|
195 |
|
196 |
private function find_ip($search_ip,$array)
|
@@ -204,10 +206,10 @@ class ET_IpSecurity_Model_Observer
|
|
204 |
$ip=trim($ip[0]);
|
205 |
$ipRange=explode("-",$ip);
|
206 |
//range
|
207 |
-
|
208 |
if(count($ipRange)==2)
|
209 |
{
|
210 |
-
|
211 |
$ipFrom=explode(".",trim($ipRange[0]));
|
212 |
$ipFrom=sprintf("%03d%03d%03d%03d",$ipFrom[0],$ipFrom[1],$ipFrom[2],$ipFrom[3]);
|
213 |
$ipTo=explode(".",trim($ipRange[1]));
|
@@ -219,7 +221,7 @@ class ET_IpSecurity_Model_Observer
|
|
219 |
$this->last_found_ip=$iptxt;
|
220 |
return $found;
|
221 |
}
|
222 |
-
|
223 |
}
|
224 |
//simple
|
225 |
else if(preg_match('/^'.str_replace(array('\*','\?'), array('(.*?)','[0-9]'), preg_quote($ip)).'$/',$search_ip))
|
83 |
|
84 |
// searching for CMS page storeId
|
85 |
// if we don't do it - we have loop in redirect with setting Add Store Code to Urls = Yes (block access to admin redirects to admin)
|
86 |
+
$stores = array();
|
87 |
+
$pageStoreIds = array();
|
88 |
+
|
89 |
foreach (Mage::app()->getStores() as $store)
|
90 |
{
|
91 |
$stores[] = $store->getId();
|
192 |
|
193 |
private function _findByRange($allIp)
|
194 |
{
|
195 |
+
|
196 |
}
|
197 |
|
198 |
private function find_ip($search_ip,$array)
|
206 |
$ip=trim($ip[0]);
|
207 |
$ipRange=explode("-",$ip);
|
208 |
//range
|
209 |
+
|
210 |
if(count($ipRange)==2)
|
211 |
{
|
212 |
+
|
213 |
$ipFrom=explode(".",trim($ipRange[0]));
|
214 |
$ipFrom=sprintf("%03d%03d%03d%03d",$ipFrom[0],$ipFrom[1],$ipFrom[2],$ipFrom[3]);
|
215 |
$ipTo=explode(".",trim($ipRange[1]));
|
221 |
$this->last_found_ip=$iptxt;
|
222 |
return $found;
|
223 |
}
|
224 |
+
|
225 |
}
|
226 |
//simple
|
227 |
else if(preg_match('/^'.str_replace(array('\*','\?'), array('(.*?)','[0-9]'), preg_quote($ip)).'$/',$search_ip))
|
app/code/community/ET/IpSecurity/etc/config.xml
CHANGED
@@ -23,7 +23,7 @@
|
|
23 |
<config>
|
24 |
<modules>
|
25 |
<ET_IpSecurity>
|
26 |
-
<version>1.5.
|
27 |
<descr>
|
28 |
<ru_RU><![CDATA[
|
29 |
Модуль позволяет ограничивать доступ к сайту посетителям по IP, IP маскам или диапозону IP.
|
23 |
<config>
|
24 |
<modules>
|
25 |
<ET_IpSecurity>
|
26 |
+
<version>1.5.3</version>
|
27 |
<descr>
|
28 |
<ru_RU><![CDATA[
|
29 |
Модуль позволяет ограничивать доступ к сайту посетителям по IP, IP маскам или диапозону IP.
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>ET_IpSecurity</name>
|
4 |
-
<version>1.5.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/afl-3.0.php">AFL v3.0</license>
|
7 |
<channel>community</channel>
|
@@ -13,9 +13,9 @@ When blocking rule is applied user is redirected to selected CMS page or blank p
|
|
13 |
Second function: Allows to turn off frontend during maintenance operations.</description>
|
14 |
<notes>stable release</notes>
|
15 |
<authors><author><name>Jurij</name><user>auto-converted</user><email>support@etwebsolutions.com</email></author><author><name>Andrej</name><user>auto-converted</user><email>support@etwebsolutions.com</email></author></authors>
|
16 |
-
<date>2011-
|
17 |
-
<time>
|
18 |
-
<contents><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="et_ipsecurity.xml" hash="3e677b0e6fffcfb90d1d03dd7bc8daa8"/></dir></dir></dir></dir></target><target name="magelocale"><dir name="en_US"><dir name="template"><dir name="email"><file name="et_ipsecurity.html" hash="2b67f7f1bc21e003da6246fe76462af4"/><file name="et_ipsecurity_admin.html" hash="2b67f7f1bc21e003da6246fe76462af4"/></dir></dir><file name="ET_IpSecurity.csv" hash="26e22ba736a937422cfc1755670e71a8"/></dir><dir name="ru_RU"><dir name="template"><dir name="email"><file name="et_ipsecurity.html" hash="a6f731a6903375bfc06edc6a31d67865"/><file name="et_ipsecurity_admin.html" hash="5961f9ae7d71f843d96d70c18c223222"/></dir></dir><file name="ET_IpSecurity.csv" hash="7f1e9f9b92e96f45fc45b13d0ca4e5e6"/></dir></target><target name="magecommunity"><dir name="ET"><dir name="IpSecurity"><dir name="Block"><dir name="Adminhtml"><dir name="Log"><file name="Grid.php" hash="baef872daeaa6a195b4bab090244b16f"/></dir><file name="Log.php" hash="17f11639de5af08019be9577fd01e733"/></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="LogController.php" hash="cfc12c6a05fcb0486bb9f3b4c2eae4d0"/></dir></dir><dir name="etc"><file name="config.xml" hash="
|
19 |
<compatible/>
|
20 |
<dependencies/>
|
21 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>ET_IpSecurity</name>
|
4 |
+
<version>1.5.3</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/afl-3.0.php">AFL v3.0</license>
|
7 |
<channel>community</channel>
|
13 |
Second function: Allows to turn off frontend during maintenance operations.</description>
|
14 |
<notes>stable release</notes>
|
15 |
<authors><author><name>Jurij</name><user>auto-converted</user><email>support@etwebsolutions.com</email></author><author><name>Andrej</name><user>auto-converted</user><email>support@etwebsolutions.com</email></author></authors>
|
16 |
+
<date>2011-06-07</date>
|
17 |
+
<time>05:39:17</time>
|
18 |
+
<contents><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="et_ipsecurity.xml" hash="3e677b0e6fffcfb90d1d03dd7bc8daa8"/></dir></dir></dir></dir></target><target name="magelocale"><dir name="en_US"><dir name="template"><dir name="email"><file name="et_ipsecurity.html" hash="2b67f7f1bc21e003da6246fe76462af4"/><file name="et_ipsecurity_admin.html" hash="2b67f7f1bc21e003da6246fe76462af4"/></dir></dir><file name="ET_IpSecurity.csv" hash="26e22ba736a937422cfc1755670e71a8"/></dir><dir name="ru_RU"><dir name="template"><dir name="email"><file name="et_ipsecurity.html" hash="a6f731a6903375bfc06edc6a31d67865"/><file name="et_ipsecurity_admin.html" hash="5961f9ae7d71f843d96d70c18c223222"/></dir></dir><file name="ET_IpSecurity.csv" hash="7f1e9f9b92e96f45fc45b13d0ca4e5e6"/></dir></target><target name="magecommunity"><dir name="ET"><dir name="IpSecurity"><dir name="Block"><dir name="Adminhtml"><dir name="Log"><file name="Grid.php" hash="baef872daeaa6a195b4bab090244b16f"/></dir><file name="Log.php" hash="17f11639de5af08019be9577fd01e733"/></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="LogController.php" hash="cfc12c6a05fcb0486bb9f3b4c2eae4d0"/></dir></dir><dir name="etc"><file name="config.xml" hash="7899e48569aa5d629179c9b1f192b1a6"/><file name="system.xml" hash="462b9b4d2e802a63cdeaca5448b6bc47"/></dir><dir name="Helper"><file name="Data.php" hash="08c557cd26157c317c1049d5f1366eab"/></dir><dir name="Model"><dir name="Mysql4"><dir name="Ipsecuritylog"><file name="Collection.php" hash="929fd786020e26b87f900caf0f2996f1"/></dir><file name="Ipsecuritylog.php" hash="4ec2037e5a52eaa4278ddd7ad2929dfc"/></dir><file name="Ipsecuritylog.php" hash="bb8a6ad3b612c46ef8b2fa36d2fac709"/><file name="Observer.php" hash="54243c67cd6b36e5b2fe9a5addaacfd7"/></dir><dir name="sql"><dir name="ipsecurity_setup"><file name="mysql4-install-1.5.php" hash="c2524c78dbb7db294d53983ca588c5bb"/></dir></dir></dir><file name="ET_IpSecurity_ChangeLog.txt" hash="78b7fbe5ad986b7c39a28e7b72ed9927"/><file name="ET_IpSecurity_Description.txt" hash="fc3b3f0f66c6cd3964c564212f809d0a"/><file name="ET_IpSecurity_LICENSE.txt" hash="b799504264c23c11a941473d7a3e3ab7"/></dir></target><target name="mageetc"><dir name="modules"><file name="ET_IpSecurity.xml" hash="d191fe14ed772c4515519e1445af2229"/></dir></target></contents>
|
19 |
<compatible/>
|
20 |
<dependencies/>
|
21 |
</package>
|