惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

W
WeLiveSecurity
The GitHub Blog
The GitHub Blog
Engineering at Meta
Engineering at Meta
Microsoft Azure Blog
Microsoft Azure Blog
The Register - Security
The Register - Security
Stack Overflow Blog
Stack Overflow Blog
博客园 - 三生石上(FineUI控件)
T
Threat Research - Cisco Blogs
S
SegmentFault 最新的问题
V2EX - 技术
V2EX - 技术
Hacker News: Ask HN
Hacker News: Ask HN
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
P
Proofpoint News Feed
J
Java Code Geeks
Microsoft Security Blog
Microsoft Security Blog
M
MIT News - Artificial intelligence
AI
AI
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
P
Proofpoint News Feed
Hacker News - Newest:
Hacker News - Newest: "LLM"
B
Blog
N
News and Events Feed by Topic
N
News | PayPal Newsroom
Google DeepMind News
Google DeepMind News
酷 壳 – CoolShell
酷 壳 – CoolShell
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
WordPress大学
WordPress大学
C
Cybersecurity and Infrastructure Security Agency CISA
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
博客园 - 【当耐特】
U
Unit 42
腾讯CDC
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
The Cloudflare Blog
H
Help Net Security
Recent Announcements
Recent Announcements
P
Privacy & Cybersecurity Law Blog
IT之家
IT之家
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Security Archives - TechRepublic
Security Archives - TechRepublic
L
LINUX DO - 热门话题
Martin Fowler
Martin Fowler
MongoDB | Blog
MongoDB | Blog
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
H
Heimdal Security Blog
博客园 - 聂微东
S
Securelist
大猫的无限游戏
大猫的无限游戏
Cloudbric
Cloudbric
Cisco Talos Blog
Cisco Talos Blog

噜啦 - python

django DTL 模板 - 噜啦 url命名 应用(app)命名空间 实例命名空间 - 噜啦 Python django 安装 创建项目 运行 Centos6 安装Python2.7.6 - 噜啦
使用Python 在WordPress 自动发布文章 xmlrpc 404 Not Found 错误 cPanel面板
博主: 噜啦 · 2020-10-15 · via 噜啦 - python
  • 发布时间:
  • 1755 次浏览
  • 689字数
  • 分类: 教程盒子
  1. 首页
  2. 正文  

问题环境:

  • cPanel 虚拟主机
  • Apache
  • WordPress 5.5.1
  • PHP 7.4
  • MySQL

当博主尝试使用 python-wordpress-xmlrpc 模块上传图片至WP时,命令行报错 domain.com/xmlprc.php 404 Not Found

但是当使用浏览器访问domain.com/xmlprc.php时却发现并没有404错误,浏览器提示XML-RPC server accepts POST requests only.,意思是只接受POST数据

于是我尝试使用 postman 向xmlrpc提交POST数据,错误重现,报错404。

网上找了下解决方案,大部分解决方式是.htaccess文件放行xmlrpc请求,经确认并不是Apache拦截了xmlrpc请求,不然理论上浏览器直接访问xmlrpc文件也是404

考虑到开放xmlrpc会有一定的风险,会不会是cPanel的某些安全组件拦截了xmlrpc的POST请求呢?

经过一番搜索,终于找到了罪魁祸首,cPanel中的ModSecurity功能,将此功能关闭,即可正常使用xmlrpc功能啦~

image.png

不过开放xmlrpc有一定风险,建议将xmlrpc.php文件路径修改一下。

赞赏作者

如果觉得我的文章对你有用,请随意赞赏

使用Python 在WordPress 自动发布文章 xmlrpc 404 Not Found 错误 cPanel面板

 •