Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4606474
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T00:34:13+00:00 2026-05-22T00:34:13+00:00

I need to write a web crawler, and want to be able to crawl

  • 0

I need to write a web crawler, and want to be able to crawl using a known user agent. For example, I want my crawler to act as an iphone to crawl the mobile site of a website, then crawl again using Mozilla PC agent, etc.

That way, Ill be able to crawl every “type” of site (mobile & PC). However, I also want to be able to set my crawler’s user agent, so webmasters also see in their stats that it’s a crawler that visited their whole website, not real users.

So my question is, do you guys know how to set a mobile agent + a crawler agent at the same time, in PHP? Is it even possible?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T00:34:13+00:00Added an answer on May 22, 2026 at 12:34 am

    Please refer to RFC1945 for how a User Agent should be formed:

    10.15 User-Agent

    The User-Agent request-header field contains information about the
    user agent originating the request. This is for statistical purposes,
    the tracing of protocol violations, and automated recognition of user
    agents for the sake of tailoring responses to avoid particular user
    agent limitations. Although it is not required, user agents should
    include this field with requests. The field can contain multiple
    product tokens (Section 3.7) and comments identifying the agent and
    any subproducts which form a significant part of the user agent. By
    convention, the product tokens are listed in order of their
    significance for identifying the application.

     User-Agent     = "User-Agent" ":" 1*( product | comment )
    

    Example:

      User-Agent: CERN-LineMode/2.15 libwww/2.17b3
    

    So what you put there is more or less up to you. You could pose to be a GoogleBot-Mobile:

    • https://www.google.com/support/webmasters/bin/answer.py?answer=1061943

    or pose as an iPhone and add your own stuff

    Mozilla/5.0 (iPhone; U; CPU iPhone OS) (compatible; MyBot/1.0; +http://about.my/bot")
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to create a user configurable web spider/crawler, and I'm thinking about using
I need to write a web application using SQL Server 2005, asp.net, and ado.net.
I want to write a web-based code generator for a Python crawler. Its aim
I need to write a web service on a .NET platform for an IPhone
I need to write a temporary Web-based graphical front-end for a custom server system.
I'm planning to write gateway web application, which would need terminal window with VT100/ANSI
I need to write a web application that allows the client to download a
So my brother wanted me to write a web crawler in Python (self-taught) and
I need write a regular expression for RegularExpressionValidator ASP.NET Web Controls. The regular expression
I need to write a WSDL file to an existing web service which is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.