Page 11 of 13 FirstFirst ... 910111213 LastLast
Results 101 to 110 of 124
  1. #101
    Join Date
    Aug 2012
    Posts
    331
    Plugin Contributions
    0

    Default Re: IP Blocker 1.5.1

    Quote Originally Posted by lat9 View Post
    Why not just put the site into maintenance mode and then create "pin-holes" for your developer IPs?
    Maintenance mode does not restrict access

  2. #102
    Join Date
    Dec 2009
    Location
    Amersfoort, The Netherlands
    Posts
    2,845
    Plugin Contributions
    25

    Default Re: IP Blocker 1.5.1

    Quote Originally Posted by ShopVille View Post
    Maintenance mode does not restrict access
    Yes it does, I do this all the time for my dev sites
    Put your own IP in the exception box, and set show the side-box, header and footer values to false.

  3. #103
    Join Date
    May 2016
    Location
    Ohio
    Posts
    416
    Plugin Contributions
    0

    Default Re: IP Blocker 1.5.1

    The who's online replacement file breaks the who's online page.

    The top bar breaks:


    REFRESH LIST
    Legend: Active cart Inactive cart Active no cart Inactive no cart
    Inactive is Last Click >= 180s || Inactive since arrival > 540s will be removed Updating every 15 seconds. OFF 5 sec 15 sec 30 sec 1 min TEXT_WHOS_ONLINE_TIMER_FREQ5 TEXT_WHOS_ONLINE_TIMER_FREQ6 TEXT_WHOS_ONLINE_TIMER_FREQ7
    Exclude Spiders? Yes No Exclude Admin IP Addresses? Yes No

    Name:  whos.jpg
Views: 262
Size:  33.8 KB

  4. #104
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,393
    Plugin Contributions
    94

    Default Re: IP Blocker 1.5.1

    @jmberman, what version of Zen Cart? ... and what version of IP Blocker?
    Last edited by lat9; 17 Feb 2018 at 01:52 PM. Reason: Additional question added

  5. #105
    Join Date
    May 2016
    Location
    Ohio
    Posts
    416
    Plugin Contributions
    0

    Default Re: IP Blocker 1.5.1

    Quote Originally Posted by lat9 View Post
    @jmberman, what version of Zen Cart? ... and what version of IP Blocker?
    1.5.4 Cart
    2.1.3 Blocker

  6. #106
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,393
    Plugin Contributions
    94

    Default Re: IP Blocker 1.5.1

    It looks like you can solve the zc1.5.4 compatibility issue by editing /YOUR_ADMIN/whos_online.php, locating this code block
    Code:
                    <a class="optionClick<?php echo ($_SESSION['wo_timeout']=='0') ? ' chosen' : ''; ?>" href="<?php echo $optURL;?>t=0"><?php echo TEXT_WHOS_ONLINE_TIMER_FREQ0; ?></a>&nbsp;
                    <a class="optionClick<?php echo ($_SESSION['wo_timeout']=='5') ? ' chosen' : ''; ?>" href="<?php echo $optURL;?>t=5"><?php echo TEXT_WHOS_ONLINE_TIMER_FREQ1; ?></a>&nbsp;
                    <a class="optionClick<?php echo ($_SESSION['wo_timeout']=='15') ? ' chosen' : ''; ?>" href="<?php echo $optURL;?>t=15"><?php echo TEXT_WHOS_ONLINE_TIMER_FREQ2; ?></a>&nbsp;
                    <a class="optionClick<?php echo ($_SESSION['wo_timeout']=='30') ? ' chosen' : ''; ?>" href="<?php echo $optURL;?>t=30"><?php echo TEXT_WHOS_ONLINE_TIMER_FREQ3; ?></a>&nbsp;
                    <a class="optionClick<?php echo ($_SESSION['wo_timeout']=='60') ? ' chosen' : ''; ?>" href="<?php echo $optURL;?>t=60"><?php echo TEXT_WHOS_ONLINE_TIMER_FREQ4; ?></a>&nbsp;
                    <a class="optionClick<?php echo ($_SESSION['wo_timeout']=='300') ? ' chosen' : ''; ?>" href="<?php echo $optURL;?>t=300"><?php echo TEXT_WHOS_ONLINE_TIMER_FREQ5; ?></a>&nbsp;
                    <a class="optionClick<?php echo ($_SESSION['wo_timeout']=='600') ? ' chosen' : ''; ?>" href="<?php echo $optURL;?>t=600"><?php echo TEXT_WHOS_ONLINE_TIMER_FREQ6; ?></a>&nbsp;
                    <a class="optionClick<?php echo ($_SESSION['wo_timeout']=='840') ? ' chosen' : ''; ?>" href="<?php echo $optURL;?>t=840"><?php echo TEXT_WHOS_ONLINE_TIMER_FREQ7; ?></a>&nbsp;<br />
    and changing it to
    Code:
                    <a class="optionClick<?php echo ($_SESSION['wo_timeout']=='0') ? ' chosen' : ''; ?>" href="<?php echo $optURL;?>t=0"><?php echo TEXT_WHOS_ONLINE_TIMER_FREQ0; ?></a>&nbsp;
                    <a class="optionClick<?php echo ($_SESSION['wo_timeout']=='5') ? ' chosen' : ''; ?>" href="<?php echo $optURL;?>t=5"><?php echo TEXT_WHOS_ONLINE_TIMER_FREQ1; ?></a>&nbsp;
                    <a class="optionClick<?php echo ($_SESSION['wo_timeout']=='15') ? ' chosen' : ''; ?>" href="<?php echo $optURL;?>t=15"><?php echo TEXT_WHOS_ONLINE_TIMER_FREQ2; ?></a>&nbsp;
                    <a class="optionClick<?php echo ($_SESSION['wo_timeout']=='30') ? ' chosen' : ''; ?>" href="<?php echo $optURL;?>t=30"><?php echo TEXT_WHOS_ONLINE_TIMER_FREQ3; ?></a>&nbsp;
                    <a class="optionClick<?php echo ($_SESSION['wo_timeout']=='60') ? ' chosen' : ''; ?>" href="<?php echo $optURL;?>t=60"><?php echo TEXT_WHOS_ONLINE_TIMER_FREQ4; ?></a>&nbsp;<br />
    I'll note the issue in the plugin's GitHub repository for corrective action.

  7. #107
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,393
    Plugin Contributions
    94

    Default Re: IP Blocker 1.5.1

    In reviewing the changes, v2.1.3 should have been tagged as supporting Zen Cart 1.5.5 or later. v2.1.2 should be used for earlier versions of Zen Cart.

  8. #108
    Join Date
    Mar 2005
    Posts
    229
    Plugin Contributions
    0

    Default Re: IP Blocker 1.5.1

    Hi Lat9,

    As I was reviewing my website logs I discovered 588 files which are not supposed to be there. Looking into the files I found in each one a first line like this :
    Code:
    [17-Dec-2018 14:28:57 America/New_York] Request URI: /index.php?main_page=discount_coupon'A=0, IP address: 185.235.15.140
    or
    [17-Dec-2018 22:04:17 America/New_York] Request URI: /index.php?main_page=index'A=0&cPath=66, IP address: 35.236.99.80
    or 
    [18-Dec-2018 23:59:31 America/New_York] Request URI: /index.php?main_page=site_map'[0], IP address: 173.44.37.114
    or 
    [21-Dec-2018 23:58:14 America/New_York] Request URI: /index.php?cPath=70_126&main_page=index2121121121212.1, IP address: 47.91.241.128
    [21-Dec-2018 23:58:17 America/New_York] Request URI: /index.php?cPath=70_126&main_page=index%20and%201%3E1, IP address: 47.91.241.128
    or even 
    [30-Dec-2018 12:31:27 America/New_York] Request URI: /index.php?main_page=..%2f..%2f..%2f..%2f..%2f..%2f..%2f..%2f..%2fetc%2fpasswd%00&cPath=90, IP address: 14.185.32.246
    All these are attempts to break in the host using zen-cart and php, especially the last one which tries to get the /etc/passwd file.

    Fortunately zen-cart didn't answer these attempts but the repeated requests did put the machine on knees.

    As I have fail2ban installed, I looked why fail2ban didn't deal with these.
    The answer is because fail2ban doesn't know anything about zen-cart log files.
    So that fail2ban manages these attempts I have to make a fail2ban configuration file, where I tell it which log file to monitor and , using a regex, how to identify bad attempts and get the ip.
    With these infos, fail2ban jails the IP for a delay. Means it add the ip to the deny list of either ufw or iptables (linux firewalls).

    So... I was thinking... Would it be difficult to mimic the fail2ban behaviour, i.e. monitor zen-cart log files and when a attempt is done add the IP to the block list ?

    That's just a suggestion. As I have fail2ban, I will try to make a configuration file for it, but not everybody has access to this kind of tool, especially if the website is on a shared host.

    thanks for reading.

    Hub
    P.S. : if you need my 588 log files with all kind of attempts, just tell me.

  9. #109
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,393
    Plugin Contributions
    94

    Default Re: IP Blocker 1.5.1

    Those same invalid accesses that are being reported by Zen Cart via debug-logs are also captured in your site's Apache logs which, from my quick read of fail2ban, is what that module looks at for its processing.

  10. #110
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,767
    Plugin Contributions
    30

    Default Re: IP Blocker 1.5.1

    So, after installing this mod, I blocked my own address to test it, and it didn't block it. What bit am I missing?
    Steve
    github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...

 

 
Page 11 of 13 FirstFirst ... 910111213 LastLast

Similar Threads

  1. v139h Pop up blocker blocking new window
    By kitten091182 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 20 Nov 2013, 02:07 PM
  2. v139g ip blocker mod problem
    By michelleodin in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 24 Nov 2012, 04:54 PM
  3. IP Blocker for Admin side?
    By fe1lho in forum Basic Configuration
    Replies: 3
    Last Post: 18 May 2010, 04:48 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR