Настроки прокси

  • Автор темы Автор темы besenok
  • Дата начала Дата начала

besenok

Новичок
Регистрация
04.04.2018
Сообщения
24
Реакции
4
Баллы
3
Подскажите как прописать в настройки браузера то что указано стрелкой, а именно исключения:
39fABTVF.png


может по средствам С#

Буду примного благодарен
 
Последнее редактирование:
Код:
Развернуть Свернуть Копировать
127.0.0.1
 
Это понятно, а как прописать?
 
Похоже, такая настройка отсутствует, но можно попробовать схитрить.

Для хрома:
https://peter.sh/experiments/chromium-command-line-switches/
--proxy-bypass-list - попробовать указать со списком в параметрах запуска хрома
--proxy-pac-url
--unsafe-pac-url

Для FF:
network.proxy.no_proxies_on - строка где url'ы разделены запятой
C#:
Развернуть Свернуть Копировать
instance.SetBrowserPreference("network.proxy.no_proxies_on", "*.localhost, localhost");
 
Последнее редактирование:
  • Спасибо
Реакции: besenok
Похоже, такая настройка отсутствует, но можно попробовать схитрить.

Для хрома:
https://peter.sh/experiments/chromium-command-line-switches/
--proxy-bypass-list - попробовать указать со списком в параметрах запуска хрома
--proxy-pac-url
--unsafe-pac-url

Для FF:
network.proxy.no_proxies_on - строка где url'ы разделены запятой
C#:
Развернуть Свернуть Копировать
instance.SetBrowserPreference("network.proxy.no_proxies_on", "*.localhost, localhost");

С FF получилось а вот с хромом пока не смог разобраться.
 
  • Спасибо
Реакции: ZX
https://www.chromium.org/developers/design-documents/network-settings

--proxy-bypass-list=(<trailing_domain>|<ip-address>)[:<port>][;...]

This tells chrome to bypass any specified proxy for the given semi-colon-separated list of hosts. This flag must be used (or rather, only has an effect) in tandem with --proxy-server.
Note that trailing-domain matching doesn't require "." separators so "*google.com" will match "igoogle.com" for example.

For example,
--proxy-server="foopy:8080" --proxy-bypass-list="*.google.com;*foo.com;127.0.0.1:8080"
will use the proxy server "foopy" on port 8080 for all hosts except those pointing to *.google.com, those pointing to *foo.com and those pointing to localhost on port 8080.
igoogle.com requests would still be proxied. ifoo.com requests would not be proxied since *foo, not *.foo was specified.
 
https://www.chromium.org/developers/design-documents/network-settings

--proxy-bypass-list=(<trailing_domain>|<ip-address>)[:<port>][;...]

This tells chrome to bypass any specified proxy for the given semi-colon-separated list of hosts. This flag must be used (or rather, only has an effect) in tandem with --proxy-server.
Note that trailing-domain matching doesn't require "." separators so "*google.com" will match "igoogle.com" for example.

For example,
--proxy-server="foopy:8080" --proxy-bypass-list="*.google.com;*foo.com;127.0.0.1:8080"
will use the proxy server "foopy" on port 8080 for all hosts except those pointing to *.google.com, those pointing to *foo.com and those pointing to localhost on port 8080.
igoogle.com requests would still be proxied. ifoo.com requests would not be proxied since *foo, not *.foo was specified.

Я извиняюсь а можно кодом под С# не сильно силен в программировании.
 
Увы, попробовал с хромом не получилось, зато с FF все получилось без проблем. Огромнейшее спасибо.
 

Кто просматривает тему: (Всего: 0, Пользователи: 0, Гости: 0)