Skip to content
valmont edited this page Oct 30, 2012 · 3 revisions

You may want to configure custom rules to determin if a request is a bot. You can do this by registering methods on the Honeypot.CustomRules collection.

Func<NameValueCollection, bool> noLinks = (form) => { string comment = form["comment"];

//make sure form has comment value, if not just return
if(comment == null) return false;

// Return true if request is a bot
return comment.Contains("http://");

};

Clone this wiki locally