Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

APACHE REDIRECTION

Status
Not open for further replies.

cginewbie

Programmer
Jan 20, 2002
24
0
0
US
Ok, I have found this interesting...

You can redirect somepage or the whole directory like this
Redirect /your/server/path/folder
You can block people from accessing your site with this
AuthUserFile "/somehwre/////.htpsswd"
AuthType Basic
<limit GET>
require valid-user
</limit>

Now comes the question: How do I redirect people who happens to come to this restricted area to go to a script for verification, and comeback there...

I was able to redirect them to a script for verification and comeback there, but it will redirect me to the verification script again in an infinite loop... So my question is that how can you stop this loop and yet stop people from seeing the popup windows ( i hate popups)...

Sound like impossible, anyone?
 
Hi mate,

It's not possible the way that you are trying to do it.

You would be able to do it if you redirected to the script and that sent the user to another directory and also passed the username and password to htaccess in the URL.

BUT, doing it this way you are then passing the user and pass in plain text so you bring in security issues.

Hope this helps Wullie

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top