Hi Gregory,
> I'm going to try doing my surfing through one of
> these anonymizing proxy servers, like guardster.com.
> Is there some way to automatically route DQSD
> searches through one of these sites? I'm going to
> work on this problem myself, but I'm hoping one of
> you has already worked it out.
I don't know if you intend to use it for all DQSD searches or not, but
if yo do you can have it affect MOST searches by editing
defer_tools.js
Also, it depends on how the proxy works, most modify the domain in
some way or another.
At the beginning of the submitForm() function insert this:
var sProxy = "example.com";
var sAction = form.attributes["action"].nodeValue;
var rx = new RegExp("(://[^/]*)/");
sAction = sAction.replace(rx, "$1." + sProxy + "/");
form.attributes["action"].nodeValue = sAction;
And at the beginning of openNamedSearchWindow() (NOT
openSearchWindow()) add this:
var sProxy = "example.com";
var rx = new RegExp("(://[^/]*)/");
url = url.replace(rx, "$1." + sProxy + "/");
Those each replace the existing form action or url with the redirect
domain in the url (usually in the format of
"olddomain.com.proxyserver.com"). Change "example.com" to whatever
proxy you'll be using.
Of course, that's all vapor code - no idea if it works or not, but it
should. The logic is good. :)
Now you gotta listen to the other side though:
I hate proxies. I wrote some script on my site specifically so that
proxies that operate by changing the domain fail, and forward the
request correctly to my domain - where it belongs. It does
detrimentally affect certain "good" 3rd party services, like
translation engines, but it also protects me from people bypassing my
advertisers and minimizes some people exploiting my services for their
own servers.
I just thought I'd warn you - just because you're using an anonymous
proxy doesn't mean it won't really prevent you from making direct
requests.
Regards,
Shawn K. Hall
http://ReliableAnswers.com/
'// ========================================================
Soul of Cassanova. Body of Elmer Fudd.
-------------------------------------------------------
This SF. Net email is sponsored by: GoToMyPC
GoToMyPC is the fast, easy and secure way to access your computer from
any Web browser or wireless device. Click here to Try it Free!
https://www.gotomypc.com/tr/OSDN/AW/Q4_2003/t/g22lp?Target=mm/g22lp.tmpl
_______________________________________________
To unsubscribe visit:
https://lists.sourceforge.net/lists/listinfo/dqsd-users
[EMAIL PROTECTED]
http://sourceforge.net/mailarchive/forum.php?forum_id=8601