Welcome to ISAserver.org
Forums |
Register |
Login |
My Profile |
Inbox |
RSS
|
My Subscription |
My Forums |
Address Book |
Member List |
Search |
FAQ |
Ticket List |
Log Out
Importing Destination sets
|
Users viewing this topic:
none
|
Logged in as: Guest
|
Login | |
|
Importing Destination sets - 2.Sep.2004 11:56:00 AM
|
|
|
TomCat1
Posts: 23
Joined: 31.Aug.2004
Status: offline
|
Supposing someone had a download set file called "Banned Advertisement Sites.xml"; exactly how would one import this file into an HTTP ISA 2004 denial rule? Thanks!
|
|
|
|
RE: Importing Destination sets - 2.Sep.2004 2:01:00 PM
|
|
|
tshinder
Posts: 47490
Joined: 10.Jan.2001
From: Texas
Status: offline
|
Hi Tom,
I have a script that will allow this. Send me a note. You'll have to find your own sites, though.
HTH, Tom
|
|
|
|
RE: Importing Destination sets - 5.Sep.2004 8:57:00 AM
|
|
|
azfar
Posts: 487
Joined: 27.Oct.2002
From: Karachi
Status: offline
|
Please send me a copy azfarhusain@yahoo.com Thanks.
|
|
|
|
RE: Importing Destination sets - 6.Sep.2004 6:12:00 PM
|
|
|
azfar
Posts: 487
Joined: 27.Oct.2002
From: Karachi
Status: offline
|
Thanks Tom.
|
|
|
|
RE: Importing Destination sets - 2.Oct.2004 9:37:00 AM
|
|
|
munnobhai
Posts: 94
Joined: 1.Nov.2002
From: Karachi , Pakistan
Status: offline
|
When running this vbs an error returns : the system cannot find the file specified.
Line:5 Char:1 Code:80070002 Source:(null)
even the file is there (urls.txt)
|
|
|
|
RE: Importing Destination sets - 2.Oct.2004 8:13:00 PM
|
|
|
munnobhai
Posts: 94
Joined: 1.Nov.2002
From: Karachi , Pakistan
Status: offline
|
Hi, Tom, is there any prior setting to run this vbs ??
|
|
|
|
RE: Importing Destination sets - 3.Oct.2004 5:35:00 PM
|
|
|
munnobhai
Posts: 94
Joined: 1.Nov.2002
From: Karachi , Pakistan
Status: offline
|
Dear Tom, I have solved the problem by doing the following:
1.Adding a url set name manually ('urls' here). 2.Adding a line in your code : code:
Set Isa = CreateObject("FPC.Root") Set CurArray = Isa.GetContainingArray Set RuleElements = CurArray.RuleElements Set URLSets = RuleElements.URLSets Set URLSet = URLSets.Item("urls") Set FileSys = CreateObject("Scripting.FileSystemObject") Set UrlsFile = FileSys.OpenTextFile("urls.txt", 1) For i = 1 to URLSet.Count URLSet.Remove 1 Next ON Error Resume Next <<<<<------ this line Do While UrlsFile.AtEndOfStream <> True URLSet.Add UrlsFile.ReadLine Loop WScript.Echo "Saving..." CurArray.Save WScript.Echo "Done"
Thanks for the code, Regards, Hunaid Haroon
|
|
|
|
RE: Importing Destination sets - 7.Oct.2004 3:43:00 PM
|
|
|
munnobhai
Posts: 94
Joined: 1.Nov.2002
From: Karachi , Pakistan
Status: offline
|
Hi, The wording '<<< this line' is only to mention the addition dont put it in your code !
|
|
|
|
RE: Importing Destination sets - 7.Oct.2004 5:56:00 PM
|
|
|
TomCat1
Posts: 23
Joined: 31.Aug.2004
Status: offline
|
Try Surf Control for ISA Server 2004. It worked for me! --Tom C
|
|
|
|
RE: Importing Destination sets - 7.Oct.2004 7:28:00 PM
|
|
|
Cturtle
Posts: 1
Joined: 7.Oct.2004
Status: offline
|
quote: Originally posted by tshinder: I have a script that will allow this. Send me a note. You'll have to find your own sites, though.
Tomcat1 spoke about "Banned Advertisement Sites.xml". Why did you advice to use a script when importing this .xmlfile is the most simple option?
Regards.
|
|
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts |
|