About Apache configuration htaccess, how do I disable access to a specified URL or specify a controller?

Source: Internet
Author: User
How do I configure htaccess to disable access to a URL or controller?

Such as:
Abc.com/index.php/admin
or abc.com/admin.php

Because I want to change the backend method address to the defined Abc.com/diy,
and background access and logins only allow access in this way
So to prohibit the original background access address mode

Reply content:

How do I configure htaccess to disable access to a URL or controller?

Such as:
Abc.com/index.php/admin
or abc.com/admin.php

Because I want to change the backend method address to the defined Abc.com/diy,
and background access and logins only allow access in this way
So to prohibit the original background access address mode

In the configuration file to modify the background entrance name is not OK, with what htaccess, the security of this thing is not so high (and just change the form, and will not change the nature). People who know the entrance always know that people who don't know are usually not interested in guessing. Because the URL is random, exhausted combination run for several days just to know the URL? And then exhaust the combination test account and password? Hackers would be so confused if they didn't have the technical content.

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.