Search on the internet for a long time also did not find about Litespeed server with htaccess anti-theft chain. Consulted them, said that is according to the Apache wording can be used, the result I was studying a very, finally wrote a can use, the code in the following:
Reference
Copy Code code as follows:
Rewriteengine on
Rewritecond%{http_referer}!^http://planetidc.com/.*$ [NC]
Rewritecond%{http_referer}!^http://planetidc.com$ [NC]
Rewritecond%{http_referer}!^http://www.planetidc.com/.*$ [NC]
Rewritecond%{http_referer}!^http://www.planetidc.com$ [NC]
Rewritecond%{http_referer}!^http://www.xaoyo.net/.*$ [NC]
Rewritecond%{http_referer}!^http://www.xaoyo.net$ [NC]
Rewritecond%{http_referer}!^http://xaoyo.net/.*$ [NC]
Rewritecond%{http_referer}!^http://xaoyo.net$ [NC]
Rewriterule. *\. (JPG|JPEG|GIF|PNG|BMP|CSS) $-[F,NC]
Rewriterule. *\. (JPG|JPEG|GIF|PNG|BMP|CSS) $-[F,NC] This sentence can also be changed to display the error message you want to display
Reference
Copy Code code as follows:
Rewriterule. *\. (JPG|JPEG|GIF|PNG|BMP|CSS) $/404.shtml [r,nc,l]