dqpciw9742 2016-09-10 19:36
浏览 24
已采纳

在将查询传递到远程服务器之前以任何方式(最佳方式)更改用户的IP地址[关闭]

We have a script running on a managed server (LAMP) that uses php/curl to post a user's query to a remote server and then display the results that are returned. What we would like to do is anonymize the users by passing our server IP to the remote server instead of the user IP. How can we implement this? Any suggestions will be appreciated and tried with no hard feelings or snide comments if it doesn't work. We're out of ideas. Thank you.

  • 写回答

1条回答 默认 最新

  • doudeng2016 2016-09-10 20:24
    关注

    tor

    curl bot.whatismyipaddress.com => 91.240.86.250
    

    use sock:

    curl bot.whatismyipaddress.com --socks5 127.0.0.1:9050 => 178.17.174.99
    

    use php

    curl_setopt($ch, CURLOPT_PROXY, 127.0.0.1 . ":" . 9050);
    curl_setopt($ch, CURLOPT_PROXYTYPE, CURLPROXY_SOCKS5);
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 fluent的在模拟压强时使用希望得到一些建议
  • ¥15 STM32驱动继电器
  • ¥15 Windows server update services
  • ¥15 关于#c语言#的问题:我现在在做一个墨水屏设计,2.9英寸的小屏怎么换4.2英寸大屏
  • ¥15 模糊pid与pid仿真结果几乎一样
  • ¥15 java的GUI的运用
  • ¥15 Web.config连不上数据库
  • ¥15 我想付费需要AKM公司DSP开发资料及相关开发。
  • ¥15 怎么配置广告联盟瀑布流
  • ¥15 Rstudio 保存代码闪退