OVH Cloud OVH Cloud

script de configuration automatique

6 réponses
Avatar
jerome
Bonjour,

Qqn peut-il me dire si il est possible d'=E9crire un script=20
de configuration automatique pour IE (quelque soit la=20
version) ?

Si oui, est ce un fichier .pac ?
Quel langage ? (j'ai essay=E9 du javascript)
Faut il param=E9trer le type MIME et si oui comment ?
Enfin comment param=E9trer IE pour =EAtre s=FBr qu'il utilise ce=20
script.

Le but =E9tant de modifier la configuration d'un ensemble de=20
postes pour la diriger vers un proxy cache.

Merci d'avance

6 réponses

Avatar
Gregory Sonzogni
Oui il est tout a fait possible d'ecrire un .pac compatible pour les
differentes versions de IE ( a partir de celle qui supporte ce script :
certainementr IE4.01 ).

Tu indiques dans IE ( options internet; onglet connexion, puis parametres
LAN l'emplacement de ton fichier .pac



"jerome" wrote in message
news:06fa01c355a7$aee2e2b0$
Bonjour,

Qqn peut-il me dire si il est possible d'écrire un script
de configuration automatique pour IE (quelque soit la
version) ?

Si oui, est ce un fichier .pac ?
Quel langage ? (j'ai essayé du javascript)
Faut il paramétrer le type MIME et si oui comment ?
Enfin comment paramétrer IE pour être sûr qu'il utilise ce
script.

Le but étant de modifier la configuration d'un ensemble de
postes pour la diriger vers un proxy cache.

Merci d'avance
Avatar
Gregory Sonzogni
par exemple:

280480 HOWTO: Use an autoproxy file to restrict site access


"jerome" wrote in message
news:06fa01c355a7$aee2e2b0$
Bonjour,

Qqn peut-il me dire si il est possible d'écrire un script
de configuration automatique pour IE (quelque soit la
version) ?

Si oui, est ce un fichier .pac ?
Quel langage ? (j'ai essayé du javascript)
Faut il paramétrer le type MIME et si oui comment ?
Enfin comment paramétrer IE pour être sûr qu'il utilise ce
script.

Le but étant de modifier la configuration d'un ensemble de
postes pour la diriger vers un proxy cache.

Merci d'avance
Avatar
Gregory Sonzogni
cet article est tres interessant:

209266 Auto-Proxy Functions Supported by Internet Explorer
http://support.microsoft.com/?id 9266


"jerome" wrote in message
news:06fa01c355a7$aee2e2b0$
Bonjour,

Qqn peut-il me dire si il est possible d'écrire un script
de configuration automatique pour IE (quelque soit la
version) ?

Si oui, est ce un fichier .pac ?
Quel langage ? (j'ai essayé du javascript)
Faut il paramétrer le type MIME et si oui comment ?
Enfin comment paramétrer IE pour être sûr qu'il utilise ce
script.

Le but étant de modifier la configuration d'un ensemble de
postes pour la diriger vers un proxy cache.

Merci d'avance
Avatar
jerome
A priori les articles ne sont plus accessibles. Seraient
ils possibles de me les envoyer ?

Merci

Jérôme
-----Message d'origine-----
par exemple:

280480 HOWTO: Use an autoproxy file to restrict site


access




Avatar
Gregory Sonzogni
HOWTO: Use an autoproxy file to restrict site access WGID:219
ID: 280480.Idea.EN-US CREATED: 2000-11-23 MODIFIED: 2001-01-19


Public |

* Security : Public



SUMMARY
======

This article describes how to restrict access to only certain web sites
using a Proxy Autoconfiguration File (.pac file) with Internet Explorer.



For more information about .PAC files refer to:



KBLink:209266.KB.EN-US: Auto-Proxy Functions Supported by Internet
Explorer

MORE INFORMATION
===============

You can use a basic autoproxy file to restrict web site access to specified
URL locations. The example file will allow access to three web site urls
where the connection will be made via a proxy server called "PROXYSVR". All
other web sites will attempt to make a connection to a non-existent proxy
server called "NOPROXY" and will fail.


The autoproxy file is a Javascript file that is downloaded to the client
machine and is interpreted by Internet Explorer. It is used to determine
which proxy server to use for each connection.



function FindProxyForURL(url, host)
{
if (shExpMatch(host, "*.intranet.com") ||
shEXPMatch(host, "*.extranet.com") ||
shEXPMatch(host, "*.bank.com")
return "PROXY PROXYSVR:80";
else return "PROXY NOPROXY:80";
}


To use the 'sample' code above complete the following:


1. Copy the example text to a text editor and save as restricted.pac.Copy
the file onto a web server.In Internet Explorer enter the URL to your .PAC
file into the "Use Automatic Configuration" dialog box by:

a. Accessing the Tools menu and choosing Internet Options

b. Choose the Connections Tab

c. Choose the connection that you want to specify the Proxy
Autoconfiguration file for. If you are connected via a LAN connection,
choose "LAN Settings"

d. Set the full http:// path to your restricted.pac file.

2. Copy the file onto a web server.In Internet Explorer enter the URL to
your .PAC file into the "Use Automatic Configuration" dialog box by:

a. Accessing the Tools menu and choosing Internet Options

b. Choose the Connections Tab

c. Choose the connection that you want to specify the Proxy
Autoconfiguration file for. If you are connected via a LAN connection,
choose "LAN Settings"

d. Set the full http:// path to your restricted.pac file.

3. In Internet Explorer enter the URL to your .PAC file into the "Use
Automatic Configuration" dialog box by:

a. Accessing the Tools menu and choosing Internet Options

b. Choose the Connections Tab

c. Choose the connection that you want to specify the Proxy
Autoconfiguration file for. If you are connected via a LAN connection,
choose "LAN Settings"

d. Set the full http:// path to your restricted.pac file.


NOTE: You can also use the Internet Explorer Administration Kit to set your
autoconfiguration URL as well as to keep users from changing any of the
connection settings.


For more information about the Internet Explorer Administration Kit (IEAK),
please refer to:http://www.microsoft.com/windows/ieak

"jerome" wrote in message
news:07d401c355b3$c62a1720$
A priori les articles ne sont plus accessibles. Seraient
ils possibles de me les envoyer ?

Merci

Jérôme
-----Message d'origine-----
par exemple:

280480 HOWTO: Use an autoproxy file to restrict site


access




Avatar
Gregory Sonzogni
Regarde dans le ressource kit de IE/IEAK il doit y avoir plusieurs exemple.


"jerome" wrote in message
news:07d401c355b3$c62a1720$
A priori les articles ne sont plus accessibles. Seraient
ils possibles de me les envoyer ?

Merci

Jérôme
-----Message d'origine-----
par exemple:

280480 HOWTO: Use an autoproxy file to restrict site


access