Click to See Complete Forum and Search --> : bypass Auth htaccess on dev setup? for flash,xml,php get request?


bennystylee
11-07-2009, 08:56 AM
Hi all an itneresting one here that I am sure would be possible.

I am running a dev setup behind a .htaccess password and have an xml get php request that sends information to flash.

With the password turned on it doesnt work, with password off it works.

I would love to find a way to let this get request through so I dont have to remove password from my htaccess to test.

Any ideas?

I presume it would be something along the lines of


AuthUserFile /blah/blah/.htpasswd
AuthName "Dev"
AuthType Basic
require valid-user
Order Deny,Allow
Deny from all
Allow from your own ip
Allow from 127.0.0.1

that lets me in on the browser but the get is not read by the flash file - is this something to do with flash.

Its not a biggy as said I can just turn the password on or off, but curiosoty has got me here.

Thanks in advance

kiwibrit
11-07-2009, 09:10 AM
I don't think you can do it. You could just use robots.txt so that a site or directory is not available to search engines - or set up Apache for use on localhost on your own computer to do your development prior to upload.

bennystylee
11-07-2009, 09:21 AM
I am also on a local development setup - just read actually that I am being a little paranoid with using htpasswords on my local dev setup on my machine as the server isnt released to the web so I have turned off password on local machines dev for the moment. :)

Thanks

bennystylee
11-09-2009, 05:20 AM
stumbled on it whilst trying to do somethign else - make the request a system request rather than a http - this means the htpassword isnt needed