Universal Form Validator ASP Support Product Page

Answered

Forbidden text - how ta add as validation

Asked 01 Feb 2013 19:28:18
1
has this question
01 Feb 2013 19:28:18 Robin Schafer posted:
Has anyone been able to discover how to add the Forbidden text rule to the form? I can't seem to find it in the list of validation rules.

Replies

Replied 04 Feb 2013 12:07:08
04 Feb 2013 12:07:08 Vulcho Vulev replied:
Hello Robin.

Did you tried to add rule "existing in database" and create a special column in your database , where exactly the forbidden text is specified?

Regards:Vulcho.
Replied 04 Feb 2013 18:31:42
04 Feb 2013 18:31:42 Robin Schafer replied:
I set up connection and database works fine, and does the validation, but this does not work for example on a form textarea. It only fires if the user types exactly what is in the database, it does not validate the entire string.

e.g.
a database column entry is 'First place'
'First place in search engine': does not fire an error
'First place': does fire an error

If it only works for exact match this would be impossible to setup.

Replied 04 Feb 2013 18:41:22
04 Feb 2013 18:41:22 Robin Schafer replied:
In the Messages tab there is a rule, forbiddencond, with the message, 'The field contains words that are not allowed by the spamfilter'

How is this attached to the form?

There is a validation rule, Spam Protection, but where is the word list setup?

Thanks,
Robin
Replied 07 Feb 2013 13:53:10
07 Feb 2013 13:53:10 Vulcho Vulev replied:
Hello Robin.

Quote
There is a validation rule, Spam Protection, but where is the word list setup?


After you apply the "Spam protection" rule you need to root in Scriptlibrary folder and open the "validator_forbidden.txt" which contains the words that are filtered.

Regards:Vulcho.
Replied 07 Feb 2013 17:06:50
07 Feb 2013 17:06:50 Robin Schafer replied:
The problem with the Spam bot is I can not get past the error message. whether I fill in spam or not. It persists on the page and does not go away. Even with corrections.

Where do you set the form Action to post to another page. Currently the action changes to <%=DMX_validateAction%> which appends a '?' to the page.
On submit, the form is reset to blank and all errors are output on the page.
Replied 08 Feb 2013 08:57:08
08 Feb 2013 08:57:08 Vulcho Vulev replied:
Hello Robin.

Can you provide me with link to the problem page?
Did you tried to apply the Spam protection rule without using bot check?


Regards:Vulcho.





This reply was removed on 2/8/2013 8:57:22 AM.
See the changelog
Replied 21 Feb 2013 18:42:19
21 Feb 2013 18:42:19 Robin Schafer replied:
I found that the Spam Protection rule only works if you post back to the same page using the action <%=DMX_validateAction%>. So this does not allow for sending form results to another page as we have seen in several posts.

What is required here is to check for errors then forward if there are none.
If error = 0 then
'iterate form items to session variables.
'forward to another page.

Until this is addressed the Spam filter is useless.

The Bot check traps any input blank or otherwise and does not allow submission in any form. I don't see this function as useful.

The Ajax Exists in Database rule does work, but now you have to maintain a database for the rules and add a database connection.

Perhaps my finding can help others who are struggling with Spam validation.

Reply to this topic