Forum     

Go Back   Digit Technology Discussion Forum > Portables, Peripherals and Electronics > QnA (read only)
Register FAQ Calendar Mark Forums Read

QnA (read only) Mods please help transfer the contents of this forum to proper sections. :)


 
 
LinkBack Thread Tools Search this Thread Display Modes
Old 26-04-2008, 06:38 PM   #1 (permalink)
"Aal Izz Well"
 
Krazzy Warrior's Avatar
 
Join Date: Apr 2008
Location: Inside ur BRaIN..!!
Posts: 1,832
Unhappy 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.
Krazzy Warrior is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 26-04-2008, 08:26 PM   #2 (permalink)
"Aal Izz Well"
 
Krazzy Warrior's Avatar
 
Join Date: Apr 2008
Location: Inside ur BRaIN..!!
Posts: 1,832
Default 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
Krazzy Warrior is offline  
Old 26-04-2008, 08:33 PM   #3 (permalink)
Commander in Chief
 
QwertyManiac's Avatar
 
Join Date: Jul 2005
Posts: 6,658
Default 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
QwertyManiac is offline  
Old 26-04-2008, 09:35 PM   #4 (permalink)
Human Spambot
 
kumarmohit's Avatar
 
Join Date: May 2005
Location: Riding an Oliphaunt
Posts: 2,173
Default 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!
kumarmohit is offline  
Old 26-04-2008, 10:06 PM   #5 (permalink)
ico
.
 
ico's Avatar
 
Join Date: Jun 2007
Location: New Delhi
Posts: 8,929
Default 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....
__________________
.
ico is offline  
Old 26-04-2008, 10:46 PM   #6 (permalink)
TechTin.com
 
ravi_9793's Avatar
 
Join Date: Jun 2005
Location: www.TechTin.com
Posts: 4,090
Default Re: Banning Websites

This may help you.
http://www.techhunt.org/node/74

but will not generate any error like this.
ravi_9793 is offline  
Old 26-04-2008, 11:00 PM   #7 (permalink)
left this forum longback
 
praka123's Avatar
 
Join Date: Sep 2005
Location: -
Posts: 7,536
Default 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
praka123 is offline  
Old 26-04-2008, 11:07 PM   #8 (permalink)
The Devil's Advocate
 
iMav's Avatar
 
Join Date: Mar 2006
Location: Masti Ki Paathshaala
Posts: 7,019
Default 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
iMav is offline  
Old 26-04-2008, 11:15 PM   #9 (permalink)
NP : Crysis
 
xbonez's Avatar
 
Join Date: Mar 2007
Location: City 17
Posts: 1,434
Default 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
xbonez is offline  
Old 27-04-2008, 05:45 AM   #10 (permalink)
TechTin.com
 
ravi_9793's Avatar
 
Join Date: Jun 2005
Location: www.TechTin.com
Posts: 4,090
Default Re: Banning Websites

Quote:
Originally Posted by praka123 View Post
^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.
ravi_9793 is offline  
Old 27-04-2008, 11:20 AM   #11 (permalink)
Legen-wait for it-dary!
 
dheeraj_kumar's Avatar
 
Join Date: Dec 2004
Location: Chennai
Posts: 2,471
Default 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
dheeraj_kumar is offline  
Old 27-04-2008, 11:47 AM   #12 (permalink)
Google Bot
 
Pathik's Avatar
 
Join Date: Aug 2005
Posts: 9,772
Default 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
Pathik is offline  
Old 27-04-2008, 11:54 AM   #13 (permalink)
"Aal Izz Well"
 
Krazzy Warrior's Avatar
 
Join Date: Apr 2008
Location: Inside ur BRaIN..!!
Posts: 1,832
Default Re: Banning Websites

Quote:
Originally Posted by Pathik View Post
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
Krazzy Warrior is offline  
Old 27-04-2008, 02:29 PM   #14 (permalink)
"Aal Izz Well"
 
Krazzy Warrior's Avatar
 
Join Date: Apr 2008
Location: Inside ur BRaIN..!!
Posts: 1,832
Default 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
Krazzy Warrior is offline  
Old 27-04-2008, 02:50 PM   #15 (permalink)
Legen-wait for it-dary!
 
dheeraj_kumar's Avatar
 
Join Date: Dec 2004
Location: Chennai
Posts: 2,471
Default 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
dheeraj_kumar is offline  
Old 27-04-2008, 03:12 PM   #16 (permalink)
"Aal Izz Well"
 
Krazzy Warrior's Avatar
 
Join Date: Apr 2008
Location: Inside ur BRaIN..!!
Posts: 1,832
Default 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
Krazzy Warrior is offline  
Old 27-04-2008, 07:03 PM   #17 (permalink)
Legen-wait for it-dary!
 
dheeraj_kumar's Avatar
 
Join Date: Dec 2004
Location: Chennai
Posts: 2,471
Default 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
dheeraj_kumar is offline  
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Govt considers banning Youtube!! anispace Technology News 31 28-05-2007 01:51 PM
what is the funda of banning ip in bitcomet?? tango_cash Software Q&A 3 06-12-2006 02:29 PM
Is banning of networks justified? Apollo Fight Club 14 26-08-2006 05:34 AM
Bypass MIME Banning? GameAddict QnA (read only) 2 30-09-2004 01:42 PM

 
Latest Threads
- by clmlbx
- by ico
- by clinton
- by icebags
- by Charan

Advertisement




All times are GMT +5.5. The time now is 12:54 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2