1. Anti-hotlinking
Websites that steal your content and don't want to store pictures themselves are shameless. You can use the following configuration to place someone to steal your picture:
Copy Code code as follows:
Rewritebase/
. htaccess is a plain text file that contains instructions related to Apache server configuration: URL rewriting, custom error pages, MIME type configuration, access control, and so on. Mainly embodied in pseudo-static applications, image anti-theft
1. Anti-hotlinking
Websites that steal your content and don't want to store images on their own are shameless. You can use the following configuration to place someone else to steal your image:
1 Rewritebase/
2 Rewritecond%{http_referer}!^$
3
I. The basic role of htaccess
. htaccess is a plain text file containing instructions for Apache server configuration.The main roles of htaccess are URL rewriting, custom error pages, MIME type configuration, and access control. Mainly embodied in
I. Basic role of htaccess. htaccess is a plain text file that contains instructions related to Apache server configuration.The main functions of the. htaccess are URL rewriting, custom error pages, MIME type configuration, and access control. Mainly
I. Basic role of htaccess
. htaccess is a plain text file that contains instructions related to Apache server configuration.The main functions of the. htaccess are URL rewriting, custom error pages, MIME type configuration, and access control.
. 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
1. htaccess File Use premise
The main role of htaccess is to implement URL rewriting, that is, when the browser access to a server folder through the URL, as the owner, we can receive the URL, how to receive it, is the role of this document. All
When you browse some image file stations, you will find that the site directory is a list of files (folders) that can be browsed. Give two examples: NetEase open source image; Ubuntu. As long as the Web server is an Apache-based Web site can be
When you browse some of the mirrored file stations, you will find that the site directory can browse the list of files (folders). Give two examples: NetEase open source Mirror, Ubuntu. As long as the Web server is based on the Apache Web site can be
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.