Results 1 to 3 of 3
  1. #1
    Join Date
    May 2011

    PHP Curl and Fake Domain Names??

    Is it possible to fake a domain name using curl and PHP??

    Let me explain what I'm after, and what I don't understand yet.

    All domain names resolve to an IP lets say resolves. for the sake of simplicity. Now when the request for a file get to the server at How does it know it from and more importantly if the server is given a domain name of convenience, is it possible using curl in PHP to trick the server into giving you files for, when infact you've gone straight to the IP because the domain isn't in any external DNS servers?

    Think I've explained that right :-)

  2. #2
    Join Date
    Jul 2007
    Ashburn, VA
    When you send a request to a server, you are required to send the "Host" field.
    That's how the server knows which domain you are trying to access.
    Preetam Jinka

    Isomerous - High performance web services for business and individuals.
    Bitcable Colocation, KVMs, cPanel hosting, Oracle expertise, and more.

  3. #3
    Join Date
    May 2011
    That's brilliant thanks, I'm off to have a play with curl.

Similar Threads

  1. Company Owners Using Fake Names
    By sTag-Dan in forum Running a Web Hosting Business
    Replies: 13
    Last Post: 12-03-2006, 06:01 PM
  2. PHP compiled with mcrypt() curl & curl ssl support
    By skelkeys in forum Hosting Security and Technology
    Replies: 2
    Last Post: 10-29-2005, 03:18 PM
  3. Is it illegal to use fake names for customer service?
    By joephill in forum Web Hosting Lounge
    Replies: 26
    Last Post: 09-13-2005, 12:21 PM
  4. Need help with strange cURL / PHP 4.3.7 issue: claims cURL is not installed
    By sscooter1010 in forum Hosting Security and Technology
    Replies: 8
    Last Post: 08-10-2004, 02:48 AM
  5. Fake Processor Names
    By Kerry Jones in forum Web Hosting Lounge
    Replies: 33
    Last Post: 08-02-2004, 12:31 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts