Results 1 to 7 of 7

Hybrid View

  1. #1
    Join Date
    Aug 2009
    Posts
    29
    Plugin Contributions
    0

    Default 403 on /store/ipn_main_handler.php?xxxxxxxxx

    It seems as though the callback to ZC after loggin in to PayPal pressing continue in PayPal throws the following error on 'postback':

    403 Permission Denied
    You do not have permission for this request /store/ipn_main_handler.php?type=ec&token=EC-1PB63163DD995290N&PayerID=D5BLAHHHHB84

    in my mind it seems like a simple permissions issue, but even setting 755 on that file doesn't solve...any ideas?

  2. #2
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: 403 on /store/ipn_main_handler.php?xxxxxxxxx

    Probably something blocked by rules in your .htaccess, perhaps from a so-called SEO addon?
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Aug 2009
    Posts
    29
    Plugin Contributions
    0

    Default Re: 403 on /store/ipn_main_handler.php?xxxxxxxxx

    as it stands, the root (public_html) folder has an .htaccess file but the Zen Cart subdirectory (store) does not, can you point me to a generic .htaccess file for ZenCart I don't think there was one in ZC root, should there be? There is one in the admin folder as well. The .htaccess file in the root (public_html) folder is:

    Code:
    RewriteEngine on
    
    RewriteCond %{HTTP_REFERER} !^$
    RewriteCond %{HTTP_REFERER} !^http://mystore.com/.*$      [NC]
    RewriteCond %{HTTP_REFERER} !^http://mystore.com$      [NC]
    RewriteCond %{HTTP_REFERER} !^http://www.mystore.com/.*$      [NC]
    RewriteCond %{HTTP_REFERER} !^http://www.mystore.com$      [NC]
    RewriteCond %{HTTP_REFERER} !^https://mystore.com/.*$      [NC]
    RewriteCond %{HTTP_REFERER} !^https://mystore.com$      [NC]
    RewriteCond %{HTTP_REFERER} !^https://www.mystore.com/.*$      [NC]
    RewriteCond %{HTTP_REFERER} !^https://www.mystore.com$      [NC]
    RewriteRule .*\.(jpg|jpeg|gif|png|bmp|php)$ - [F,NC]

  4. #4
    Join Date
    Aug 2009
    Posts
    29
    Plugin Contributions
    0

    Default Re: 403 on /store/ipn_main_handler.php?xxxxxxxxx

    shave and a haircut, bump bump

  5. #5
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: 403 on /store/ipn_main_handler.php?xxxxxxxxx

    You can see the default .htaccess files supplied with Zen Cart by downloading a clean copy of the Zen Cart distribution zip file and unzipping it.
    https://www.zen-cart.com/tutorials/i...hp?article=323
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  6. #6
    Join Date
    Aug 2009
    Posts
    29
    Plugin Contributions
    0

    Default Re: 403 on /store/ipn_main_handler.php?xxxxxxxxx

    Quote Originally Posted by DrByte View Post
    You can see the default .htaccess files supplied with Zen Cart by downloading a clean copy of the Zen Cart distribution zip file and unzipping it.
    https://www.zen-cart.com/tutorials/i...hp?article=323
    There's no HTACCESS in the zen root folder.

  7. #7
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: 403 on /store/ipn_main_handler.php?xxxxxxxxx

    Quote Originally Posted by junkbox View Post
    There's no HTACCESS in the zen root folder.
    Correct.

    And your point is?
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 

Similar Threads

  1. Unexpected T_ECHO in ipn_main_handler.php
    By dgent in forum Basic Configuration
    Replies: 4
    Last Post: 2 Nov 2011, 10:15 AM
  2. ipn_main_handler.php
    By kgovett in forum PayPal Express Checkout support
    Replies: 2
    Last Post: 30 Sep 2009, 08:52 PM
  3. ipn_main_handler.php permissions
    By cnsystems in forum General Questions
    Replies: 1
    Last Post: 12 Apr 2007, 11:21 AM
  4. ipn_main_handler.php location
    By FSGS in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 13 Oct 2006, 06:19 AM
  5. ipn_main_handler.php
    By mediathing in forum Built-in Shipping and Payment Modules
    Replies: 5
    Last Post: 11 Sep 2006, 09:27 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