facebook https-en
Zoltán Kurucz
zoltan.kurucz at gmail.com
2012. Feb. 15., Sze, 08:50:46 CET
Sziasztok!
Egy picit előrébb jutottam. A hosts fájl átírása felé indultam, egyelőre
helyi gépen.
Valami ilyesmi az alap hosts fájl:
# Copyright (c) 1993-2009 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host
# localhost name resolution is handled within DNS itself.
# 127.0.0.1 localhost
# ::1 localhost
Ezt egészítem ki ezzel:
#fb
127.0.0.1 www.facebook.com
Eddig ok, xp-n és 7-en is megfogja, hiába írom elé a https-t.
Van egy összetákolt bat-om, nem vagyok benne guru, netről összevadászott
parancsok... :)
@ECHO OFF
cd %~d0%~p0
IF NOT EXIST HOSTS GOTO nincs
IF "%OS%"=="Windows_NT" GOTO xpvagyhetes
IF EXIST %winbootdir%\HOSTS*.* ATTRIB +A -H -R -S %winbootdir%\HOSTS*.*>NUL
IF EXIST %winbootdir%\HOSTS.MVP DEL %winbootdir%\HOSTS.MVP>NUL
IF EXIST %winbootdir%\HOSTS REN %winbootdir%\HOSTS HOSTS.MVP>NUL
IF EXIST %winbootdir%\NUL COPY /Y HOSTS %winbootdir%>NUL
GOTO nincs
:xpvagyhetes
IF EXIST %windir%\SYSTEM32\DRIVERS\ETC\HOSTS*.* ATTRIB +A -H -R -S
%windir%\SYSTEM32\DRIVERS\ETC\HOSTS*.*>NUL
IF EXIST %windir%\SYSTEM32\DRIVERS\ETC\HOSTS.MVP DEL
%windir%\SYSTEM32\DRIVERS\ETC\HOSTS.MVP>NUL
IF EXIST %windir%\SYSTEM32\DRIVERS\ETC\HOSTS REN
%windir%\SYSTEM32\DRIVERS\ETC\HOSTS HOSTS.MVP>NUL
IF EXIST %windir%\SYSTEM32\DRIVERS\ETC\NUL COPY /Y HOSTS
%windir%\SYSTEM32\DRIVERS\ETC>NUL
:nincs
EXIT
helyi gépen tesztelve: xp-n szépen lefut, 7-en jobbklikk futtatás rg-ként,
de ok.
Eddig jutottam, abban kérnék még segítséget, hogy legegyszerűbben, hogyan
küldhetném ki a kliensek felé. (2008 r2)
Itt elrekedtem...
--
Kurucz Zoltán
*rendszergazda*
*constantinum.hu* <http://constantinum.hu>
--------- következő rész ---------
Egy csatolt HTML állomány át lett konvertálva...
URL: <http://lista.sulinet.hu/pipermail/techinfo/attachments/20120215/354cffe4/attachment.html>
További információk a(z) Techinfo levelezőlistáról