The principle of hotlink protection is to utilize Apache's Rewritecond function to detect request Referer when a file request is received, only the URL of this website is released. This principle is very suitable for self-made avatar protection,
Anti-image leeching by modifying the. htaccess file under the root directory of the hostWordPress blogs generally use Linux hosts, so you can use FTP to access the root directory of the website and find the. htaccess file. Add: The code is as
PHP anti-Leech tool: HotlinkProtection. HotlinkProtection uses Apache's RewriteCond function to detect the request REFERER when a file request is obtained. only the URL of this website is allowed. This principle is suitable for the Hotlink
In the previous sections, we have made major actions on wordpress security, including modifying admin accounts, hiding version numbers, and protecting login pages based on the preceding settings, security has been improved. For other settings, refer.
After work today, colleagues asked about the use of this thing. I have not contacted before, specially search for a bit, now save convenient later use.1. First determine the server type, whether the server is supported.2. Whether there is an error
. Htaccess is called a distributed configuration file, which provides a way to change the configuration of a directory by placing a file containing one or more instructions in a particular document directory to act on this directory and all its
What is the. htaccess?. Htaccess is called a distributed configuration file, which provides a way to change the configuration of a directory by placing a file containing one or more instructions in a particular document directory to act on this
. htaccess access Control (Allow/deny) 1. Verify that support is supported.htaccess
Create a new file in the directory .htaccess , essay input A string of characters (meaningless), see what reaction, if it is a 500 error, indicating that
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.