Page 1 of 2 12 LastLast
Results 1 to 10 of 15
  1. #1
    Join Date
    Jul 2009
    Posts
    1
    Plugin Contributions
    0

    Default Blocking specific IP addresses

    Hi there, I have version v1.3.8a

    I have someone using our "add link" section to keep posting links to their sites. They keep posting pictures that contain viruses - and while I have it set up that I'm required to approve all links prior to them being posted online, it still shows the image to me when I'm on my zen cart. I'm trying to block a specific IP that is a repeat offender of this but do not know how.

    Is there another solution to this though? Like a way so that posting pictures as part of your link is not an option?

  2. #2
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

    Default Re: Blocking specific IP addresses

    The following is from javascriptkit.com

    Is there a pesky person perpetrating pain upon you? Stalking your site from the vastness of the electron void? Blockem! In your htaccess file, add the following code--changing the IPs to suit your needs--each command on one line each:

    order allow,deny
    deny from 123.45.6.7
    deny from 012.34.5.
    allow from all

    You can deny access based upon IP address or an IP block. The above blocks access to the site from 123.45.6.7, and from any sub domain under the IP block 012.34.5. (012.34.5.1, 012.34.5.2, 012.34.5.3, etc.) I have yet to find a useful application of this, maybe if there is a site scraping your content you can block them, who knows.
    There is usually a IP blocker in the C-Panel at your host admin. Does the same as the above...
    20 years a Zencart User

  3. #3
    Join Date
    Oct 2007
    Posts
    241
    Plugin Contributions
    0

    help question Cart Performance Q - IP BLOCKER Mon vs. htaccess vs. C-Panel

    Quote Originally Posted by schoolboy View Post
    The following is from javascriptkit.com



    There is usually a IP blocker in the C-Panel at your host admin. Does the same as the above...
    I recently DLed the module for IP Blocking to play with on my test cart.

    http://www.zen-cart.com/index.php?ma...oducts_id=1413

    I was missing a file (my own error!), and it didn't work, but by the time I realized that I had missed uploading one of the files, I deleted the module because I read the above message on this board that a simple addition to the htaccess file in each fold will accomplish the same task.

    Which would be fastest? Doesn't the IP Blocker mod slow down the cart just a little, whereas the other two methods mentioned will not affect cart performance??
    Last edited by Donn; 4 Dec 2009 at 05:33 PM. Reason: explication

  4. #4
    Join Date
    Oct 2007
    Posts
    241
    Plugin Contributions
    0

    Default Re: Cart Performance Q - IP BLOCKER Mon vs. htaccess vs. C-Panel

    Quote Originally Posted by Donn View Post

    Which would be fastest? Doesn't the IP Blocker mod slow down the cart just a little, whereas the other two methods mentioned will not affect cart performance??
    Update to anyone reading this....

    I decided to avoid installing the module.

    I instead am now relying on the above .htaccess modification, as that will cause the least slowdown, according to what I've read.

    Apparently, solutions can be implemented at many levels for this issue.

    I think keeping it at the server level is most efficient, however.


  5. #5
    Join Date
    Jan 2010
    Posts
    153
    Plugin Contributions
    0

    Default Re: Blocking specific IP addresses

    i have just had 2 attempts at very large and unusual orders from a particular ip address under 2 different accounts. then when i went to check google analytics after blocking the ip addresses i found that i had 2 visits from 69.175.10.98/referral strange thing is this is actually a site but has a test page for an apacheserver so i have banned this ip address too. any ideas if i am being targeted here??

  6. #6
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,378
    Plugin Contributions
    9

    Default Re: Blocking specific IP addresses

    Quote Originally Posted by Xbox Memberships View Post
    ... any ideas if i am being targeted here??
    not unlikely at all

    blocking one IP address is a temporary measure, does not stop a potential attacker to try again from a different computer with different IP address

    Important to follow these links:
    http://www.zen-cart.com/wiki/index.p...ing_From_Hacks
    http://www.zen-cart.com/forum/forumdisplay.php?f=134

    I just had a full audit done on one of my stores, can give you the name / url of the person who did that for me - just PM me

    Frank

  7. #7
    Join Date
    Jan 2010
    Posts
    153
    Plugin Contributions
    0

    Default Re: Blocking specific IP addresses

    i wasn't hacked though... they simply tried to place an order. twice with one lot of card details then made a new account with a new address and made a second order. they ordered 2 instan delivery xbox codes. luckily there is a flaw in my module for delivering them so it only sent one. so far as it was a microsoft points code and if the ip address is true to form it is useless to them as they are located in the us and the code will only work for european union consoles/accounts.

    I am going to get in touch with my payment service provider tomorow to find out why it allowed the card transaction in the first place though as it shows in the payment managment screen as passed by the cv2 being correct but the address was not even checked??

    talk about stringent fraud prevention tools eh??

    fingers crossed the code hasnt been redeemed and i can sell it quick via ebay tomorow at a reduced price to recover my funds before doing a full refund to the unfortunate owner of the card that has been billed!

    i think an audit may be a worth while step to take as well so if you could pm his details and a rough guide price and see if i can afford it

  8. #8
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,378
    Plugin Contributions
    9

    Default Re: Blocking specific IP addresses

    PM in your Inbox
    Frank

  9. #9
    Join Date
    Sep 2010
    Posts
    30
    Plugin Contributions
    0

    Default Re: Blocking specific IP addresses

    Every time I add an .htaccess file to the root of my cart it gives me http 500 errors all over. My IP is not on the block list but I think I am doing something wrong.

    My htaccess file contains the following code IPs replaced by Xs

    <Files *>
    order allow, deny
    deny from xx.xxx.xxx
    deny from xx.xxx.xxx
    deny from xx.xxx.xxx.xxx
    allow from all
    </Files>

    I've tried with and without the <Files *></Files>

  10. #10
    Join Date
    Jul 2006
    Location
    Johannesburg
    Posts
    447
    Plugin Contributions
    1

    Default Re: Blocking specific IP addresses

    You can always add this to the top of your index.php file to block certain IP's from gaining access to your site.

    PHP Code:
    $banned = array('129.168.1.1');
    if(
    in_array($_SERVER['REMOTE_ADDR'], $banned))
    {
        die();


 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v151 Need help with blocking specific subcategories
    By frank18 in forum General Questions
    Replies: 2
    Last Post: 21 Apr 2013, 01:07 PM
  2. Replies: 1
    Last Post: 14 Oct 2010, 12:33 AM
  3. Hosting server Blocking Customer IP addresses
    By kevinmc3 in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 21 Oct 2009, 11:05 PM
  4. Blocking IP Addresses
    By direwolf in forum General Questions
    Replies: 2
    Last Post: 18 Aug 2009, 12:28 AM
  5. Blocking a range of IP addresses
    By dpatt111 in forum General Questions
    Replies: 2
    Last Post: 26 Aug 2006, 03:31 PM

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