![]() |
Adding a variable to the end of every link?
Hello,
I want to use this for a intranet and inorder to get past the user auth I need phpdig to automaticly add a couple of varaibles to the end of the links it tries to open. so http://www.myserver.com/index.php would auto look like: http://www.myserver.com/index.php?bypassauth=1 and when it found lets say the news link news.php it would auto add to it as well: news.php?bypassauth=1 Thanks Chris |
Instead of monkeying with the phpdig code, why not setup a process to append that string to every URL in the database? Just a thought.
|
The problem is that phpdig keeps getting bounced to our login page. So it only is able to index 2 pages index.php and login.php
by having phpdig add the ?bypass=yes to the urls it will be able to bypass the securities. Thanks Chris |
Sorry, I must have misunderstood what you were asking. Take a look at this thread and see if it helps. I think it's probably closer to what you need to know. Unless, of course, I'm way off base, which is entirely possible. If so, perhaps you could explain a little more what you're trying to do.
|
I already tried the username:password@domain.com
it does not work. I am not using .htaccess to authenticate users I am using custom php code. Basicly if the username and password matches the database the auth script sets a varaible. ie $goodauth=1 and at the top of ever page the scripting looks similar to: if ($goodauth !== "1"){ headerlocation to login.php } else { page content } So to bypass this I need phpdig to add ?goodauth=1 to every url it tries to spider. Adding the ?goodauth=1 would bypass the login. Thanks Chris |
any one?
|
Um, can I take another stab at this? :)
Change your custom script to let the phpdig user-agent through without authentication. Here is a thread that talks about how that's defined in phpdig. So what you'd have for authentication is something like this: PHP Code:
You gotta give me an A for effort! ;) |
A++++
THANK YOU!!!!!!!!! Chris |
All times are GMT -8. The time now is 04:49 AM. |
Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.