Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Blocking websites in Delphi.

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Kevin
Grandmaster Cheater Supreme
Reputation: 0

Joined: 07 Mar 2007
Posts: 1139
Location: Spiderman-World

PostPosted: Tue Aug 14, 2007 9:50 am    Post subject: Blocking websites in Delphi. Reply with quote

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
View user's profile Send private message MSN Messenger
appalsap
Moderator
Reputation: 0

Joined: 27 Apr 2006
Posts: 6753
Location: Pakistan

PostPosted: Tue Aug 14, 2007 9:50 am    Post subject: Reply with quote

winsock hook
Back to top
View user's profile Send private message
Kevin
Grandmaster Cheater Supreme
Reputation: 0

Joined: 07 Mar 2007
Posts: 1139
Location: Spiderman-World

PostPosted: Tue Aug 14, 2007 9:54 am    Post subject: Reply with quote

It can't be done other ways?
Back to top
View user's profile Send private message MSN Messenger
HomerSexual
Grandmaster Cheater Supreme
Reputation: 5

Joined: 03 Feb 2007
Posts: 1657

PostPosted: Tue Aug 14, 2007 10:11 am    Post subject: Reply with quote

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
View user's profile Send private message
Trow
Grandmaster Cheater
Reputation: 2

Joined: 17 Aug 2006
Posts: 957

PostPosted: Wed Aug 15, 2007 6:52 pm    Post subject: Reply with quote

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
View user's profile Send private message
Ksbunker
Advanced Cheater
Reputation: 0

Joined: 18 Oct 2006
Posts: 88

PostPosted: Wed Aug 15, 2007 7:12 pm    Post subject: re: Reply with quote

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
View user's profile Send private message
appalsap
Moderator
Reputation: 0

Joined: 27 Apr 2006
Posts: 6753
Location: Pakistan

PostPosted: Wed Aug 15, 2007 7:19 pm    Post subject: Reply with quote

And that's the first place people look when they can't access a certain website.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites