You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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://");
};