.htaccess &引用;此网页包含被阻止的URL";-Can';t从正在开发的网站分享给FB

.htaccess &引用;此网页包含被阻止的URL";-Can';t从正在开发的网站分享给FB,.htaccess,.htaccess,这是我第一次在这里提问,但不是第一次有经验的人帮助我,所以我真的希望你能再次帮助我。我在这里看到了关于这个错误的其他问题,但它们似乎都是关于应用程序开发的(或者没有得到回答) 一、 然而,我在写WordPress博客,而不是应用程序。这是非常重要的,我们可以在我们的FB页面上分享我们的文章,因为我相信这是为任何其他人建立博客。虽然我有基本的编码知识,比如HTML和CSS,但我对更高级的web开发主题的知识非常有限,所以请记住这一点!谢谢。:) 因此,正如我在标题中所说,当我通过FB调试器在我们的

这是我第一次在这里提问,但不是第一次有经验的人帮助我,所以我真的希望你能再次帮助我。我在这里看到了关于这个错误的其他问题,但它们似乎都是关于应用程序开发的(或者没有得到回答)

一、 然而,我在写WordPress博客,而不是应用程序。这是非常重要的,我们可以在我们的FB页面上分享我们的文章,因为我相信这是为任何其他人建立博客。虽然我有基本的编码知识,比如HTML和CSS,但我对更高级的web开发主题的知识非常有限,所以请记住这一点!谢谢。:)

因此,正如我在标题中所说,当我通过FB调试器在我们的网站上发布特定帖子时,我会收到“阻止URL”消息。当我尝试使用页面上的共享插件共享它时,我得到了以下错误:“无法下载:无法从URL检索数据。”

我可以分享其他帖子,所以我知道这不是网站上的一般编码错误。我还可以与多个音频文件共享另一个页面,因此我知道它不是播放器。重新上传音频文件也无济于事。以下是相关页面:

当我研究这个问题时,我看到不止一个文件提到了.htaccess文件,所以我找到了我的,并在下面复制了它

# BEGIN LSCACHE
## LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block! ##
<IfModule LiteSpeed>
RewriteEngine on
CacheLookup on
RewriteRule .* - [E=Cache-Control:no-autoflush]
RewriteRule ^min/\w+\.(css|js) - [E=cache-control:no-vary]

### marker CACHE RESOURCE start ###
RewriteRule wp-content/.*/[^/]*(responsive|css|js|dynamic|loader|fonts)\.php - [E=cache-control:max-age=3600]
### marker CACHE RESOURCE end ###

### marker FAVICON start ###
RewriteRule favicon\.ico$ - [E=cache-control:max-age=86400]
### marker FAVICON end ###

</IfModule>
## LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block! ##
# END LSCACHE
# BEGIN NON_LSCACHE
## LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block! ##
### marker MINIFY start ###
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} ^(.*)/min/(\w+)\.(css|js)$
RewriteCond %1/wp-content/cache/$2/$1.$2 -f
RewriteRule min/(\w+)\.(css|js) wp-content/cache/$2/$1.$2 [L]
</IfModule>
### marker MINIFY end ###

## LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block! ##
# END NON_LSCACHE

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
# Wordfence WAF
<Files ".user.ini">
<IfModule mod_authz_core.c>
    Require all denied
</IfModule>
<IfModule !mod_authz_core.c>
    Order deny,allow
    Deny from all
</IfModule>
</Files>
# END Wordfence WAF
#开始LSCACHE
##LITESPEED WP缓存插件-不要编辑此块的内容##
重新启动发动机
缓存查找
重写规则。*-[E=缓存控制:无自动刷新]
重写规则^min/\w+\(css|js)-[E=缓存控制:无变化]
###标记缓存资源启动###
RewriteRule wp content/*/[^/]*(响应式| css | js |动态|加载程序|字体)\.php-[E=缓存控制:最大年龄=3600]
###标记缓存资源端###
###标记法维康起动###
重写规则favicon\.ico$-[E=缓存控制:最大年龄=86400]
###标记FAVICON端###
##LITESPEED WP缓存插件-不要编辑此块的内容##
#结束LSCACHE
#开始非缓存
##LITESPEED WP缓存插件-不要编辑此块的内容##
###标记缩小开始###
重新启动发动机
重写cond%{DOCUMENT_ROOT}%{REQUEST_URI}^(.*)/min/(\w+)\(css|js)$
重写条件%1/wp内容/缓存/$2/$1.$2-f
重写规则min/(\w+)\(css | js)可湿性粉剂内容/缓存/$2/$1.$2[L]
###标记缩小端###
##LITESPEED WP缓存插件-不要编辑此块的内容##
#结束非缓存
#开始WordPress
重新启动发动机
重写基/
重写规则^index\.php$-[L]
重写cond%{REQUEST_FILENAME}-F
重写cond%{REQUEST_FILENAME}-D
重写规则/index.php[L]
#结束WordPress
#Wordfence WAF
要求全部拒绝
命令拒绝,允许
全盘否定
#结束字围栏WAF
我还有两个额外的.htaccess文件,下面就是这些文件

# BEGIN NON_LSCACHE
## LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block! ##
### marker MINIFY start ###
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} ^(.*)/min/(\w+)\.(css|js)$
RewriteCond %1/wp-content/cache/$2/$1.$2 -f
RewriteRule min/(\w+)\.(css|js) wp-content/cache/$2/$1.$2 [L]
</IfModule>
### marker MINIFY end ###

## LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block! ##
# END NON_LSCACHE

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
# Wordfence WAF
<Files ".user.ini">
<IfModule mod_authz_core.c>
    Require all denied
</IfModule>
<IfModule !mod_authz_core.c>
    Order deny,allow
    Deny from all
</IfModule>
</Files>
# END Wordfence WAF
#开始非LSU缓存
##LITESPEED WP缓存插件-不要编辑此块的内容##
###标记缩小开始###
重新启动发动机
重写cond%{DOCUMENT_ROOT}%{REQUEST_URI}^(.*)/min/(\w+)\(css|js)$
重写条件%1/wp内容/缓存/$2/$1.$2-f
重写规则min/(\w+)\(css | js)可湿性粉剂内容/缓存/$2/$1.$2[L]
###标记缩小端###
##LITESPEED WP缓存插件-不要编辑此块的内容##
#结束非缓存
#开始WordPress
重新启动发动机
重写基/
重写规则^index\.php$-[L]
重写cond%{REQUEST_FILENAME}-F
重写cond%{REQUEST_FILENAME}-D
重写规则/index.php[L]
#结束WordPress
#Wordfence WAF
要求全部拒绝
命令拒绝,允许
全盘否定
#结束字围栏WAF

#开始WordPress
重新启动发动机
重写基/
重写规则^index\.php$-[L]
重写cond%{REQUEST_FILENAME}-F
重写cond%{REQUEST_FILENAME}-D
重写规则/index.php[L]
#结束WordPress
#Wordfence WAF
要求全部拒绝
命令拒绝,允许
全盘否定
#结束字围栏WAF
还有谁能告诉我我的问题在哪里?或者我还需要看其他代码吗


非常感谢

我遇到了同样的问题。对我来说,我的CDN似乎被阻止了,但不是我的实际站点,因此出现了“包含阻止的url”消息

为我的站点和cdn插入FB调试器的URL,我会收到以下消息:

  • “此网页包含阻止的URL。”vs
  • “我们无法查看此网站,因为内容不符合我们的社区标准。如果您认为这是一个错误,请告知我们。”
看起来我可能需要移动CDN。我目前使用谷歌云存储

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
# Wordfence WAF
<Files ".user.ini">
<IfModule mod_authz_core.c>
    Require all denied
</IfModule>
<IfModule !mod_authz_core.c>
    Order deny,allow
    Deny from all
</IfModule>
</Files>
# END Wordfence WAF