Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Stupid Crawly Spiders - Search Engine - Browser Caps - DNN5Stupid Crawly Spiders - Search Engine - Browser Caps - DNN5
Previous
 
Next
New Post
1/21/2009 3:09 PM
 

I've been seeing a few errors in one of my portals due to (mostly) tiny spiders. Mostly I didn't care about them, but today I'm trying to trim the exceptions getting thrown on this specific portal. I'm curious if anyone has created custom browser caps entries for these spiders yet...

UserAgent: Mozilla/5.0 (compatible; Ask Jeeves/Teoma; +http://about.ask.com/en/docs/about/webmasters.shtml)
UserAgent: Mozilla/5.0 (compatible; Charlotte/1.1; http://www.searchme.com/support/)
UserAgent: Mozilla/5.0 (compatible; Yahoo! Slurp; http://help.yahoo.com/help/us/ysearch/slurp)
UserAgent: Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)
UserAgent: Baiduspider+(+http://www.baidu.com/search/spider.htm)
UserAgent: ip2 larbin2.6.3@unspecified.mail

Method: DotNetNuke.UI.WebControls.MenuNodeWriter.Render or DotNetNuke.UI.Skins.Skin.ProcessSlaveModule or System.Number.StringToNumber
 

I'm digging through the spiders browsercaps included in dnn5, but they're not the easiest thing to read... So, I was wondering if anyone else likes search engines to see their content and fixed this already (I already fixed the bug with the name of the app_browsers folder), I would love to see what you changed... if not expect a fix to be posted in the next 24 hours...

 
New Post
1/21/2009 10:27 PM
 

Seems like the BrowserSupportsFunctionality function in both the DNNMenu and the SolPart Menu is throwing the error, it seems to break the entire site and not just the menu control. This is mainly with the baiduspider+ useragent string...

 
New Post
1/22/2009 1:11 AM
 

Oliver Hine wrote

... expect a fix to be posted in the next 24 hours ...

These files are very easy to read, after you figure out how all the data relates to each other, and really easy to test with Joe Brinkman's Test/Sample UserAgent/BrowserCap Application... 

Anyways... If anyone wants it... I've added a BrowserCaps file to my download section that will fix errors with spiders.

 
New Post
1/22/2009 3:40 AM
 

Oliver Hine wrote

Seems like the BrowserSupportsFunctionality function in both the DNNMenu and the SolPart Menu is throwing the error ...

For some reason one of the google bots is causing a bunch of errors, f'ing around with the caps file for ages didn't seem to get it going like the above fix... So I downloaded the WebControls package to get the PDB up on my server to get some useful traces...

Without really getting into the new DNNMenu control, it looks like a minor bug DNNMenu\MenuNodeWriter.vb, Line 104.... Which has a really nice friendly if statement...

If objLastNode Is Nothing ...

If objLastNode.ID = m_Node.ID ...

End If

 

Just a guess, but if the object is nothing, what makes you think it would hold an ID value?

Is SEO not part of the "community" edition?

 

EDIT:

ok, 20 minutes later and after going into a little bit of depth I guess we should change line 104 to...

If objLastNode IsNot Nothing AndAlso objLastNode.ID = m_Node.ID AndAlso (String.IsNullOrEmpty(strParentID) = False AndAlso strParentID <> Me.m_Node.DNNMenu.ClientID) Then

 
New Post
1/25/2009 4:28 PM
 

I've got a portal that used to use the DNN Gallery, but now it uses my Photo Gallery control. Now these stupid spiders are getting killed when crawling my site on Library\UI\Skins\Skin.vb:424. The old gallery is currently in the trash / recycling bin.

Looks like it's having trouble getting the modules controls, so I added a check for nothing and a redirect to an access denied message at line 422.

If objModuleControl Is Nothing Then
   'we have a problem....
    Response.Redirect(AccessDeniedURL("This content has been deleted"), True)
Else

Now, when I request mydomain.com/Default.aspx?tabid=1442&ctl=Viewer&mid=5322, I get redirected to a login control, after typing a valid login i'll get the content has been deleted warning. So, did my quick fix expose another bug? shouldn't the Access Denied control work for a non-authenticated user?

At first I tried to add a check if the module was deleted, but for some reason it's always returning false in the ProcessSlaveModule() function, that's how I got to the above fix...

 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Stupid Crawly Spiders - Search Engine - Browser Caps - DNN5Stupid Crawly Spiders - Search Engine - Browser Caps - DNN5


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out