Jump to content

[MERGED] Website blocker through hosts file


sc0rpi0

Recommended Posts

mkay =]

*cough*IE sucks*cough*

IE is an OK browser. Not the most secure though.

Would I use it for my own computer? Definitely not. However, IE 7 is not as bad as you make it out to be.

I personally use Mozilla Firefox. Most people I know use IE. So, of course I use that as the default when I am speaking to people.

Did rebooting fix your problem?

Link to comment
Share on other sites

*cough*IE sucks*cough*

*cough*cough* - Firefox licks my Nuts - *cough*cough*

Opera does 99% of what FireFox does by default WITHOUT the need for additional plugins, like NoScript.

And some sites only render in IE, so even if using the IE tab addon for FireFox is kind of redundant.

Any browser can be compromised and they all have their weaknesses, but IE is just as stable as any of the others if you know what your doing. Securing your PC and safe surfing habits are your best bet, with any browser for that matter, but if someone has a will, they will find a way to get to you, no matter what browser your using.

Link to comment
Share on other sites

*cough*IE sucks*cough*

*cough*cough* - Firefox licks my Nuts - *cough*cough*

Opera does 99% of what FireFox does by default WITHOUT the need for additional plugins, like NoScript.

And some sites only render in IE, so even if using the IE tab addon for FireFox is kind of redundant.

Any browser can be compromised and they all have their weaknesses, but IE is just as stable as any of the others if you know what your doing. Securing your PC and safe surfing habits are your best bet, with any browser for that matter, but if someone has a will, they will find a way to get to you, no matter what browser your using.

Now takign offesne from you aswell, that you assumed I'm a mozilla user, which I am but still...

i use opera problly more often than firefox myself, but using ie is almost never an option for me

maybe its just my browsers configuration that I dont feel like tampering with, but besides the

compromising secruity issues, pages load in FF alot faster than ie

Link to comment
Share on other sites

http://www.howtocreate.co.uk/browserSpeed.html#winspeed

I still think Opera is the fastest, aside from the fact that FF eats more memory than any other browser so it may cache pages faster after revisiting them. Mozilla is still faster than FF, which makes no sense since FF is built on Mozilla.

Link to comment
Share on other sites

Nice, Heres My version. Just a little enhancements, very simple.

@echo off
:menu
echo.
echo Xqtftqx Website Blocker
echo Block or Unblock? (B/U)
SET /P BU=
cls
if %bu% equ B goto block
if %bu% equ b goto block
if %bu% equ u goto unblock
if %bu% equ U goto unblock
echo %BU% Is unvailid
goto menu
:block
cls
echo Enter URL to block. No "www."
set /p block=
cls
echo Enter IP to redirect to. Use "default" for default ip.
set /p ip=
if %ip% equ default set ip=127.0.0.1
cls
attrib -r -s C:/windows/system32/drivers/etc/hosts
echo. >> C:/windows/system32/drivers/etc/hosts
echo ===[START XQTFTQX BLOCKER, %TIME%,%DATE%]=== >> c:windowssystem32driversetchosts
echo %ip% www.%block% >> C:/windows/system32/drivers/etc/hosts
echo %ip% %block% >> C:WINDOWSSYSTEM32DRIVERSETChosts
echo ===[END XQTFTQX BLOCKER,%TIME%,%DATE%]=== >> C:/windows/system32/drivers/etc/hosts
echo Blocked
pause >nul
exit
:unblock
cls
echo Delete the Line On the Hosts file.
notepad "C:/windows/system32/drivers/etc/hosts"
pause >nul
exit

A got a lot of the resources from yours so I did about 60% of the work. the other 40% is from yours.

Link to comment
Share on other sites

Nice, Heres My version. Just a little enhancements, very simple.

@echo off
:menu
echo.
echo Xqtftqx Website Blocker
echo Block or Unblock? (B/U)
SET /P BU=
cls
if %bu% equ B goto block
if %bu% equ b goto block
if %bu% equ u goto unblock
if %bu% equ U goto unblock
echo %BU% Is unvailid
goto menu
:block
cls
echo Enter URL to block. No "www."
set /p block=
cls
echo Enter IP to redirect to. Use "default" for default ip.
set /p ip=
if %ip% equ default set ip=127.0.0.1
cls
attrib -r -s C:/windows/system32/drivers/etc/hosts
echo. >> C:/windows/system32/drivers/etc/hosts
echo ===[START XQTFTQX BLOCKER, %TIME%,%DATE%]=== >> c:windowssystem32driversetchosts
echo %ip% www.%block% >> C:/windows/system32/drivers/etc/hosts
echo %ip% %block% >> C:WINDOWSSYSTEM32DRIVERSETChosts
echo ===[END XQTFTQX BLOCKER,%TIME%,%DATE%]=== >> C:/windows/system32/drivers/etc/hosts
echo Blocked
pause >nul
exit
:unblock
cls
echo Delete the Line On the Hosts file.
notepad "C:/windows/system32/drivers/etc/hosts"
pause >nul
exit

A got a lot of the resources from yours so I did about 60% of the work. the other 40% is from yours.

Nice job. Keep up the good work!

Link to comment
Share on other sites

http://www.howtocreate.co.uk/browserSpeed.html#winspeed

I still think Opera is the fastest, aside from the fact that FF eats more memory than any other browser so it may cache pages faster after revisiting them. Mozilla is still faster than FF, which makes no sense since FF is built on Mozilla.

I'm taking your word for it. I haven't used Opera yet.

Link to comment
Share on other sites

  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...