Use `grep` like this:
$ grep -v -x -F -f forbidden.txt input.txt
That long list of options to `grep` means
* `-v` Invert the sense of the match, i.e. look for lines _not_ matching.
* `-x` When matching a pattern, require that the pattern matches _the whole line_ , i.e. not just anywhere on the line.
* `-F` When matching a pattern, treat it as a _fixed string_ , i.e. not as a regular expression.
* `-f` Read patterns from the given file (`forbidden.txt`).
Then pipe that to `sort` or whatever you want to do with it.