Results 1 to 5 of 5
  1. #1
    Join Date
    Sep 2008
    Location
    Cleethorpes
    Posts
    1,229
    Plugin Contributions
    6

    red flag change to includes htaccess

    Please can one of the forums Zen Cart developers tell me if I change the htaccess file in 'includes' would this compromise the cart and make it less secure?

    The reason I ask is that I've been told by a payment system company to add |PHP|php to the end of the htaccess file like this.

    # deny *everything*
    <FilesMatch ".*">
    Order Allow,Deny
    Deny from all
    </FilesMatch>

    # but now allow just *certain* necessary files:
    <FilesMatch ".*\.(js|JS|css|CSS|jpg|JPG|gif|GIF|png|PNG|swf|SWF|xsl|XSL|PHP|php)$">
    Order Allow,Deny
    Allow from all
    </FilesMatch>

    IndexIgnore */*

    normally it would read

    # deny *everything*
    <FilesMatch ".*">
    Order Allow,Deny
    Deny from all
    </FilesMatch>

    # but now allow just *certain* necessary files:
    <FilesMatch ".*\.(js|JS|css|CSS|jpg|JPG|gif|GIF|png|PNG|swf|SWF|xsl|XSL)$">
    Order Allow,Deny
    Allow from all
    </FilesMatch>

    IndexIgnore */*



    Thanks

    Nick
    Nick Smith - Venture Design and Print
    https://venturedesignandprint.co.uk

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: change to includes htaccess

    I would ask them why??

  3. #3
    Join Date
    Sep 2008
    Location
    Cleethorpes
    Posts
    1,229
    Plugin Contributions
    6

    Default Re: change to includes htaccess

    well I can answer that. Their processing system needs to access a callback.php file and serverresult.php file so orders are updated from pending to processing, which I have been told by them that it requires this change to the htaccess file. I found this a bit strange so I looked it up and I think you or Dr Byte commented that it should not be changed. The reason I found this strange is because to anyone that isn't a developer this would be a different language altogether and not the usual thing to do. Also there are no instructions inside the payment module saying this should happen.

    I find myself questioning why? when its not listed as a change in the mod installation files, and there are no instructions to do this elsewhere?
    Nick Smith - Venture Design and Print
    https://venturedesignandprint.co.uk

  4. #4
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: change to includes htaccess

    A php file located on your hosting account should operate just fine without having that added

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

    Default Re: change to includes htaccess

    Quote Originally Posted by Nick1973 View Post
    Please can one of the forums Zen Cart developers tell me if I change the htaccess file in 'includes' would this compromise the cart and make it less secure?

    The reason I ask is that I've been told by a payment system company to add |PHP|php to the end of the htaccess file like this.
    EEEKS!!!!!!!
    That would completely destroy the entire intention of the security measures in that .htaccess file.

    The callback should NOT be put into the /includes/ folder. If they require that, then they've written it very poorly. Have them rewrite it so that it works from the root folder directly.
    .

    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. v150 my includes/configure.php can't change
    By windsurfer in forum Basic Configuration
    Replies: 7
    Last Post: 1 Mar 2012, 02:32 AM
  2. is it safe to change permissions of .htaccess?
    By goalsurfer in forum General Questions
    Replies: 0
    Last Post: 10 Aug 2011, 11:55 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