Next.js Discord

Discord Forum

Possible to disable a route?

Answered
Lakeland Terrier posted this in #help-forum
Open in Discord
Avatar
Lakeland TerrierOP
I have a persistent threat that continues to attempt to access the api/auth/session route on a webpage. How should I handle this? Is there a way to disable this specific route? Should I redirect to a massive download file?
Image
Answered by Jboncz
and hope they stop after a bit and can turn it back off
View full answer

6 Replies

Avatar
You can enable vercels attack challenge mode
Avatar
and hope they stop after a bit and can turn it back off
Answer
Avatar
Lakeland TerrierOP
I will start there, thank you. I guess moving forward I will not use the default route when I configure auth.
Avatar
Please mark solution on the post so it closes when you get a moment @Lakeland Terrier
Avatar
Lakeland TerrierOP
Thanks
Avatar
np!