Forums / General Questions / change to includes htaccess

change to includes htaccess

Views: 632

Results 1 to 5 of 5
13 Mar 2013, 9:01 PM
#1
nick1973 avatar

nick1973

Totally Zenned

Join Date:
Sep 2008
Location:
Cleethorpes
Posts:
1,230
Plugin Contributions:
3

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

13 Mar 2013, 9:31 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: change to includes htaccess

I would ask them why??

Zen-Venom Get Bitten

13 Mar 2013, 9:49 PM
#3
nick1973 avatar

nick1973

Totally Zenned

Join Date:
Sep 2008
Location:
Cleethorpes
Posts:
1,230
Plugin Contributions:
3

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

14 Mar 2013, 12:37 AM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: change to includes htaccess

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

Zen-Venom Get Bitten

15 Mar 2013, 3:17 AM
#5
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: change to includes htaccess

Nick1973:

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.