XML datafeed and password protection

cowtancowtan Member
in Bugs & Feature Requests edited May 2011
This is not a big issue for me but I thought I'd ask the question just in case there's a straightforward answer...

The site I'm developing at the moment I was protecting from prying eyes using straightforward .htaccess password protection. I'm also using the foxycart xml datafeed to capture and store info about the transactions that take place. The problem is that the xml datafeed can't access the script that handles it because the script is password protected, along with the rest of the site.

So far I've got round this by taking down the password protection but I'm wondering if there's any way for the XML feed to give the username and password so I can re-apply it.

regards,
Gordon
Comments
  • lancelance Member, Community Support Member
    Gordon,

    There really wouldn't be a way for the feed to provide credentials the way it is currently set up; however, you can add this to your .htaccess file:
    <Files "/path/to/script.ext">
      Allow from all
      Satisfy any
    </Files>
    
    That should successfully exclude that particular file from requiring password protection.

    Does this help?

    Lance
  • cowtancowtan Member
    Blindingly obvious once someone points it out. Thanks Lance. Gordon
Sign In or Register to comment.