Results 1 to 1 of 1
  1. #1
    Soccer <3
    Tryhard Noob
    xXxPANCAKESxXx's Avatar
    Join Date
    Aug 2011
    Location
    My Meth Lab
    Posts
    531
    Points
    647
         User Info     Contact     Gamer ID
    Join Date
    Aug 2011
    Location
    My Meth Lab
    Posts
    531
    Points
    647

    Contact info:

    Youtube Channel: http://www.youtube.com/xXPANCAKESXxFTW

    Default [Help] Website Block (.bat)

    -Fixed-

    This is me being SARCASTICThanks for all your help guys! Couldn't have done it without you!


    Will post script when I'm on my home computer...

    Code:
    @echo off
    title Website Blocker (C)xXxPANCAKESxXx
    :no
    cls
    set /p url= Please type in the Website URL you would like to block: 
    if %url%== %url% goto :url
    :url
    cls
    set /p block= Are you sure you want to block "%url%"? Answer "Yes" or "No": 
    if /i '%block%'== 'Yes' goto yes
    if /i '%block%'== 'No' goto no
    :yes
    cls
    ping %url%
    echo.
    echo.
    set /p ip= Please enter the IP address shown above: 
    if %ip%== %ip% goto ip
    :ip
    echo.
    echo.
    set /p confirm= Is this the websites IP address %ip%? "Yes" or "No": 
    if /i '%confirm%'== 'Yes' goto 1yes1
    if /i confirm%'== 'No' goto yes
    :1yes1
    cd "C:\Windows\System32\Drivers\etc"
    echo %ip% %url% >> "Hosts"
    echo %ip% %url% >> "Hosts"
    cls
    echo Done.
    pause
    cls
    set /p test= Would you like to test to see if the webpage was blocked? Answer "Yes" or "No": 
    if '%test%'== 'Yes' goto test
    if '%test%'== 'yes' goto test
    if '%test%'== 'No' goto cancel
    if '%test%'== 'no' goto cancel
    :test 
    start %url%
    cls
    :cancel
    set /p done= Would you like to block another website? Answer "Yes" or "No": 
    if /i '%done%'== 'Yes' goto no
    if /i '%done%'== 'No' goto done

    0 Not allowed! Not allowed!
    Last edited by xXxPANCAKESxXx; 07-17-2012 at 05:26 AM. Reason: Added *working* script....



    Site Links:
    Staff | Rules | Content Guidelines | Wiki | User CP
    ____________________________________________

    Tryhard Grammar Nazi
    Pancakes? Who the fuck is this kid?

    [My Wii Friend Codes]
    [My Youtube Channel]
    @[TWITTER]xXPANCAKESXxFTW[/TWITTER]
    ____________________________________________

    Quote Originally Posted by Eminem
    I say what I want to say and do what I want to do. There`s no in between. People will either love you for it or hate you for it.

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -10. The time now is 12:39 AM.
Powered by vBulletin®
Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.