Banning Websites

Status
Not open for further replies.

Krazzy Warrior

"Aal Izz Well"
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:-

*www.imgx.org/pfiles/7210/untitled.JPG

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:

QwertyManiac

Commander in Chief
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?
 

skeletor

Chosen of the Omnissiah
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....
 

praka123

left this forum longback
^why?Isnt that the same QWERTY posted :?:
there should be some script that invokes a dialog( youtbe blah MUHAHA) which is what he wants?
 

dheeraj_kumar

Legen-wait for it-dary!
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 :D why would you want to block it?
 

Pathik

Google Bot
Learn Vbscript if you are on windows. The orkut muhaha thingy was done in Ahk. And it was quite easy actually.
 
OP
Krazzy Warrior

Krazzy Warrior

"Aal Izz Well"
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.
 

dheeraj_kumar

Legen-wait for it-dary!
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 :D

PS: why ban demonoid? can you tell me? its quite useful :D

Save this into a .ahk file and run it. Compile it with AHK if you want and put it in startup.
 
Last edited:
OP
Krazzy Warrior

Krazzy Warrior

"Aal Izz Well"
What I did after reading ur post:-

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 ?
 

dheeraj_kumar

Legen-wait for it-dary!
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.
 
Status
Not open for further replies.
Top Bottom