About reserved words and sensitive words

Reserved words and sensitive word filtering are two essential functions of the website system.

(1) Reserved words: Reserved Words
are also called keywords. Words with special meanings reserved by programming languages ​​cannot be used for variable names, function names, etc.

Java:
quote
public、class、while、continue、extends等。

const and goto are two Java reserved words, and although Java does not use them, they cannot be used as identifiers either.
https://docs.oracle.com/javase/tutorial/java/nutsandbolts/_keywords.html

SQL:
quote
select、from、where等。

https://www.postgresql.org/docs/current/static/sql-keywords-appendix.html
*** PostgreSQL allows reserved words, but needs to be enclosed in double quotes.

You can check reserved words here: http://www.reservedwordsearch.com/

What we want to say here is not reserved words in programming languages, but reserved words in system development. Many websites provide a "personalized domain name" function to make it easier for users to remember their personal homepage.
  • Second-level domain name method: http://rensanning.iteye.com/
  • Secondary directory method: http://www.weibo.com/rensanning
No matter which way of providing, imagine if the following two personalized domain names are opened to users for registration, it will make other users think that they have entered the system interface.
quote
http://www.weibo.com/help
http://help.weibo.com/


Sina Weibo is a typical example. For example, the following personalized domain names have not been reserved and registered by users. It is estimated that there are many more.
quote
http://www.weibo.com/index
http://www.weibo.com/help
http://www.weibo.com/about
http://www.weibo.com/support
http://www.weibo.com/term
http://www.weibo.com/privacy
http://www.weibo.com/contact


The correct way, look at GitHub to know.
quote
https://github.com/rensanning
https://github.com/about
https://github.com/blog


Overview of Twitter username reservations:
https://dev.twitter.com/rest/reference/get/help/configuration
quote
"about", "account", "accounts", "activity", "all", "announcements", "anywhere", "api_rules", "api_terms", "apirules", "apps", "auth", "badges", "blog", "business", "buttons", "contacts", "devices", "direct_messages", "download", "downloads", "edit_announcements", "faq", "favorites", "find_sources", "find_users", "followers", "following", "friend_request", "friendrequest", "friends", "goodies", "help", "home", "i", "im_account", "inbox", "invitations", "invite","jobs", "list", "login", "logo", "logout", "me", "mentions", "messages", "mockview", "newtwitter", "notifications", "nudge", "oauth", "phoenix_search", "positions", "privacy", "public_timeline",
"related_tweets", "replies", "retweeted_of_mine", "retweets", "retweets_by_others", "rules", "saved_searches", "search", "sent", "sessions", "settings", "share", "signup", "signin", "similar_to", "statistics", "terms", "tos", "translate", "trends", "tweetbutton", "twttr", "update_discoverability", "users", "welcome", "who_to_follow", "widgets", "zendesk_auth", "media_signup"


The common ones are as follows:
quote
Home index/home/top, help, about, contact, FAQ, technical support, friendly links, documentation doc, news, sitemap, price/plan, term, privacy, login/logout/signup (login, logout, signup, signin, signout, account), others (wiki, rss, api, search).


(2) Sensitive words: Sensitive Words or NG Words
sensitive words include politically sensitive information, violent crime information, uncivilized information, unhealthy information, competitive product information, e-commerce transaction information, etc. But it is not limited to these. Any illegal words that are not suitable to be published need to be blocked. For sensitive words, they will be banned or automatically replaced with an asterisk (*) or a cross (X) when publishing information, and the search engine will not perform the search directly. For example, searching for sensitive words on Sina Weibo will directly display: According to relevant laws, regulations and policies, the search results of "xxxx" are not displayed.

Some common sensitive thesaurus or filter thesaurus can be found on the Internet, but for the system, the sensitive thesaurus is not fixed and will be added or lifted at different times.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326466813&siteId=291194637
Recommended