-=-
.
.....
  
 
RSS
Direkomendasikan menggunakan brower Opera/Chrome/Firefox. Resolusi minimal 1024x768 | Powered by ____ |
 
  
 
Nikmati Delphi-ID dalam berbagai versi tampilan :
Basic View (LOW Bandwidth)
Default View (Full)
Mobile Edition
Main Menu
..:: onWebTools ::..
..:: onLastPosts ::..
goto Postjumlah komponen maksimal dalam sebuah project(6)
 by d4mnf1y32
 on 21.May at 12:16
goto Posttanya grayscale to biner dengan scanline(1)
 by luckynvic
 on 20.May at 20:44
goto Posttanya looping biner to matriks(1)
 by luckynvic
 on 20.May at 20:10
goto Postsql error:acces denied for user....(2)
 by nasbms
 on 19.May at 16:54
goto Postpemanggilan frame(4)
 by nasbms
 on 19.May at 16:14
goto Posttanya AvLock(0)
 by azuriza
 on 19.May at 11:24
goto PostGet TDBEdit Value Menggunakan LookUp Grid(10)
 by henry_sys
 on 18.May at 11:27
goto Postmenghitung record dalam perulangan(4)
 by idhiel
 on 16.May at 13:53
goto Posttanya ascii(4)
 by mas_kofa
 on 16.May at 12:11
goto PostRawPrint Untuk Delphi XE2(0)
 by adewijaya
 on 15.May at 22:34
goto Postdatabase error..(4)
 by idhiel
 on 15.May at 15:57
goto Postbekasi, pt arila putra mahkota(3)
 by mas_kofa
 on 15.May at 15:37
goto Postbagaimana cara membaca file *.doc dg delphi?(0)
 by ficky
 on 15.May at 06:14
goto Posttanya biner to matriks(13)
 by diandewi
 on 14.May at 20:30

..:: onLast Articles ::..
..:: New Download ::..
Pascal-id.Org
Feeds -  Popular -  Latest
RE: The Longue
8 months, 3 weeks ago
RE: belajar pascal
8 months, 3 weeks ago
RE: The Longue
8 months, 3 weeks ago
RE: belajar pascal
8 months, 3 weeks ago
RE: Perkenalan dan Absen
8 months, 3 weeks ago
RE: Alhamdulillah Buka Puasa Bersama
8 months, 4 weeks ago
RE: تَقَبَّلَ اللهُ مِنَّا وَمِنْكَ - Selamat Hari Raya Idul Fitri
8 months, 4 weeks ago
Lintas Situs
«
free web site stats and visitor tracking

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
mankermanOffline
Location:
22 Post subject: Gimana Cara Bgeblok Sebuah Situs????  PostPosted: 13/Sep/2008 20:32
onIntermediate


Joined: 13-Sep-2008
Posts: 35

Status: Offline
Please bantuannya buat semua, gimana source code delphi yang bisa ngambil url yang ada di address IE, Atau beri contoh sedikit untuk source yang bisa ngeblok situs - situs porno di local network. Question Question Question Question Question Sad
 
 View user's profile Send private message Send e-mail  
Reply with quote Back to top
madiOffline
Location:
Post subject: RE: Gimana Cara Bgeblok Sebuah Situs????  PostPosted: 14/Sep/2008 18:48
onProfessional


Joined: 30-Dec-2005
Posts: 527

Status: Offline
code : pascal
  1. //Code 1 **************************************}
  2.  
  3. uses
  4. ddeman;
  5.  
  6. function GetURL(Service: string): string;
  7. var
  8. ClDDE: TDDEClientConv;
  9. temp: PChar;
  10. begin
  11. Result := '';
  12. //create a new DDE Client object
  13. ClDDE := TDDEClientConv.Create(nil);
  14. with ClDDE do
  15. begin
  16. SetLink(Service, 'WWW_GetWindowInfo');
  17. temp := RequestData('0xFFFFFFFF');
  18. Result := StrPas(temp);
  19. StrDispose(temp);
  20. CloseLink;
  21. end;
  22. ClDDE.Free;
  23. end;
  24.  
  25. procedure TForm1.Button1Click(Sender: TObject);
  26. begin
  27. // the result should be something like:
  28. ShowMessage(GetURL('IExplore'));
  29. { ShowMessage(GetURL('Netscape')); }
  30. end;
  31.  
  32. { Code 2 **************************************}
  33.  
  34. uses
  35. ddeman;
  36.  
  37. procedure GetCurrentURL(out URL, Title: string);
  38. var
  39. DDEClient : TDDEClientConv;
  40. p, q: PChar;
  41. i: Integer;
  42. begin
  43. DDEClient := TDDEClientConv.Create(nil);
  44. try
  45. with DDEClient do if SetLink('IExplore', 'WWW_GetWindowInfo') or
  46. SetLink('Netscape', 'WWW_GetWindowInfo') or
  47. SetLink('Mosaic', 'WWW_GetWindowInfo') or
  48. SetLink('Netscp6', 'WWW_GetWindowInfo') or
  49. SetLink('Mozilla', 'WWW_GetWindowInfo') or
  50. SetLink('Firefox', 'WWW_GetWindowInfo') then
  51. p := RequestData('0xFFFFFFFF')
  52. else raise Exception.Create('Could not establish browser DDE link');
  53. if Assigned(p) then try
  54. q := p;
  55. Assert(q^ = '"');
  56. SetLength(URL, StrLen(q));
  57. Inc(q);
  58. i := 0;
  59. while q^ <> '"' do begin
  60. if (q^ = '\') and (q[1] = '"') then Inc(q);
  61. Inc(i);
  62. URL[i] := q^;
  63. Inc(q);
  64. end;
  65. SetLength(URL, i);
  66. SetLength(Title, StrLen(q));
  67. i := 0;
  68. Inc(q, 3);
  69. while q^ <> '"' do begin
  70. if (q^ = '\') and (q[1] = '"') then Inc(q);
  71. Inc(i);
  72. Title[i] := q^;
  73. Inc(q);
  74. end;
  75. SetLength(Title, i);
  76. finally
  77. StrDispose(p);
  78. end else raise Exception.Create('Could not fetch browser data');
  79. finally
  80. DDEClient.Free;
  81. end;
  82. end;
  83.  
  84. { Code 3 **************************************}
  85.  
  86.  
  87. // To have the locationurls from all running instances of Internet Explorer -
  88. // including open folders and Windows Explorer - shown in a listbox.
  89.  
  90. uses
  91. shdocvw_tlb;
  92.  
  93. procedure TForm1.Button2Click(Sender: TObject);
  94. var
  95. x: Integer;
  96. Sw: IShellWindows;
  97. begin
  98. sw := CoShellWindows.Create;
  99. for x := 0 to SW.Count - 1 do
  100. Listbox1.Items.Add((Sw.Item(x) as IWebbrowser2).LocationUrl);
  101. end;
  102.  
  103. { Code 4 **************************************}
  104.  
  105.  
  106. uses
  107. ActiveX, Shdocvw_tlb, MSHTML_TLB;
  108.  
  109. type
  110. TObjectFromLResult = function(LRESULT: lResult; const IID: TIID;
  111. wParam: wParam; out pObject): HRESULT;
  112. stdcall;
  113.  
  114.  
  115. function GetIEFromHWND(WHandle: HWND; var IE: IWebbrowser2): HRESULT;
  116. var
  117. hInst: HWND;
  118. lRes: Cardinal;
  119. Msg: Integer;
  120. pDoc: IHTMLDocument2;
  121. ObjectFromLresult: TObjectFromLresult;
  122. begin
  123. hInst := LoadLibrary('Oleacc.dll'); @ObjectFromLresult :=
  124. GetProcAddress(hInst, 'ObjectFromLresult');
  125. if @ObjectFromLresult <> nil then
  126. begin
  127. try
  128. Msg := RegisterWindowMessage('WM_HTML_GETOBJECT');
  129. SendMessageTimeOut(WHandle, Msg, 0, 0, SMTO_ABORTIFHUNG, 1000, lRes);
  130. Result := ObjectFromLresult(lRes, IHTMLDocument2, 0, pDoc);
  131. if Result = S_OK then
  132. (pDoc.parentWindow as IServiceprovider).QueryService(IWebbrowserApp,
  133. IWebbrowser2, IE);
  134. finally
  135. FreeLibrary(hInst);
  136. end;
  137. end;
  138. end;
  139.  
  140. function GetActiveIEURL: string;
  141. var
  142. Document: IHtmlDocument2;
  143. IE: IWebBrowser2;
  144. Wnd: HWND;
  145. WndChild: HWND;
  146. begin
  147. Wnd := GetForeGroundWindow;
  148. WndChild := FindWindowEX(Wnd, 0, 'Shell DocObject View', nil);
  149. if WndChild <> 0 then
  150. begin
  151. WndChild := FindWindowEX(WndChild, 0, 'Internet Explorer_Server', nil);
  152. if WndChild <> 0 then
  153. begin
  154. //Get Iwebbrowser2 from Handle
  155. GetIEFromHWnd(WndChild, IE);
  156. if IE <> nil then
  157. begin
  158. Result := IE.LocationURL;
  159. // Document := IE.Document as IHtmlDocument2;
  160. end;
  161. end;
  162. end;
  163. end;
  164.  
  165. procedure TForm1.Timer1Timer(Sender: TObject);
  166. begin
  167. Caption := GetActiveIEURL;
  168. end;
Parsed in 0.027 seconds, using GeSHi

_________________
"MAN BEHIND THE GUN"
Hidup ini sudah terlalu banyak masalah, Tambah satu masalah tidak jadi masalah.
Hidup ini simple, jgn dijadikan complex.
 
 View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger  
Reply with quote Back to top
madiOffline
Location:
Post subject: RE: Gimana Cara Bgeblok Sebuah Situs????  PostPosted: 14/Sep/2008 18:54
onProfessional


Joined: 30-Dec-2005
Posts: 527

Status: Offline
mungkin cara ngeblocknya bisa gunakan ini, dengan digabung listing diatas. Very Happy

code : pascal
  1. uses Comobj;
  2. {...}
  3. var
  4. Form1: TForm1;
  5. IEApp: OLEVariant;
  6.  
  7. implementation
  8.  
  9. {$R *.DFM}
  10.  
  11. procedure TForm1.Button1Click(Sender: TObject);
  12. begin
  13. IEApp := CreateOLEObject('InternetExplorer.Application');
  14. IEApp.Visible := True;
  15. IEApp.Top := 0;
  16. IEApp.Left := 0;
  17. IEApp.Width := Screen.Width;
  18. IEApp.Height := Screen.Height;
  19. IEApp.Navigate('http://delphi-id.org/dpr');
  20. end;
  21.  
  22. // To Close the Internet Explorer:
  23.  
  24. IEApp.Quit;
  25.  
  26.  
  27. // Some other methods:
  28.  
  29. IEApp.GoForward
  30. IEApp.GoBack
  31. IEApp.GoHome
  32. IEApp.Refresh
  33. IEApp.Stop
  34. IEApp.GoHome
  35. IEApp.FullScreen := true;
  36.  
  37. // To set some Properties:
  38.  
  39.  
  40. IEApp.StatusText := 'My Status Text';
  41.  
  42. {
  43.   IEApp.Path = Show Path to IE, Pfad anzeigen
  44.   IEApp.FullName = Full Path to IE, voller Pfad zum IE
  45.   IEApp.LocationURL = Get active Url, Aktuelle URL
  46. }
Parsed in 0.009 seconds, using GeSHi

_________________
"MAN BEHIND THE GUN"
Hidup ini sudah terlalu banyak masalah, Tambah satu masalah tidak jadi masalah.
Hidup ini simple, jgn dijadikan complex.
 
 View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger  
Reply with quote Back to top
mankermanOffline
Location:
Post subject: RE: Gimana Cara Bgeblok Sebuah Situs????  PostPosted: 17/Sep/2008 19:14
onIntermediate


Joined: 13-Sep-2008
Posts: 35

Status: Offline
thank's banget buat pencerahan,akan saya coba dulu.....!!!!thank's bngt bro...!!! Idea Idea Idea

_________________
========== www.saikiwae.com ==========
===============================
 
 View user's profile Send private message Send e-mail  
Reply with quote Back to top
mankermanOffline
Location:
23 Post subject: RE: Gimana Cara Bgeblok Sebuah Situs????  PostPosted: 18/Sep/2008 21:24
onIntermediate


Joined: 13-Sep-2008
Posts: 35

Status: Offline
sorry ngrepotin lagi za, Buat master delphi, kalau misalkan situs yang akan diblock itu kita ada dalam database itu gimana. maksud saya gini-ni misalkan situs yang tidak boleh diakses itu kita masukkan dalam sebuah data base jadi kita ga perlu repot2 lagi. pleasee.....!!!pencerahannya buat mastering delphi ....???? Question Idea Idea Question

_________________
========== www.saikiwae.com ==========
===============================
 
 View user's profile Send private message Send e-mail  
Reply with quote Back to top
madiOffline
Location:
Post subject: RE: Gimana Cara Bgeblok Sebuah Situs????  PostPosted: 19/Sep/2008 13:14
onProfessional


Joined: 30-Dec-2005
Posts: 527

Status: Offline
hehehee.....
ya disimpan dulu daftar situs yg mau diblock ke database dunk.
gunakan fungsi diatas untuk menquery database.
beres dah...Very Happy

_________________
"MAN BEHIND THE GUN"
Hidup ini sudah terlalu banyak masalah, Tambah satu masalah tidak jadi masalah.
Hidup ini simple, jgn dijadikan complex.
 
 View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger  
Reply with quote Back to top
mankermanOffline
Location:
Post subject: RE: Gimana Cara Bgeblok Sebuah Situs????  PostPosted: 13/Oct/2008 16:05
onIntermediate


Joined: 13-Sep-2008
Posts: 35

Status: Offline
thanks buat pencerahannya madi Embarassed Laughing

_________________
========== www.saikiwae.com ==========
===============================
 
 View user's profile Send private message Send e-mail  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 12 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic





Powered by PNphpBB2 © 2003-2009 The Zafenio Team
Credits


| Register | Lost Password ? |