Home > Net >  ASP database calls, can add a code, set up a sensitive word, let the article appear sensitive words
ASP database calls, can add a code, set up a sensitive word, let the article appear sensitive words

Time:09-21

I am an ASP website, inside the MDB calls the content of the database, and then display, there are N many articles, I think it's screening words, such as I set of words for sensitive words, when calling out articles containing sensitive word, use * instead of directly, thus their shielding may be the effect of advertising word limit
Can have a great god for a code, I added directly, small white one, thank you

CodePudding user response:

By STR. The Replace method should be feasible

CodePudding user response:

Code to replace or not convenient, want to add a new words have changed the code to release,
Suggest you change the database to essentially. The data import to essentially,
Words to make a table, easy to add and change,
Do a function that is used to sensitive word string substitution to *,
The user query, access the view can, like:
 create view view_tableName 
As
Select *, dbo. Fun_GetClearContent (content) as clearContent
The from tableName
Go

CodePudding user response:

You baidu skilled and magical craftsmanship,
Several years ago, by this algorithm, the design of the words filtering,

CodePudding user response:

If you as I said, you must have a special sensitive word list, but when it is not difficult to be online to find

You really don't want to look for, you can use baidu ready-made interface:
http://ai.baidu.com/tech/textcensoring? Track=cp: ainsem | pf: PC | pp: chanpin - neirongshenhe | pu: neirongshenhe - minganciguolv | ci: | kw: 10001849

CodePudding user response:

Maintain a sensitive word, and then write on the web. Config the inside is ok, if you call the database will increase the pressure of the database

CodePudding user response:

reference 5 floor link8088 reply:
maintain a sensitive word, and then write on the web. Config the inside is ok, if you call the database will increase the pressure of the database of

This is not a good advice,

CodePudding user response:

reference 5 floor link8088 reply:
maintain a sensitive word, and then write on the web. Config the inside is ok, if you call the database will increase the pressure of the database of
existing database, the sensitive word loaded into memory, updated regularly, sensitive words are many, poor readability in a configuration file
  •  Tags:  
  • C#
  • Related