Forum Moderators: mack

Message Too Old, No Replies

Unknown Script

         

Bud_Bundy

11:49 am on Apr 26, 2004 (gmt 0)

10+ Year Member



I had a friend built a couple of html pages for me. When the pages were done, I tried to look at the source and found the following script:

<SCRIPT>
function go(value)
{

url="http://www.google.com/search?sourceid=navclient&hl=id&q=site:www.abcdef.com+"
test=escape(value)
self.location.href= url + test
}
</SCRIPT>

Having not seen that script before, I wonder what the script does to the webpages?

AWildman

12:07 pm on Apr 26, 2004 (gmt 0)

10+ Year Member



The person was passing the script a value which he was then using to create a url in conjunction with an existing url, ie. he was creating a url with parameters. Then, he was changing the location of the page to the new url that he just created.

vkaryl

12:45 am on Apr 28, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



In other words, he was redirecting the original page address to a different page address.

Bud_Bundy

3:57 am on Apr 28, 2004 (gmt 0)

10+ Year Member



thanks.
so, would it violate the search engine? and what is the purpose of using the script?

Krapulator

7:30 am on Apr 28, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



This looks like a simple site search script.

Whatever value is passed to the script triggers a Google search within the site www.abcdef.com for that value.

Eg if the word "Dingle" was passed to the script, you would be forwarded to the Google result page for the search "Dingle", returning only pages from the domain www.abcdef.com