Results 1 to 3 of 3
  1. #1
    Join Date
    May 2010
    Posts
    6
    Plugin Contributions
    0

    red flag Ensuring SSL only access to the cart

    I've installed an SSL cert, reconfigured the site to use SSL and https access works when clicking thru the payment process.

    However, if you remove the "s" form https when in the cart (or enter the cart URL manually over http) and load the page that way, you are still able to see, and submit card and personal data over http.

    Is there a way of ensuring ALL access to the pages index.php?main_page=checkout_[XXX] are redirected to their SSL conterparts?

    Thanks

    a

  2. #2
    Join Date
    Jun 2003
    Posts
    33,720
    Plugin Contributions
    0

    Default Re: Ensuring SSL only access to the cart

    However, if you remove the "s" form https when in the cart (or enter the cart URL manually over http) and load the page that way, you are still able to see, and submit card and personal data over http
    Not exactly - All of the form information is still sent via https as long as your cart and certificate are configured correctly.
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  3. #3
    Join Date
    May 2010
    Posts
    6
    Plugin Contributions
    0

    Default Re: Ensuring SSL only access to the cart

    Quote Originally Posted by Kim View Post
    Not exactly - All of the form information is still sent via https as long as your cart and certificate are configured correctly.
    I recognise that, but I'd rather have it so that any page where you're entering creditcard numbers has been served over SSL.

    I've worked it out using mod_rewrite in a .htaccess file.

    Code:
    RewriteEngine On
    RewriteCond %{QUERY_STRING} ^main_page=checkout_(.*)$
    RewriteCond %{SERVER_PORT} !443
    RewriteRule (.*) https://%{server_name}/$1 [R]
    i.e.
    Turn on the rewrite ening
    Match cases where the query string has checkout_[foo] (where foo could be "confirmation", "shipping" or "payment")
    Then check if you're not using port 443
    and if not then rewrite to https://

 

 

Similar Threads

  1. v154 (77) Problem with the SSL CA cert (path? access rights?) - Solved
    By nuganics in forum PayPal Express Checkout support
    Replies: 0
    Last Post: 28 Jan 2015, 02:23 AM
  2. Ensuring a product in cart until completed checkout
    By CHexclaim in forum General Questions
    Replies: 6
    Last Post: 7 Jan 2012, 01:53 AM
  3. When Might SSL-Only Access Be Possible ???
    By jman in forum Basic Configuration
    Replies: 5
    Last Post: 18 Jul 2011, 06:06 PM
  4. Coupon only applying only to one of the items in the cart
    By johnmr in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 1
    Last Post: 15 Jul 2010, 09:25 PM
  5. Replies: 0
    Last Post: 12 May 2009, 04:42 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