Home > Backend Development > PHP Tutorial > Regarding apache configuration htaccess, how to prohibit access to a specified URL or a specified controller?

Regarding apache configuration htaccess, how to prohibit access to a specified URL or a specified controller?

WBOY
Release: 2016-07-06 13:51:23
Original
1576 people have browsed it

How to configure htaccess to prohibit access to a certain URL or controller?

For example:
abc.com/index.php/admin
or abc.com/admin.php

Because I want to change the background method address to the defined one abc.com/diy,
and background access and login are only allowed in this way
so the original one must be banned Backend access address method

Reply content:

How to configure htaccess to prohibit access to a certain URL or controller?

For example:
abc.com/index.php/admin
or abc.com/admin.php

Because I want to change the background method address to the defined one abc.com/diy,
and background access and login are only allowed in this way
so the original one must be banned Backend access address method

Can't you just change the name of the backend entrance in the configuration file? What kind of htaccess should you use? The security of this thing is not that high (besides, just changing the form will not change the essence). Those who know the entrance always know, and those who don't usually have no interest in guessing. Because the url is randomly determined, why do you have to run through all the combinations for several days just to know the url? And then test the account and password with all possible combinations? It would be easy for hackers to be so unskilled.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template