1.

Solve : Create batch file that deny access to certain websites?

Answer»

Hi everyone, I'm trying to create a batch file that stop the end user surfing some specific website such as adult website. I heard that we have to find the ip ADDRESS of that website and copy it to the batch file with some commands but I don't know how to do that. I'm new to MS-DOS. If you have any good resources that can help, it would be great. I don't mind reading.
Thanks!!!What is My IP Address?

http://whatismyipaddress.com/?gclid=COapzPqSzJ0CFQ8MDQodHC4_rA

khuynh, you want to find out the ip addresses of adult websites? hmmm.....

Seriously, it is easy to block ACCESS to a web url such as www.bikinbabes.com, less easy to block access to an ip address.

It seems that Billrich thinks you want to find out your own ip address, but I am sure that when he gets around to actually reading your post properly he'll want to tell you to add the urls of the adult websites to your HOSTS file. If you search on Google for "Windows HOSTS file format" you will see lots of information about how to block access to a given web site this way.

However since the HOSTS file can be manipulated by people such as hackers many system admins (and all SENSIBLE ones) deny access to ordinary users


Quote from: SALMON Trout on October 20, 2009, 01:40:05 PM

khuynh, you want to find out the ip addresses of adult websites? hmmm.....

Seriously, it is easy to block access to a web url such as www.bikinbabes.com, less easy to block access to an ip address.

Add the urls of the adult websites to your HOSTS file. If you search on Google for "Windows HOSTS file format" you will see lots of information about how to block access to a given web site this way.

However since the HOSTS file can be manipulated by people such as hackers many system admins (and all sensible ones) deny access to ordinary users


Thank you Salmon Trout on how to block access to Porn sites. If I understand your instructions: We don't need the IP address of the porn site.
URL ( the site address ) is what is blocked.

A grandson or son can easily reverse the Block. The Porn sites are out of control and a better screen is needed.

Thanks again Salmon Trout for your professional advise.So what is your suggestion? To block an ip address requires additional software such as a firewall.

Quote from: The OP
I'm trying to create a batch file that stop the end user surfing some specific website such as adult website.

Add the url that you wish to block to HOSTS then make HOSTS readonly and hidden, finally deny admin provileges to the relevant users.
i believe this wiki page has the right information of hosts and blocking sites, as well as other information of hostsThanks everyone. I'll give it a shot... Alright!!!! I did it. Thanks alot everyone. Quote from: khuynh on October 21, 2009, 09:40:40 PM
Thanks everyone. I'll give it a shot...

How did you block all Porn sites? Can anyone remove your Block?


http://www.netdogsoft.com


Discussion

No Comment Found