Skip to main content
January 19, 2009
Question

Search another site

  • January 19, 2009
  • 5 replies
  • 421 views
Hello, I am looking for a way to search another site for a specific phrase.

People are linking to my site and I have to ask them for the page where they linked and go validate that it's there. I'd like to automate this process.

Any ideas?
    This topic has been closed for replies.

    5 replies

    tclaremont
    Inspiring
    January 21, 2009
    Needing a login is dependent on the other site. With CFHTTP, you are retrieving whatever content is returned to the browser. The other web site "sees" this visit as just another visitor on the web. If the page you are visiting is unprotected, you wont need a login.

    Once you use CFHTTP, the contents of the page in question are returned to you as a variable. Use your string functions to parse or search that variable for whatever word or words you like. If your search finds your string, you can be reasonably sure that your link appears on the other site. I say "reasonably sure" because the other site may be capable of "fooling the system" and not actually displaying the link correctly, or hiding it in the same font color as the background color, etc. etc.
    January 19, 2009
    Will do. I've never used the cfhttp tag so I'm going to have to do some homework before I can post again.

    My first thought is "will I be able to use this without a login for the other ip" but I'm sure I will find out soon.


    tclaremont
    Inspiring
    January 19, 2009
    Some of us solved this dilemma for another user at some point in the last six months. Search the forums and I am sure you will uncover it. CFHTTP is at the root of the solution, though.
    January 19, 2009
    Ok I'll give that a try. Thanks Azadi.
    Inspiring
    January 19, 2009
    use <cfhttp> and then look for the phrase (and probably a url as well)
    in the returned filecontent.

    Azadi Saryev
    Sabai-dee.com
    http://www.sabai-dee.com/