Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Send all clients to mobile sites

    Scheduled Pinned Locked Moved pfSense Packages
    4 Posts 2 Posters 1.2k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      mystycs
      last edited by

      Is there a way or a trick to send all internet users under pfsense to mobile sites?

      1 Reply Last reply Reply Quote 0
      • M
        mhab12
        last edited by

        This sounds like something that should be possible using squid.  A quick google turned up that you can replace headers including the browser type.  I would assume setting this to a mobile browser might trick sites into sending their mobile versions.

        http://www.squid-cache.org/Doc/config/header_replace/

        1 Reply Last reply Reply Quote 0
        • M
          mystycs
          last edited by

          I am putting this in the Custom Options section on the proxy.

          header_access User-Agent deny all;header_replace User-Agent Mozilla/5.0 (Linux; <android version="">; <build tag="" etc.="">);

          But its not working. Any ideas?</build></android>

          1 Reply Last reply Reply Quote 0
          • M
            mystycs
            last edited by

            Ah it says squid must be built with

            –enable-http-violation

            but i see its not in pfsense.

            Is there a way to rebuild it on pfsense?

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.