Hi!
igor.vaynberg wrote:
>
> also by doing what you have done users with cookies disabled wont be
> able to use your site...
>
In my opinion session id is a problem. Google index the same page again and
again.
About the users without cookies we can do like this:
static class Unbuffered extends WebResponse {
private static final String[] botAgents = { "onetszukaj",
"googlebot",
"appie", "architext",
"jeeves", "bjaaland", "ferret", "gulliver", "harvest",
"htdig",
"linkwalker", "lycos_", "moget", "muscatferret",
"myweb", "nomad",
"scooter",
"yahoo!\\sslurp\\schina", "slurp", "weblayers",
"antibot", "bruinbot",
"digout4u",
"echo!", "ia_archiver", "jennybot", "mercator",
"netcraft", "msnbot",
"petersnews",
"unlost_web_crawler", "voila", "webbase", "webcollage",
"cfetch",
"zyborg",
"wisenutbot", "robot", "crawl", "spider" }; /* and so
on... */
public Unbuffered(final HttpServletResponse res) {
super(res);
}
@Override
public CharSequence encodeURL(final CharSequence url) {
return isAgent() ? url : super.encodeURL(url);
}
private static boolean isAgent() {
String agent =
((WebRequest)RequestCycle.get().getRequest()).getHttpServletRequest().getHeader("User-Agent");
for(String bot : botAgents) {
if (agent.toLowerCase().indexOf(bot) != -1) {
return true;
}
}
return false;
}
}
I didn't test this code but I do similar thing in my old application in
Spring and it works.
Take care,
Artur
--
View this message in context:
http://www.nabble.com/Removing-the-jsessionid-for-SEO-tp16464534p16467396.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]