Page 2 of 2 FirstFirst 12
Results 11 to 15 of 15

Thread: Link Checks

  1. #11
    Administrator Ken Puls's Avatar
    Join Date
    Mar 2011
    Location
    Nanaimo, BC, Canada
    Posts
    1,580
    Articles
    100
    Blog Entries
    14


    Register for a FREE account, and/
    or Log in to avoid these ads!

    Actually, I was wrong...

    When you try to hit an invalid forum URL here, it does NOT 404 or redirect. The CMS actually returns content inside the URL of the invalid page. As an example, this page is invalid: http://www.excelguru.ca/forums/showt...29-Link-Checks

    Notice though that the header does show the URL I specified. This means that the URL IS valid according to the server. The only method I can think of is to parse all the text in the content of the returned page looking for an element that is common only to the "does not exist" page.

    Does that make sense?
    Ken Puls, CMA, MS MVP (Excel)

    Main Site: http://www.excelguru.ca -||- Blog: http://www.excelguru.ca/blog -||- Forums: http://www.excelguru.ca/forums
    Check out the Excelguru Facebook Fan Page -||- Follow Me on Twitter

    If you've been given VBA code (a macro) for your solution, but don't know where to put it, CLICK HERE.

  2. #12
    Hi Ken,

    Wheny ou say "parse all thetext in the cntent of th returned page" are we talking about the URL portion or actual content?. You Would think that there would be a response code identifying the issue that we could key in on (i.e 404, 301, 200), instead? Would a reference to msinet.ocx, an ActiveX Control belonging to Microsoft Internet Transfer Control help with this?

  3. #13
    Administrator Ken Puls's Avatar
    Join Date
    Mar 2011
    Location
    Nanaimo, BC, Canada
    Posts
    1,580
    Articles
    100
    Blog Entries
    14
    Hi Gary,

    I'm talking actual content.

    The challenge is that these Content Managment Systems are now getting smart enough that the don't seem to return a 404 or 301 error. They just serve up their own message about the page being invalid.

    I've never used msinet.ocx, so I can't say if that would help or not. I can try and take a look, but I've got some other stuff I have to do tonight...
    Ken Puls, CMA, MS MVP (Excel)

    Main Site: http://www.excelguru.ca -||- Blog: http://www.excelguru.ca/blog -||- Forums: http://www.excelguru.ca/forums
    Check out the Excelguru Facebook Fan Page -||- Follow Me on Twitter

    If you've been given VBA code (a macro) for your solution, but don't know where to put it, CLICK HERE.

  4. #14
    Quote Originally Posted by Ken Puls View Post

    When you try to hit an invalid forum URL here, it does NOT 404 or redirect. The CMS actually returns content inside the URL of the invalid page. As an example, this page is invalid: http://www.excelguru.ca/forums/showt...29-Link-Checks

    Notice though that the header does show the URL I specified. This means that the URL IS valid according to the server. The only method I can think of is to parse all the text in the content of the returned page looking for an element that is common only to the "does not exist" page.
    I noticed that your page offers up the following text "No Thread specified. If you followed a valid link, please notify the administrator". Is this something that is unique to your site only?

  5. #15
    Administrator Ken Puls's Avatar
    Join Date
    Mar 2011
    Location
    Nanaimo, BC, Canada
    Posts
    1,580
    Articles
    100
    Blog Entries
    14


    Register for a FREE account, and/
    or Log in to avoid these ads!

    It's something that is served up by the vBulletin Content Management System that I use to host my site. So if your site served up some common phrase instead of a 404 error, that could potentially be picked up on. You'd want to make sure that it is a textual phrase (or something) that isn't going to be served up by anything else though.
    Ken Puls, CMA, MS MVP (Excel)

    Main Site: http://www.excelguru.ca -||- Blog: http://www.excelguru.ca/blog -||- Forums: http://www.excelguru.ca/forums
    Check out the Excelguru Facebook Fan Page -||- Follow Me on Twitter

    If you've been given VBA code (a macro) for your solution, but don't know where to put it, CLICK HERE.

Page 2 of 2 FirstFirst 12

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •