Problem with logging out of a customer with blocked access to wp-admin and wp-login by htaccess

This topic has 6 replies, 2 voices, and was last updated 6 months, 1 weeks ago ago by Luca Rossi

  • Avatar: kamil109
    kamil109
    Participant
    November 4, 2024 at 17:34

    On my website, I use an entry in the htaccess file that prohibits access to the wp-admin directory and the wp-login file to defend myself against hackers.
    Customers can register and log in.
    The problem is when logging out from the side panel.
    I will add that this problem does not occur on the user account page.
    I have attached screenshots.

    Please help.

    Files is visible for topic creator and
    support staff only.
    5 Answers
    Avatar: Justin
    Luca Rossi
    Support staff
    November 5, 2024 at 10:56

    Dear @kamil109,

    We hope this message finds you well.

    Could you kindly provide us with access to your WordPress Admin account? This will allow us to take a closer look and assist you more effectively.

    Thank you in advance for your cooperation.

    Best regards,
    8Theme Team.

    Avatar: kamil109
    kamil109
    Participant
    November 5, 2024 at 11:54

    OK. I can give you access, but then I have to remove the rule in the htaccess file and you won’t see what it looks like.
    If you create a customer account, you will see the difference in the logout link in both cases.
    This is immediately visible in the browser’s status bar.

    Avatar: Justin
    Luca Rossi
    Support staff
    November 5, 2024 at 16:47

    Dear @kamil109,

    We hope this message finds you well.

    We noticed that you have blocked access to wp-admin and wp-login.php. To further enhance the security and user experience, we recommend hiding the logout URL by adding the following custom CSS code:

    Please navigate to **XStore > Theme Options > Theme Custom CSS > Global CSS** and insert the code below:

    
    .etheme-elementor-off-canvas_content li.woocommerce-MyAccount-navigation-link.woocommerce-MyAccount-navigation-link--customer-logout {
        display: none !important;
    }
    

    We hope this solution proves helpful. Should you have any further questions or need assistance, please feel free to reach out.

    Best regards,
    The 8Theme Team

    Avatar: kamil109
    kamil109
    Participant
    November 5, 2024 at 17:22

    Thank you for your reply.
    This is some solution, but not the one I expected.
    The customer must be able to log out easily.
    If possible, I would like the logout in the side panel to work with the same effect as the one in the customer page (without additional confirmation).
    There is no problem for me to make individual changes to the php files.

    Avatar: Justin
    Luca Rossi
    Support staff
    November 6, 2024 at 08:50

    Hi @kamil109,

    Unfortunate, it requires a lot of customization codes to achieve this. You can post your request on our Taskboard at https://www.8theme.com/taskboard/. If it receives enough votes from other customers, our development team will consider adding it in one of the upcoming updates.

    Alternatively, If you require a paid service, kindly contact the appropriate department through the following link:

    https://www.8theme.com/account/#etheme_customization_panel

    We thank you for your patience and we hope you have a great experience with 8Theme’s Team.

    Best Regards,
    8Theme’s Team

  • Viewing 6 results - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.Log in/Sign up

Helpful Topics

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.