0

My Windows 7 admin pushes out some proxy settings (e.g., a proxy.pac file available through http) to my computer every night that I don't want. I have modified this pac-file and stored it locally, on C:. Currently I have to replace the http URL to a file path every morning. Would it be possibe, maybe using the host-file, to redirect this http URL to a file path? Convincing my admin to stop changing my network settings is not gonna happen, hence I am looking for a workaround.

I am local admin on my machine.

d-b
  • 956

1 Answers1

0

ould it be possibe, maybe using the host-file, to redirect this http URL to a file path?

No. The hosts file translates host-names into IP addresses. It does not do anything with file paths. (In fact it does very little, being designedin an era where computing resources were very limited).

Hence I am looking for a workaround.

Maybe we can help with that though. How does the new pac get pushed? What happens if you make the file you modified read-only? Or (ugly but likely working) how about replacing the pac with a copy from your userfolder by placing a batch-file in the startup folder?

Hennes
  • 65,804
  • 7
  • 115
  • 169