Transferred from www.pczone.com.tw The following is the use of Unix (FreeBSD..LINUX, etc.) Apache station, as long as set once, you don't need to set another information, you don't need 1 1 The IP of the sources of the sources is not too tired. It's going to check if you have to check if you are in your site. Hoot in your website root directory. Have the following information : The following is the use of PCZONE as an example, please replace it with your own URL (if you are not an entity host, there is no fixed IP, the IP information in the following column is not to set up) Stenvifnocase Referer "^ http: // www /.pczone/.com/.tw/ "local_ref = 1 setenvifnocase referer" ^ http://pczone/.com/.tw/ "local_ref = 1 setENVIFNOCASE REFERER" ^ http: //202/.43/.85/ .163 / "local_ref = 1 <- This side with you to set the Order Allow, Deny Allow from Env = local_ref allow from = Local_ref allow from 37.0.0.1 < / Filesmatch> When you write this, put the file to the root of the website, you can use the files on your website (anything to be set to TXT, DOC ...) can only be taken from the station, if Some sources are other websites, because the source IP is not the 127.0.0.1 host you allow, so you will be able to make it smoothly in your host space, the picture, MP3 will not be smooth and stolen .... as long as it is After you press the above steps, the file requested by the Name, no matter whether it is a GIF, audio, compressed file, program .. or other some have nothing .. As long as you are .htaccess is set to all, all have to prevent theft Effects So your host bandwidth will not be given to the light or get the traffic to break the watch by the host company as long as you set, visitors can't stolen (unless the website is used, "it should be called" Download "Website Profile ..) .htaccess This 9 words are already a complete file name. He has no deployment name. Don't get yourself to add a reposition name and start. The representative is the meaning of hidden files! New Report: WIN APACHE can use the above way to prevent the hairdressing, if you want to open some platforms, you can directly connect information in your website, what should I do? For example, you want to open a pczone.com.tw Picture, you can use it directly from your own website, please join the new 3 line word in .htaccess file: (The following settings: In addition to your website and PCZONE website, other websites still can't stole your information ) SetENvifnocase referer "^ http://www/.pczone/.com/.tw/" local_ref = 1 setENvifnocase referer "^ http: //pczone/.com/.tw/" local_ref = 1 setenvifnocase referer "^ http: // 自己 网 网站 资 / "local_ref = Order allow, deny allow from env = local_ref allow from 107.0.0.1 allow from 102.43.85.163 <- This IP is a fixed IP of the PCZONE website. Be sure to play it! Filesmatch> OK is as simple as this