B
B
BUTURUM2021-08-02 00:21:25
Node.js
BUTURUM, 2021-08-02 00:21:25

How to recognize URLs of porn sites?

I am writing a telegram bot, on nodeJS, one of the functions of which will be to delete messages that contain adult site addresses. The first thing I came up with was to simply write all the domains of such sites into a json file, import and check links for compliance, but this solution seemed complicated and unreliable to me. Is there a better solution? Thank you in advance.

PS: is-porn library - r#&*+

Answer the question

In order to leave comments, you need to log in

2 answer(s)
B
BasiC2k, 2021-08-02
@BasiC2k

I think the best option is to programmatically follow the link and analyze the keywords that are always in the meta tags or the body of the page.

F
fbi_agent26, 2021-08-02
@fbi_agent26

Only following the link, checking for forbidden words, adding a domain to the database table where prohibited sites, from the same table, bot 2 takes domains and checks for presence in another database table, if a match is found, it deletes it.
But there are link shortening services and redirects.
The bot must add to the database not the final domain, but the one that it went through, otherwise it will not work.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question