Ok this is how the code works, In my web browser you cannot go to any site. that is not in the file. The first time you go to a allowed site you can go to any other site after that its like it dosent check the file no more. Whey is that?

My Code:
vb Code:
  1. Dim FF As Integer, sItem As String
  2. lstValidURLs.Clear
  3. ' add code here to ensure file exists
  4. FF = FreeFile
  5. Open App.Path & "\Configuration Files\allowed.ini" For Input As #FF
  6. Do Until EOF(FF)
  7.     Line Input #FF, sItem
  8.     lstValidURLs.AddItem sItem
  9. Loop
  10. Close #FF
  11. GoodURL = False
  12. For I = 0 To lstValidURLs.ListCount - 1
  13.   If Left(Combo1.Text, Len(lstValidURLs.List(I))) = lstValidURLs.List(I) Then
  14.     GoodURL = True
  15.     Exit For
  16.   End If
  17. Next I
  18. If GoodURL Then
  19. 'Navigate To Selected Link One CLick
  20. w1.Navigate2 Combo1.Text
  21. Else
  22. End If
  23. End Sub