我把它设置在一个.htaccess
ErrorDocument 403 http://websiteip.fr/fonds-spe/document-indisponible
order deny,allow
deny from all
allow from websiteip
allow from 127.0.0.1
allow from localhost
这.htaccess
有效:每次我尝试通过“Apache”URL 下载文件时,我都会收到错误文档——没关系。
但
这样,即使 Drupal 也无法访问文件来显示或播放它们(有些是视频或声音)。
例如,在其中包含图像的节点上,我得到了This image failed to load。
欢迎任何想法建议