PhpDig.net

Go Back   PhpDig.net > PhpDig Forums > How-to Forum

Reply
 
Thread Tools
Old 03-09-2005, 10:58 PM   #1
joannelee
Green Mole
 
Join Date: Mar 2005
Posts: 2
Question Hiding Password Protected Pages

Hello. I'm new for PhpDig. I appreciate this project very much but I came across two problems. Could you please help me?

1. Cannot dig (http session) password protected pages. I have logged in the protected page first and go to phpDig admin page to dig the that page. Instead, it digged the timeout page. Can I dig the protected page when the login session is valid and not time-out? I cannot afford removing the password protection during the process.

2. Is it possible to restrict the result set returns only the accessible pages of the current user. All the protection is using http authentication with username and password.

Thanks a lot!
joannelee is offline   Reply With Quote
Old 03-14-2005, 06:05 PM   #2
joannelee
Green Mole
 
Join Date: Mar 2005
Posts: 2
** URGENT **
Dear Charter and all experts,

Why no one response my questions at all? More description of my problems as follows:

1. Most of my web pages are password protected using session. For example:
//index.php
$sess = new Session();
$user = $sess->getSession($GLOBALS["sessionUser"]);
if(!empty($user)) { print $html_content; }
else { header("Location: index.php?error=timeout");}

I have already logged in to index.php, and then go to phpdig admin page to dig index.php. But only index.php?error=timeout can be digged even the session is valid. How can I dig the real content ($html_content above) when the session is valid?

I cannot remove the session validation during indexing due to security reason and cannot access the root of the hosting machine.

---------------------------------------
2. In searching, how can the result set just return the web pages which they can see and NOT return the protected pages if the current user is not logged in? The login logic is same as above.

Please give me a hand! Thank you very much!
joannelee is offline   Reply With Quote
Old 03-15-2005, 10:07 AM   #3
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
For one perhaps try using the user-agent as in this thread, and for two there would need to be a way to store the access level along with the page, and then verify that level before serving search results to the user.
__________________
Responses are offered on a voluntary if/as time is available basis, no guarantees. Double posting or bumping threads will not get your question answered any faster. No support via PM or email, responses not guaranteed. Thank you for your comprehension.
Charter is offline   Reply With Quote
Reply

Thread Tools

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 Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Indexing Password Protected pages (using session variables) apetersen How-to Forum 1 03-27-2007 04:18 AM
For Those With Password Protected Sites bbenson How-to Forum 3 09-16-2004 04:25 PM
admin password-protected - cron job? manute Troubleshooting 3 05-15-2004 11:35 AM
problem indexing password-protected directories alexp Troubleshooting 29 12-05-2003 08:34 AM
install password protected? mistafeesh Script Installation 3 11-10-2003 11:54 PM


All times are GMT -8. The time now is 02:42 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.