Results 1 to 9 of 9
  1. #1
    Join Date
    Jul 2006
    Location
    SF Bay Area
    Posts
    867
    Plugin Contributions
    1

    Default Help testing Allow-access-by-country mod

    Hi folks;

    I've had a number of requests to create a module that either:
    - bans certain countries from accessing Zen Cart, or
    - allow access only from certain countries.

    I've created this module but it is proving difficult to test.

    Any help would be appreciated.

    Test URL: http://www.zen-fu.com/junk1/

    Test configuration: Allowed Countries:
    - Canada
    - Australia
    - United Kingdom

    The above countries should have no problem accessing the Zen Cart site at the above test URL.

    Visitors from all other countries should get a nice "Access Denied" message along with a note about where the server thinks you are coming from.

    I'd greatly appreciate any reports of if the above config rules are working as expected from your country and if the server correctly or incorrectly identifies your country.

    Thanks for all your help.

    PS: please don't skew the data by using proxy servers (yet).

  2. #2
    Join Date
    Nov 2007
    Location
    Burney, CA. USA
    Posts
    131
    Plugin Contributions
    4

    Default Re: Help testing Allow-access-by-country mod

    Seems to be working my results:

    Access denied to connection seeming to come from: UNITED STATES
    which is correct, I am located in the United States.

    I would suggest though, having a slightly friendlier access denial page; incase a customer was to be incorrectly not allowed access... but all in all, seems to do what you wanted it to do.

  3. #3
    Join Date
    Jul 2006
    Location
    SF Bay Area
    Posts
    867
    Plugin Contributions
    1

    Default Re: Help testing Allow-access-by-country mod

    Thank you! I very much appreciate your reports (good or bad).

    I know the message is a bit terse, but in actual use, the visitor would be redirected to a more friendly page of the shop owners choosing (or simply ignored). I was a bit hasty (and lazy) and didn't spend much time on what happens after the test logic executes.

  4. #4
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,571
    Plugin Contributions
    1

    Default Re: Help testing Allow-access-by-country mod

    I'm from Canada and no problem accessing.

    Mind you, FF doesn't like your Template coding. W3C cannot validate because it's from the U.S.

  5. #5
    Join Date
    Jul 2006
    Location
    SF Bay Area
    Posts
    867
    Plugin Contributions
    1

    Default Re: Help testing Allow-access-by-country mod

    Quote Originally Posted by Website Rob View Post
    I'm from Canada and no problem accessing.

    Mind you, FF doesn't like your Template coding. W3C cannot validate because it's from the U.S.
    Excellent, thank you!

    Yes, there are some pitfalls involved with restricting access from huge geographic areas. I appreciate you pointing that one out.

    Otherwise, things seem to be going very well.

  6. #6
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,571
    Plugin Contributions
    1

    Default Re: Help testing Allow-access-by-country mod

    Curious to know if this will be a Module availalble from the Zen Cart Downloads section, once testing is complete?

  7. #7
    Join Date
    Jan 2008
    Posts
    1,700
    Plugin Contributions
    6

    Default Re: Help testing Allow-access-by-country mod

    Works fine for UK. I think this would come in real useful for banning 'troublesome' countries.

  8. #8
    Join Date
    Jul 2006
    Location
    SF Bay Area
    Posts
    867
    Plugin Contributions
    1

    Default Re: Help testing Allow-access-by-country mod

    Quote Originally Posted by Website Rob View Post
    Curious to know if this will be a Module availalble from the Zen Cart Downloads section, once testing is complete?
    Yes, I should have install instructions in the next day or two.

  9. #9
    Join Date
    Jul 2006
    Location
    SF Bay Area
    Posts
    867
    Plugin Contributions
    1

    Default Re: Help testing Allow-access-by-country mod

    An initial release and support thread are here:

    http://www.zen-cart.com/forum/showth...882#post528882

 

 

Similar Threads

  1. v139h PayPal IPN -PayPal does not allow your country of residence to ship to the country yo
    By nigelt74 in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 6 Aug 2012, 05:05 PM
  2. Paypal does not allow your country of residence to ship to the country you wish to
    By tparvaiz in forum PayPal Express Checkout support
    Replies: 4
    Last Post: 25 Jul 2011, 09:34 PM
  3. Replies: 9
    Last Post: 30 Aug 2010, 11:07 AM
  4. How do I allow Registration & Check Out in only 1 country?
    By joomoo79 in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 20 Mar 2010, 04:47 PM
  5. Allow non-members access to search wishlists?
    By boutique in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 5 Feb 2009, 11:16 AM

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