I would like to remove all customer related pages. I have already removed all links like login / register, but the pages are still accessible via the url (so people with basic Magento 2 knowledge can access these pages).

Is there a way to remove these pages, together with their url's?

  • you can do these things by magento event observer. – Dhiren Vasoya Nov 14 '18 at 14:24

Possible solution: Implement an observer which monitors controller actions via predispatch and redirect them to no-route/404.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.