Change User-Agent through HTTP-Proxy
#### Install Privoxy
`sudo apt install privoxy`
#### Change config
`sudo vim /etc/privoxy/config`
1. Search `listen-address` and replace it with: `listen-address 0.0.0.0:8118`
2. Search `enable-remote-toggle` , `enable-edit-actions` and make sure they're enabled.
3. At the end of the file, add the following rules:
```
# passby all https connection:
forward :443 .
# passby the login page:
forward 192.168.138.180 .
```
#### Change config through webpage
1. Open `http://p.p` in your browser
2. Choose `View & change the current configuration`
3. Find `match-all.action` and click `Edit`
4. Enable `hide-referrer` and `hide-from-header`
5. Find `User Agent string to send`, write down `
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/59.0.3071.109 Chrome/59.0.3071.109 Safari/537.36`
6. Click `Submit` at the the page
7. Remove or Delete all other rules you can see on those webpages.
8. In the end, it looks like this:
```
+hide-from-header{block}
+hide-if-modified-since{-1}
+hide-referrer{block}
+hide-user-agent{Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/59.0.3071.109 Chrome/59.0.3071.109 Safari/537.36}
```
#### Use it with SwitchyOmega or Android Native WiFi connector
`sudo apt install privoxy`
#### Change config
`sudo vim /etc/privoxy/config`
1. Search `listen-address` and replace it with: `listen-address 0.0.0.0:8118`
2. Search `enable-remote-toggle` , `enable-edit-actions` and make sure they're enabled.
3. At the end of the file, add the following rules:
```
# passby all https connection:
forward :443 .
# passby the login page:
forward 192.168.138.180 .
```
#### Change config through webpage
1. Open `http://p.p` in your browser
2. Choose `View & change the current configuration`
3. Find `match-all.action` and click `Edit`
4. Enable `hide-referrer` and `hide-from-header`
5. Find `User Agent string to send`, write down `
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/59.0.3071.109 Chrome/59.0.3071.109 Safari/537.36`
6. Click `Submit` at the the page
7. Remove or Delete all other rules you can see on those webpages.
8. In the end, it looks like this:
```
+hide-from-header{block}
+hide-if-modified-since{-1}
+hide-referrer{block}
+hide-user-agent{Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/59.0.3071.109 Chrome/59.0.3071.109 Safari/537.36}
```
#### Use it with SwitchyOmega or Android Native WiFi connector