Important alert: (current site time 7/16/2013 3:15:38 AM EDT)
 

winzip icon

Block This v2.0

Email
Submitted on: 3/2/2001 8:16:28 PM
By: Christopher Streva 
Level: Intermediate
User Rating: By 26 Users
Compatibility: VB 6.0
Views: 26431
(About the author)
 
     The purpose of Block This is to show off one of the many exploits available for poorly coded URL filtering applications/proxies. It is very easy to use and can help anyone who is interested in creating some form of URL blocking program. In this new version of Block This (v2.0), the code is much smaller than it used to be. It also is easier for someone to understand if they wish to buils a similar application using my code as an example. If you like this code and you can put it to good use, please vote for it. I spent a long time fixing this code up and nothing would make me feel better than to know that people can make use of it. Special thanks to Adam Wechsler who was a big help in cleaning up the application!

 
winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzip to decompress it.Virus note:All files are scanned once-a-day by Planet Source Code for viruses, but new viruses come out every day, so no prevention program can catch 100% of them. For your own safety, please:
  1. Re-scan downloaded files using your personal virus checker before using it.
  2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.
  3. Scan the source code with Minnow's Project Scanner

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com

 
Terms of Agreement:   
By using this code, you agree to the following terms...   
  1. You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
  2. You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
  3. You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
  4. You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.

Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Intermediate category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments

3/3/2001 4:17:45 PMChristopher Streva

Love it? Hate it? Have any suggestions?

Do me a favor and add in your comments. Please, SPEAK YOUR MIND! I won't make me mad, it will just make me want to fix the program. Who knows, you might be on the special thanks list for the next version of Block This.
(If this comment was disrespectful, please report it.)

 
3/4/2001 7:12:46 PMMAGiC MANiAC^mTo

Can you now add in the next version a demonstration how to use this code in a application that blocks the unwanted urls in Internet Explorer?...

Keep on going...
Code looks great!...

(If this comment was disrespectful, please report it.)

 
3/4/2001 10:00:02 PMChristopherStreva

That's the best use I could ever make of this code. Thank you very much MagicManiac, you'll be on the special thanks list for that application for sure!
(If this comment was disrespectful, please report it.)

 
3/5/2001 9:15:49 PMMike Metral

Wow! this program's bad
(If this comment was disrespectful, please report it.)

 
3/5/2001 9:18:20 PMMike Metral

J/k about my last message, this program's great it works very well!! nice coding too!!!
(If this comment was disrespectful, please report it.)

 
3/5/2001 9:19:37 PMChristopher Streva

Thanks mike!
(If this comment was disrespectful, please report it.)

 
3/5/2001 9:23:27 PMChristopher Streva

why is everyone who voted named mike?

(If this comment was disrespectful, please report it.)

 
3/8/2001 1:58:37 PMPizzan

Good code! Very useful and easy to use. Keep on coding!
(If this comment was disrespectful, please report it.)

 
3/9/2001 2:04:00 PMBubba666

Not that useful, but still cool....
(If this comment was disrespectful, please report it.)

 
4/6/2001 1:33:53 PMChristopher Streva

I'd really like to thank aall the people who voted for my application and I'm glad you could make good use of it. Please leave any comments you may have to help me out in future versions of this program.
(If this comment was disrespectful, please report it.)

 
4/8/2001 8:14:40 AMDave

I love it! I love going on hacking sites at school.
(If this comment was disrespectful, please report it.)

 
4/8/2001 4:18:17 PMChristopher Streva

That was basicly the entire reason for building this. Some sites on URL filtering apps are filtered unjustly and that's not my idea of protecting a child from the net.
(If this comment was disrespectful, please report it.)

 
4/9/2001 11:35:33 AMPaul Pickard

Great Application! Now I can show off at school by opening websites that are blocked! Just one thing, what use is the Binary and Decimal conversion?
(If this comment was disrespectful, please report it.)

 
4/9/2001 2:00:45 PMChristopher Streva

That's what allows you to bypass the filering apps. Most filters can't detect the URL manipulation.
(If this comment was disrespectful, please report it.)

 
4/24/2001 11:39:57 PMTed Parker

I think this code converts a url to digits and that you can then enter the digits into the url address box of your browser and it will go to the address?

I've tried it on a system with a firewall and one without a firewall and get the same general error site not fond message from the browser.

What am I doing wrong?

Thanks, Ted

(If this comment was disrespectful, please report it.)

 
4/25/2001 1:54:02 PMChris Streva

You're probably puting in a full scale URL instead of just a domain. A domain would be Yahoo.com, and you're probably puting in something like yahoo.com/rm/1.

If this isn't the case please tell me. In the new block this i will show you the unlimited possibilities of block this so that you can use it to your advantage.
(If this comment was disrespectful, please report it.)

 
4/25/2001 10:29:45 PMTed Parker

Hello Again,

No, I'm entering like you say to do. I believe the problem must be with a browser setting?

Your program creates http://3631443189 for yahoo.com. I enter this into the browser address window and then the browser comes back with the general failure to find that address. I am using IE6 from Microsoft as my browser.

Thanks for looking into it. It must be pretty neat to be able to access pages that are normally not available!

Ted Parker
ted@aol.com

(If this comment was disrespectful, please report it.)

 
4/26/2001 11:47:11 AMSimon

when i enter yahoo.com, or any other site, as the url i get the you screwed up msgbox. But it does work when i enter the ip address of our proxy as the url. does any body have any idea why
that might be?

(If this comment was disrespectful, please report it.)

 
4/26/2001 6:15:43 PMChris Streva

The problem lies within the fact you're using IE6. It eliminated the possibility of accessing converted URLs so URL filtering apps cannot be bypassed. Try it with netscape or IE5 or earlier.
(If this comment was disrespectful, please report it.)

 
4/27/2001 11:41:52 AMSergey

Hey dude, great program. Great example on how to convert numbers.
I would think that if there's a proxy that filters URLs, you won't be able to get IP address this way, the proxy won't let you connect to port 80, but you can probably do nslookup or ping to get an IP.
If all you want to do is to convert IPs to decimals you can use the following code:
Dim strIP As String
Dim idx As Long
Dim ar As Variant
Dim cur(3) As Currency

ar = Split(txtIP.Text,
(If this comment was disrespectful, please report it.)

 
4/27/2001 11:43:56 AMSergey

Dim strIP As String
Dim idx As Long
Dim ar As Variant
Dim cur(3) As Currency

ar = Split(txtIP.Text, ".")
If IsArray(ar) Then
For idx = 0 To 3
cur(idx) = CCur(ar(idx)) * (256 ^ (3 - idx))
Next idx
txtFinalURL.Text = "http://" & CStr(cur(0) + cur(1) + cur(2) + cur(3))
End If
(If this comment was disrespectful, please report it.)

 
4/27/2001 1:49:39 PMChris Streva

Actually, the proxy is only utilized through browsers such as Netscape and IE, you cannot place a proxy over every connection made by a PC, that would be a firewall.
(If this comment was disrespectful, please report it.)

 
10/23/2002 12:34:51 AMChad Gutowsky

Slickness.... Good job....
(If this comment was disrespectful, please report it.)

 
2/15/2003 4:24:08 PMFredrick Turner

Your code worked FLAWLESS...I have a few ideas for it's use...!
Thanx for sharing this code with everyone here at PSC
(If this comment was disrespectful, please report it.)

 
2/15/2003 4:26:12 PMFredrick Turner

Your code worked FLAWLESS... I'll just like to thank you for sharing it with all of us here at PSC...
(If this comment was disrespectful, please report it.)

 
9/2/2003 7:04:42 AMChristopher Streva

Thank you very much :)
(If this comment was disrespectful, please report it.)

 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)
 

To post feedback, first please login.