The invention belongs to the technical field of
network security detection and website content review, and discloses a portable lightweight web hidden link and sensitive vocabulary scanning method and
system, and a storage medium. The method comprises the following steps of: inputting a URL (
Uniform Resource Locator) to be tested through a command line or a
text file and performing protocol completion on a universal computer which is only provided with a Python
operating environment, requesting to access a page by utilizing HTTP / HTTPS (Hyper Text Transfer Protocol / Hyper Text Transfer Protocol Secure Socket), extracting a link by adopting an
HTML (Hyper Text Markup Language) analysis
library, and performing dead link judgment and caching on a response state code and an access exception; a sensitive word
library is managed based on an SQLite
embedded database, regular matching is carried out on page front-end codes, hidden links or high-risk links are marked, link extraction, dead link detection and sensitive word matching are recursively executed within a preset
crawling depth, and finally a Markdown format scanning report is generated. The method does not need an independent
server and a heavy-weight
database, is suitable for
public network and
intranet environments, and has the advantages of low dependence, good portability and high scanning efficiency.