26-04-2008, 06:38 PM
|
#1 (permalink)
|
|
"Aal Izz Well"
Join Date: Apr 2008
Location: Inside ur BRaIN..!!
Posts: 1,832
|
Banning Websites
Hi Friends,
I want to Ban a particular website in my own pc so that no one can visit that website.
URL of the site:-
www.demonoid.com
I want to make something which will display an error just similar to this:-
Instead of youtube it must be replaced with the word Demonoid
Can u just explain me by giving steps that how to make this ?
Thanks in Advance
__________________
♥Coolest Kid♥
Last edited by Krazzy Warrior; 26-04-2008 at 08:27 PM.
|
|
|
|
Advertisements. Register and be a member of the community to get rid of them.
|
|
Advertisement
|
|
26-04-2008, 08:26 PM
|
#2 (permalink)
|
|
"Aal Izz Well"
Join Date: Apr 2008
Location: Inside ur BRaIN..!!
Posts: 1,832
|
Re: Banning Websites
2 Hours passed but No Replies.
Come on dude plz help me out.
__________________
http://webchat.freenode.net/?channels=krow
http://twitter.com/krazzywarrior
|
|
|
26-04-2008, 08:33 PM
|
#3 (permalink)
|
|
Commander in Chief
Join Date: Jul 2005
Posts: 6,658
|
Re: Banning Websites
Well I could suggest you a way to block a website essentially (Adding an entry to the HOSTS file) but to display message boxes like that (Which is from an infection, actually), is not considered good.
Are you looking to scare your fellow 14 year olds?
__________________
Harsh J
www.harshj.com
|
|
|
26-04-2008, 09:35 PM
|
#4 (permalink)
|
|
Human Spambot
Join Date: May 2005
Location: Riding an Oliphaunt
Posts: 2,173
|
Re: Banning Websites
Wasnt this supposed to stop Orkut, seems like someone modded it to stop youtube too.
__________________
The real and only freedom is Public Domain. Everything else in unfree! Even those who claim to be the self styled evangelists of freedom are not free because freedom cannot be forced by any means!
|
|
|
26-04-2008, 10:06 PM
|
#5 (permalink)
|
|
.
Join Date: Jun 2007
Location: New Delhi
Posts: 8,929
|
Re: Banning Websites
Lol...The screenshot which you gave was of some sort of Virus which also used to block Firefox.....If I'm correct
One thing you can do is make a rule in your Firewall to block the site.
Anyways, those Demonoid torrents are available on many Torrent search engines....
__________________
.
|
|
|
26-04-2008, 10:46 PM
|
#6 (permalink)
|
|
TechTin.com
Join Date: Jun 2005
Location: www.TechTin.com
Posts: 4,090
|
Re: Banning Websites
This may help you.
http://www.techhunt.org/node/74
but will not generate any error like this.
|
|
|
26-04-2008, 11:00 PM
|
#7 (permalink)
|
|
left this forum longback
Join Date: Sep 2005
Location: -
Posts: 7,536
|
Re: Banning Websites
^why?Isnt that the same QWERTY posted 
there should be some script that invokes a dialog( youtbe blah MUHAHA) which is what he wants?
__________________
left this forum long back.Admin Can Delete this Account and posts Permanantly.Thank You
Get GNU/Linux - http://getgnulinux.org
|
|
|
26-04-2008, 11:07 PM
|
#8 (permalink)
|
|
The Devil's Advocate
Join Date: Mar 2006
Location: Masti Ki Paathshaala
Posts: 7,019
|
Re: Banning Websites
^^ for that i would guess get hold of the virus and edit it
__________________
"The problem that shows up with the three red lights on the console is a complex interaction with some very complex parts.” - Robbie Bach
http://beingmanan.com
twitter: manan | Last.FM: manan
|
|
|
26-04-2008, 11:15 PM
|
#9 (permalink)
|
|
NP : Crysis
Join Date: Mar 2007
Location: City 17
Posts: 1,434
|
Re: Banning Websites
^^lol...best idea
__________________
Gaming: Phenom II x4 965BE @ 3.6Ghz/Corsair H50 Liquid Cooling/MSI 790FX-GD70/2x2GB GSkill Ripjaws 7-7-7-24/3 x GTX 470 w/Zalman VF3000F/Corsair 850W PSU/Antec 1200/2xSpinpoint F3 500Gb RAID 0
|
|
|
27-04-2008, 05:45 AM
|
#10 (permalink)
|
|
TechTin.com
Join Date: Jun 2005
Location: www.TechTin.com
Posts: 4,090
|
Re: Banning Websites
Quote:
Originally Posted by praka123
^why?Isnt that the same QWERTY posted 
there should be some script that invokes a dialog( youtbe blah MUHAHA) which is what he wants?
|
I think .NET programming is needed for that.
|
|
|
27-04-2008, 11:20 AM
|
#11 (permalink)
|
|
Legen-wait for it-dary!
Join Date: Dec 2004
Location: Chennai
Posts: 2,471
|
Re: Banning Websites
You can do this if you know some programming, I suppose. Check for a tcp outbound connection, and if the URL is demonoid, then stop the connection, and display an error. I havent done anything like this, this is just theoritical.
besides, demonoid is useful  why would you want to block it?
__________________
If the Start Windows Restart when Windows starts check box is checked Windows Restart will start automatically every time Windows is started. - Actual excerpt from a windows program help file
|
|
|
27-04-2008, 11:47 AM
|
#12 (permalink)
|
|
Google Bot
Join Date: Aug 2005
Posts: 9,772
|
Re: Banning Websites
Learn Vbscript if you are on windows. The orkut muhaha thingy was done in Ahk. And it was quite easy actually.
__________________
My new blog: www.pathikshah.com
|
|
|
27-04-2008, 11:54 AM
|
#13 (permalink)
|
|
"Aal Izz Well"
Join Date: Apr 2008
Location: Inside ur BRaIN..!!
Posts: 1,832
|
Re: Banning Websites
Quote:
Originally Posted by Pathik
Learn Vbscript if you are on windows. The orkut muhaha thingy was done in Ahk. And it was quite easy actually.
|
Can u just provide the steps if it is so easy ?
Plz
__________________
http://webchat.freenode.net/?channels=krow
http://twitter.com/krazzywarrior
|
|
|
27-04-2008, 02:29 PM
|
#14 (permalink)
|
|
"Aal Izz Well"
Join Date: Apr 2008
Location: Inside ur BRaIN..!!
Posts: 1,832
|
Re: Banning Websites
Quote:
ifwinactive ahk_class IEFrame
{
ControlGetText,ed,Edit1,ahk_class IEFrame
ifinstring,ed,demonoid
{
winclose ahk_class IEFrame
msgbox,262160,Banned!!!,30
return
}
ControlGetText,ed,Edit2,ahk_class IEFrame
ifinstring,ed,demonoid
{
winclose ahk_class IEFrame
msgbox,262160,Banned!!!,30
return
}
ControlGetText,ed,Edit3,ahk_class IEFrame
ifinstring,ed,demonoid
{
winclose ahk_class IEFrame
msgbox,262160,Banned!!!,30
return
}
ControlGetText,ed,Edit4,ahk_class IEFrame
ifinstring,ed,orkut
{
winclose ahk_class IEFrame
msgbox,262160,Banned!!!,30
return
}
}
|
what i have to do with these code i.e where to put this code plz provide me the steps.
__________________
http://webchat.freenode.net/?channels=krow
http://twitter.com/krazzywarrior
|
|
|
27-04-2008, 02:50 PM
|
#15 (permalink)
|
|
Legen-wait for it-dary!
Join Date: Dec 2004
Location: Chennai
Posts: 2,471
|
Re: Banning Websites
UPDATED CODE!!!!!
Its quite easy. But this only works with IE as of now. If you want it to work with more browsers, you need to get their classnames and configure the script, thats all.
Code:
Loop
{
IfWinExist ahk_class IEFrame
{
Loop, 4
{
ControlGetText, temp, Edit%A_Index%, ahk_class IEFrame
IfInString, temp, demonoid
{
WinKill ahk_class IEFrame
MsgBox 262160, Error, This site is banned!!!, 30
}
}
}
}
This is simple to understand, if you dont, i can explain. Try to understand it first. You need AHK from www.autohotkey.com
Look at the documentation and try to figure out whats what. This works
PS: why ban demonoid? can you tell me? its quite useful
Save this into a .ahk file and run it. Compile it with AHK if you want and put it in startup.
__________________
If the Start Windows Restart when Windows starts check box is checked Windows Restart will start automatically every time Windows is started. - Actual excerpt from a windows program help file
Last edited by dheeraj_kumar; 27-04-2008 at 02:55 PM.
Reason: Updated code
|
|
|
27-04-2008, 03:12 PM
|
#16 (permalink)
|
|
"Aal Izz Well"
Join Date: Apr 2008
Location: Inside ur BRaIN..!!
Posts: 1,832
|
Re: Banning Websites
What I did after reading ur post:-
Quote:
|
Installed AutoHotKey software > opened notepad > copy - pasted your code > saved as test.ahk in my document > open that file > open IE > type www.demonoid.com > press enter > it open demonoid
|
Any mistake that I did ?
__________________
http://webchat.freenode.net/?channels=krow
http://twitter.com/krazzywarrior
|
|
|
27-04-2008, 07:03 PM
|
#17 (permalink)
|
|
Legen-wait for it-dary!
Join Date: Dec 2004
Location: Chennai
Posts: 2,471
|
Re: Banning Websites
Sheesh... you are supposed to RUN that script. Right click the script and run. But you cant stop it that way. So, Compile the script into a EXE, and now you run it. Whenever you want to quit, just end task the exe. Of course, one could add a hotkey combination for ending it, but the security purpose will not be served. Well, but if I include a password protection... Well, too many thoughts. Try it out, request whatever features you want. I'll try to do them. I have had quite some experience with AHK and AutoIt, so I guess I could help.
__________________
If the Start Windows Restart when Windows starts check box is checked Windows Restart will start automatically every time Windows is started. - Actual excerpt from a windows program help file
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|
|