Go Back   CodingForums.com > :: Server side development > Apache configuration

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Old 11-07-2009, 02:56 PM   PM User | #1
chidge
New Coder

 
Join Date: Nov 2008
Posts: 70
Thanks: 9
Thanked 0 Times in 0 Posts
chidge is an unknown quantity at this point
bypass Auth htaccess on dev setup? for flash,xml,php get request?

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

Code:
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
chidge is offline   Reply With Quote
Old 11-09-2009, 11:19 AM   PM User | #2
chidge
New Coder

 
Join Date: Nov 2008
Posts: 70
Thanks: 9
Thanked 0 Times in 0 Posts
chidge is an unknown quantity at this point
make the request a system request rather than a http - this means the htpassword isnt needed
chidge is offline   Reply With Quote
Old 11-09-2009, 04:27 PM   PM User | #3
eak
Regular Coder

 
eak's Avatar
 
Join Date: Jun 2002
Location: Nashville, TN
Posts: 339
Thanks: 0
Thanked 25 Times in 25 Posts
eak is on a distinguished road
I think the flash object gets its data from the server just like an AJAX call...

From flash, can you pass username & password credentials like you can with AJAX?

You may want to check the referrer header too. If it is from your site, let them pass.
__________________
eak | "Doing a good deed is like wetting your pants; every one can see the results, but only you can feel the warmth."
eak is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 03:57 AM.

Home - Contact Us - Archives - Link to CF - Resources - Top 

Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.