As long as you can have your server or space with anti-theft chain function
Reproduced below, please indicate the author: A Arts
First, please confirm that your server or space server interpretation engine is apache2, and supports .htaccess customer settings file,
If you have your own server, please make the following modifications to ./conf/httpd.conf files.
Found: #LoadModule Rewrite_Module Modules / Mod_rewrite.so
Put the front #
Find a Allowoverride None to change to ALLOWOVERRIDE ALL
Restart APACHE2 Server
The next is to do a .htaccess file, its .htaccess file content is
ReWriteEngine on
Rewritecond% {http_referer}! ^ Http://173.com.ru/.* $ [nc]
Rewritecond% {http_referer}! ^ Http://173.com.ru $ [nc]
Rewritecond% {http_referer}! ^ Http://www.173.com.ru/.* $ [nc]
Rewritecond% {http_referer}! ^ Http://www.173.com.ru $ [nc]
Rewriterule. * /. (JPG | JPEG | GIF | PNG | BMP | RAR | ZIP | EXE) $ http://down.173.com.ru/err.html [r, nc]
Among them, there are colored places to be changed to you:
Red: It is to change the address of the download page, that is, only through this address, you can download the Dongdong you offer.
Blue: It is to protect the extension of the file (separated by | separation), that is
Green: If it is not to access the blue these files for the extension through the red, turn back to the green address.
The next is how to use the .htaccess file to achieve the anti-theft chain.
The first thing to build two directories on the space (of course, the directory is named as you), one for the Web is Down,
The web is used to put down the page (or download), Down is of course, let you put the Dongdong,
Change the red part of the .htaccess file, change it to http: // Your domain / web. Blue part
Change to you to protect the extension of the file. The green section is changed to http: // your domain name / web. Save
.htaccess file upload it to the Down directory.
Ok, let's get it, simple, now you don't need to buy those large-size servers.
Function, we are the people under the mountains have money to get a free space, even if it is good.
The above related tests:
http://173.com.ru/downs.html
There is a [anti-theft chain related] has a PHP program that can generate .htaccess file in your space.
You won't do it. Htaccess file or your space is not allowed to upload .htaccess file can be used
The PHP program is directly generated in your space.
PHP program download address
http://down.173.net.ru/fdowns.rar