Ammar Asjad
Ammar Asjad

Reputation: 3010

How i can prevent user to enter back links in text box in ASP.Net

I have website which is luckily on top of Google but there are spam messages with backlinks of different websites from spammers too so what i thought a solution to prevent visitors from putting back links in Multiline Text Area ? I have tried with required field validation and some other ways but unlucky yet. I am bit familiar with Javascript but after searching i did not find any javascript to prevent backlinks in text area. If any one can help me a bit or just give me an idea ?

Upvotes: 0

Views: 191

Answers (1)

Matías Fidemraizer
Matías Fidemraizer

Reputation: 64943

Client-side validation is easy to bypass, but server-side validation should not.

I mean that client-side validation may work with human users but spam bots may send requests to your server bypassing your form or they even don't understand JavaScript.

Do the whole client-side validation for human users but repeat the same validation in the server-side so no one will be able to bypass your rules.

Upvotes: 1

Related Questions