we have two options
add 301 rewrite rule in apache or nginx, or just include particular urls to rewrite or just convert all 404 erorrs to 301 redirects
and redirect this shit somewhere
question is
where we should redirect it
imho the safest way is redirect it out of your domain
google index only final destination of 301 redirect
everything between spammy page and destination is just a neutral bridge (in theory)
so make such bridge in your domain, and get this shit out of your website (to your competition, for example
)
or.. second option
create doorway page with links to your website, as bladewire advised, but i think it is too risky
i don't think its a good idea, spammers do this way and they take the risk of google punishment