ALOFT Aerial Pavilion
Today, the anti-theft chain function is added to the CTEX forum. The method is to increase the .htaccess file in the directory of the saving attachments (can also be placed in the root directory of the forum), the content is as follows:
SetENVIFNOCASE REFERER "^ http://www/.ctex/.org/" Local_ref = 1
SetENVIFNOCASE REFERER "^ http://ctex/.org/" Local_ref = 1
Stenvifnocase Referer "^ http://159/" local_ref = 1
ORDER ALOW, DENY
Allow from env = local_ref
Allow from 127.0.0.1
Filesmatch>
Then remember to check the settings of the directory where the forum in http.conf is increased.
Allowoverride FileInfo Authconfig Limit
The above methods can prohibit access to accessories from other websites or directly enter the address in the browser address bar.
This method is from the discuz! Forum http://www.discuz.net/viewthread.php?tid=28372