hostmonsterÖ÷»úÈçºÎÉèÖ÷ÀµÁÁ´

    ½ñÌìÊÕµ½ÓʼþËùÎÒ³¬×ÊÔ´ÁË,ÎÒÔÚÄÉÃÆ,ûÓÐÄÇô¶àµÄÁ÷Á¿°¡,Ô­À´ÊÇ×Ô¼ºÇ°¼¸Ìì¸üеÄһƪÎÄÕÂÀïÃæÓÐͼƬ,Ç¡ÍøÕ¾ÀïµÄͼƬ±»±ðÈ˵ÁÓÃÁË.´óÁ¿µÄÁ÷Á¿±»±ðÈ˸øÕ¼ÓÃÁË¡£¼ÇµÃÒÔǰ˵¹ýhostmoster¿ÉÒÔÔÚ×Ô¼ºµÄcpanelÃæ°åÀïÃæ½øÐзÀµÁÁ´µÄÉèÖ㬽ñÌìÎÒÃÇÀ´ÓÃ.htaccessÕâ¸öÎļþÀ´¶ÔÕâ¸ö½øÐÐÉèÖá£

ÎÒÃÇÖ»ÐèÒªÔÚ.htaccessÕâ¸öÎļþÖУ¬Ð´ÉÏÈçϹæÔò¾Í¿ÉÒÔÁË¡£

RewriteEngine on

RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www/\.)?mydomain.com/.*$ [NC]
RewriteRule \.(gif|jpg|js|css)$ ¨C [F]

½âÎö:
Èô HTTP_REFERER ·Ç¿Õ (À´Ô´ÎªÆäËûÕ¾µã£¬·ÇÖ±½ÓÁ¬½Ó) ²¢ÇÒ
Èô HTTP_REFERER ·Ç(www.)mydomain.com¿ªÍ·(ºöÂÔ´óСд[NC]) (À´Ô´·Ç±¾Õ¾)
¶ÔÓÚËùÓк¬ÓÐ .gif/.jpg/.js/.css ½áβµÄÎļþ¸ø³ö 403 Forbidden ´íÎó[F]