1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Any script that transform normal traffic to mobile? (fake)

Discussion in 'General Scripting Chat' started by muxmkt, Nov 17, 2011.

  1. muxmkt

    muxmkt Power Member

    Joined:
    May 24, 2011
    Messages:
    543
    Likes Received:
    132
    Hi,

    Im looking for a way to make a normal browser access look like a mobile access.

    Any way to do it?


    Regards
     
  2. manolo12399

    manolo12399 Senior Member

    Joined:
    Jan 3, 2009
    Messages:
    819
    Likes Received:
    161
    If is your browser, may be using the plugin for firefox, called proxy tool.

    has many different setting, u can change, dont know if has mobile phones user agents, or if u can add.

    try also some other similar add on, too.

    I used for my desktop, but never looked into mobile.
     
  3. jazzc

    jazzc Moderator Staff Member Moderator Jr. VIP

    Joined:
    Jan 27, 2009
    Messages:
    2,468
    Likes Received:
    10,148
    Use an android/iphone emulator ;)
     
  4. muxmkt

    muxmkt Power Member

    Joined:
    May 24, 2011
    Messages:
    543
    Likes Received:
    132
    Hey guys thanks for the reply, but what i need is a script that i add to my site that makes ALL THE VISITORS access as they were coming via mobile phones. U get it?

    Regards
     
  5. sockpuppet

    sockpuppet Junior Member

    Joined:
    Nov 7, 2011
    Messages:
    155
    Likes Received:
    145
    that is impossible
    you cannot change the user-agent with javascript
     
  6. DarkPixel

    DarkPixel Jr. VIP Jr. VIP Premium Member

    Joined:
    Oct 4, 2011
    Messages:
    1,328
    Likes Received:
    1,239
    Location:
    ↓↓↓↓
    Home Page:
    I think it's possible by messing with the .htaccess file.
     
  7. sockpuppet

    sockpuppet Junior Member

    Joined:
    Nov 7, 2011
    Messages:
    155
    Likes Received:
    145
    you can do it with mod_headers.
    but i doubt that is what OP wants, i assume he wants to fake some mobile traffic for his advertiser, but impossible without access to the browser/network-traffic
     
  8. muxmkt

    muxmkt Power Member

    Joined:
    May 24, 2011
    Messages:
    543
    Likes Received:
    132
    What mod_headers would do exactly?

    What i want it is make some (or all) the traffic look like mobile, but actually they are from desktop.
     
  9. xpwizard

    xpwizard Junior Member

    Joined:
    Nov 6, 2010
    Messages:
    198
    Likes Received:
    122
    It's not possible to change someone else's user agent. You can change the way your server looks at them, but you can't change the actual user agent.
     
  10. muxmkt

    muxmkt Power Member

    Joined:
    May 24, 2011
    Messages:
    543
    Likes Received:
    132

    changing the way my server recognize it would work i think


    how could i do it? any tips?
     
  11. sockpuppet

    sockpuppet Junior Member

    Joined:
    Nov 7, 2011
    Messages:
    155
    Likes Received:
    145
    you need apache with mod_headers installed
    then try something like this in your htaccess file (not tested)
    Code:
    <IfModule mod_headers.c>
    RequestHeader set User-Agent "Mozilla/5.0 (Linux; U; Android 2.2; en-us; Nexus One Build/FRF91) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1"
    </IfModule>