| View previous topic :: View next topic |
| Author |
Message |
Kevin Grandmaster Cheater Supreme
Reputation: 0
Joined: 07 Mar 2007 Posts: 1139 Location: Spiderman-World
|
Posted: Tue Aug 14, 2007 9:50 am Post subject: Blocking websites in Delphi. |
|
|
I want to block a certain url using a click in delphi.
How can i do this? I tried googling but it comes up with some faggot software.
I wanna make it myself, not download it. |
|
| Back to top |
|
 |
appalsap Moderator
Reputation: 0
Joined: 27 Apr 2006 Posts: 6753 Location: Pakistan
|
Posted: Tue Aug 14, 2007 9:50 am Post subject: |
|
|
| winsock hook |
|
| Back to top |
|
 |
Kevin Grandmaster Cheater Supreme
Reputation: 0
Joined: 07 Mar 2007 Posts: 1139 Location: Spiderman-World
|
Posted: Tue Aug 14, 2007 9:54 am Post subject: |
|
|
| It can't be done other ways? |
|
| Back to top |
|
 |
HomerSexual Grandmaster Cheater Supreme
Reputation: 5
Joined: 03 Feb 2007 Posts: 1657
|
Posted: Tue Aug 14, 2007 10:11 am Post subject: |
|
|
you can hardcode it in like
if (Browser1.Url = www.hotgaysthatidontwantonmyinternet.ew) then
begin
{do
stuff}
end;
or make a listbox and make it invisible and it checks that listbox and if a site is there then blockage _________________
|
|
| Back to top |
|
 |
Trow Grandmaster Cheater
Reputation: 2
Joined: 17 Aug 2006 Posts: 957
|
Posted: Wed Aug 15, 2007 6:52 pm Post subject: |
|
|
or you can FindWindow every window that's a browser (control), then search within your browsers if any of them originates from your url... blah blah blah. _________________
Get kidnapped often. |
|
| Back to top |
|
 |
Ksbunker Advanced Cheater
Reputation: 0
Joined: 18 Oct 2006 Posts: 88
|
Posted: Wed Aug 15, 2007 7:12 pm Post subject: re: |
|
|
http://www.swcp.com/~manos/blockads.html
Google "hosts file"
You can redirect certains urls to specific IPs.
You can even redirect certain ips or urls to localhost, thus blocking them.
WriteFile, ReadFile, SetFilePointer.
No need to winsock hooks. |
|
| Back to top |
|
 |
appalsap Moderator
Reputation: 0
Joined: 27 Apr 2006 Posts: 6753 Location: Pakistan
|
Posted: Wed Aug 15, 2007 7:19 pm Post subject: |
|
|
| And that's the first place people look when they can't access a certain website. |
|
| Back to top |
|
 |
|