WordPress:允许在一个文件夹中热链接图像,或者在主题内的文件夹中热链接一个特定图像?
如何允许从一个文件夹或仅从一个图像热链接图像。 我试过这个WordPress:允许在一个文件夹中热链接图像,或者在主题内的文件夹中热链接一个特定图像?,wordpress,image,.htaccess,hotlinking,Wordpress,Image,.htaccess,Hotlinking,如何允许从一个文件夹或仅从一个图像热链接图像。 我试过这个 RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http://(www\.)?domain\.com [NC] RewriteCond %{REQUEST_URI} !^wp-content/themes/mytheme/image-folder/images/pictures/.+\.(gif|jpe?g|png)$ RewriteCond %{REQUES
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?domain\.com [NC]
RewriteCond %{REQUEST_URI} !^wp-content/themes/mytheme/image-folder/images/pictures/.+\.(gif|jpe?g|png)$
RewriteCond %{REQUEST_URI} !^wp-content/themes/mytheme/image-folder/images/img/photo.png $
RewriteRule \.(gif|jpe?g|png)$ - [F,NC,L]
但这是行不通的。
感谢您的帮助。
谢谢。但是这样不行吗?什么不工作?禁止使用允许的文件夹和图像文件。无法进行热链接。