How does dedecms prohibit IP addresses from using phpStudydedecms for website access ???? Help experts ?, Copy, paste, and check whether it is correct or not. The DedeCMS background does not allow specified IP address access. However, we can use the. htaccess configuration file of the Apche server to control how dedecms disables IP addresses.
How can I restrict IP access to my phpStudy dedecms website ????
Help experts?
------ Solution --------------------
Copy and paste the file. check whether the file is correct.
The background of Zhimeng dededecms does not prohibit access by specified IP addresses, but we can use the Apche server. you can use the htaccess file to control the htaccess configuration file: webpage 301 redirection, custom 404 error pages, changing file extensions, allowing/blocking access to specific users or directories, forbidding directory lists, and configuring default documents.
Here we will mainly explain how to use. htaccess to prohibit access by specified IP addresses or IP segments. the modification method is as follows:
Add the following code to the. htaccess file (replace the following IP address with the IP address you want to disable ):
Order Deny, Allow
Deny from 127.0.0.1
If the IP segment is forbidden, the code is as follows:
Order Deny, Allow
Deny from 192.168.1
In this way, you are prohibited from accessing your website from the host 192.168.1.1-192.168.1.254.
------ Solution --------------------
Please refer
Http://www.jb51.net/article/25476.htm
Open the Settings and create a new file.
In fact, the file can be built under cmd. The location is generally placed in the website to be restricted.
------ Solution --------------------
You can create a file with the suffix ". htaccess" in the source code of your website, but this file must be placed in the root directory.
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