我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

验证外部JavaScript请求

I have a piece of javascript that I want to implement on multiple thank-you pages of webshops to transport data to a php script (via jsonp) on a HTTPS server. Is there any way to authenticate the transport request of the external script to avoid illegal/faked requests? The easiest way would be to verify the referer e.g. by the http_referrer of the request. But the referrer isn't always passed by the browser. I can't use any server side script on the thank you pages to generate hashes.

近期文章

  • 如何在PHP中使用UDID发送推送通知
  • 我的PHP表单随机发送空白电子邮件?
  • php中的变量变量和mysql_result
  • 打开RewriteEngine获取500服务器错误
  • 如何在php文件中使用类的概念
  • 如何使用jquery基于其id将一个数组分成两个
  • 在zend框架工作中将index.php移出应用程序根目录
  • Wordpress the_content() - 自定义img模板
  • 进行php调用后,照片不显示
  • Mysql_query将新值设置为比最后一个多一个
  • 使用模板中的Web技术生成视频?
  • 将CodeIgniter的配置文件放在'application /'之外
  • 结合Zend Framework 2中的模块配置
  • php true方法使用mysqli连接到处[关闭]
  • 奇怪! 当foldername包含“-cache”时,openZip例程失败
  • 从文本文件中挑选国家/地区代码和相应的域
  • 组合2个关联数组
  • php虚函数导致空白页面
  • 超时命令后的脚本输出
  • 在Category List组件中添加where查询

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华