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

如何在php中获取所请求用户的域名?

I am working on one API where i need to validate requested domains.

So how can i have domain name?

I want domain name like http://google.com if request to my site coming from http://google.com

I have tried all the $_REQUEST global variables but in some i can find ip address in some i can have hosting company name means host. But i want just domain name or sub-domain if it is from.

近期文章

  • 将HTML电子邮件转换为“Well Formed XHTML Code”
  • 如果用户登录我的网站,如何隐藏此表单?
  • 将Laravel多对多关系导出到csv
  • 如何在php会话数组中添加第三个值?
  • strpos()无法识别PHP字符串编码?
  • 多个条件搜索查询构建器[symfony2]
  • 在移动试用帐户中未收到twilio短信
  • PHP - 为什么我不能摆脱这个会话id cookie?
  • 在PHP标记内使用site_url()回显图像标记
  • 来自json远程文件的php中的奇怪字符
  • 删除出现在另一个查询中的1个查询的结果
  • 检查用户是否具有* nix中文件的权限
  • 如何从数据库中搜索部分单词
  • 使用mPDF生成并保存多个pdf文件
  • jQuery .load和Session ID不同步?
  • 实体公共字段的学说继承
  • 如何在php中将数据库中的数据显示为文本
  • 谷歌地图上的标记使用Mysql,Php,Javascript
  • php正则表达式在regex101上工作时无效
  • 在Windows上没有go-pear.bat的PEAR安装

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

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

友情链接:代码精华