How to block specific route on yii?

View QuestionsCategory: CodeHow to block specific route on yii?
admin Staff asked 1 year ago

I want to block specific URL / route on yii

1 Answers
admin Staff answered 1 year ago

Add this to .htaccess file on web root

RedirectMatch 403 ^/site/register?$

Replace /site/register with the route you are trying to block