How to block specific route on yii?

View QuestionsCategory: CodeHow to block specific route on yii?
admin Staff asked 4 years ago

I want to block specific URL / route on yii

1 Answers
admin Staff answered 4 years ago

Add this to .htaccess file on web root

RedirectMatch 403 ^/site/register?$

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