Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Block a download
#1
Hello, i need to know how to block a file that is being downloaded.

example:

If my.computer.network.downloadfile("Example.com/file")
then (block the download)

i hope someone can answear this question
#2
Never tried to do this, seems like something Xolara would do though.
My Blog | My Setup | My Videos | Have a wonderful day.
#3
I can sure have a look at it when i have the time <!-- sSmile --><img src="{SMILIES_PATH}/icon_e_smile.gif" alt="Smile" title="Smile" /><!-- sSmile --> gf is using alot of it at the moment -.-'
Website: <!-- m --><a class="postlink" href="http://www.PBAProductions.com">http://www.PBAProductions.com</a><!-- m -->
E-Mail: <!-- e --><a href="mailtoTongueatrick@AriSystems.Org">Patrick@AriSystems.Org</a><!-- e -->
Skype: Qwaxer
Youtube: Qwaxer
[Image: 2hnx8av.jpg]
#4
Ok thanks beacuse im making a AntiVirus program (internet Security) and im gonna make a download filter that will block files like .exe .bat and other kind of files that can be malwares then you can choose if you want to block it or download itSmile then im gonna try to make a Email dont have any clue how to make one right nowXD but i guess i can find something at google <!-- sBig Grin --><img src="{SMILIES_PATH}/icon_e_biggrin.gif" alt="Big Grin" title="Very Happy" /><!-- sBig Grin -->
#5
For the Email do you mean you need so people can email you through the program? becourse i think brandon made a tutorial for that or else i think i have a project with it somewhere
Website: <!-- m --><a class="postlink" href="http://www.PBAProductions.com">http://www.PBAProductions.com</a><!-- m -->
E-Mail: <!-- e --><a href="mailtoTongueatrick@AriSystems.Org">Patrick@AriSystems.Org</a><!-- e -->
Skype: Qwaxer
Youtube: Qwaxer
[Image: 2hnx8av.jpg]
#6
I think he means, checking emails for viruses <!-- s:o --><img src="{SMILIES_PATH}/icon_e_surprised.gif" alt=":o" title="Surprised" /><!-- s:o -->
My Blog | My Setup | My Videos | Have a wonderful day.
#7
ahaaa <!-- sTongue --><img src="{SMILIES_PATH}/icon_razz.gif" alt="Tongue" title="Razz" /><!-- sTongue --> oh well i will sure have a look into it when i have time i think it will be tomorrow tho <!-- sSmile --><img src="{SMILIES_PATH}/icon_e_smile.gif" alt="Smile" title="Smile" /><!-- sSmile -->
Website: <!-- m --><a class="postlink" href="http://www.PBAProductions.com">http://www.PBAProductions.com</a><!-- m -->
E-Mail: <!-- e --><a href="mailtoTongueatrick@AriSystems.Org">Patrick@AriSystems.Org</a><!-- e -->
Skype: Qwaxer
Youtube: Qwaxer
[Image: 2hnx8av.jpg]
#8
This forum is much better then the msdn forum <!-- sBig Grin --><img src="{SMILIES_PATH}/icon_e_biggrin.gif" alt="Big Grin" title="Very Happy" /><!-- sBig Grin -->

im making a antivirus program and i want it to have a
-Download filter
-spyware and virus protection
-Email protection
- and maybe something more
<!-- sSmile --><img src="{SMILIES_PATH}/icon_e_smile.gif" alt="Smile" title="Smile" /><!-- sSmile -->

Im think im gonna make a video about the interface soonSmile
#9
Well I can't wait to see the video tour of your program. I always love seeing what people have created <!-- sBig Grin --><img src="{SMILIES_PATH}/icon_e_biggrin.gif" alt="Big Grin" title="Very Happy" /><!-- sBig Grin -->

Thanks for the compliment on the forum by the way <!-- sSmile --><img src="{SMILIES_PATH}/icon_e_smile.gif" alt="Smile" title="Smile" /><!-- sSmile -->
My Blog | My Setup | My Videos | Have a wonderful day.
#10
Well i want to make a really quick and light antivirus it should take so much power and be quick and easy to use <!-- sBig Grin --><img src="{SMILIES_PATH}/icon_e_biggrin.gif" alt="Big Grin" title="Very Happy" /><!-- sBig Grin -->

i will maybe create a topic about it so i can ask people what i should do and how to do do <!-- s:mrgreen: --><img src="{SMILIES_PATH}/icon_mrgreen.gif" alt=":mrgreen:" title="Mr. Green" /><!-- s:mrgreen: -->
#11
Hey

Kinda great news tomorrow i will begin on it <!-- sSmile --><img src="{SMILIES_PATH}/icon_e_smile.gif" alt="Smile" title="Smile" /><!-- sSmile -->
Website: <!-- m --><a class="postlink" href="http://www.PBAProductions.com">http://www.PBAProductions.com</a><!-- m -->
E-Mail: <!-- e --><a href="mailtoTongueatrick@AriSystems.Org">Patrick@AriSystems.Org</a><!-- e -->
Skype: Qwaxer
Youtube: Qwaxer
[Image: 2hnx8av.jpg]
#12
Ok niceSmile
#13
Okay im on the right direction at the moment so it wont be long before i got it right <!-- sBig Grin --><img src="{SMILIES_PATH}/icon_e_biggrin.gif" alt="Big Grin" title="Very Happy" /><!-- sBig Grin -->
Website: <!-- m --><a class="postlink" href="http://www.PBAProductions.com">http://www.PBAProductions.com</a><!-- m -->
E-Mail: <!-- e --><a href="mailtoTongueatrick@AriSystems.Org">Patrick@AriSystems.Org</a><!-- e -->
Skype: Qwaxer
Youtube: Qwaxer
[Image: 2hnx8av.jpg]
#14
Okay i think i got it or else you can try and work with it a little

Code:
Imports System.IO
Public Class Form1
    Sub BlockSite()
        Dim systempath As String = Environment.GetFolderPath(Environment.SpecialFolder.System)
        Dim Hosts As String = systempath & "\" & "Drivers" & "\" & "etc" & "\" & "hosts"
        Dim writer As New StreamWriter(Hosts)
        writer.Write(Environment.NewLine)
        writer.Write("127.0.0.1" + " " + " " + TextBox1.Text + vbNewLine)
        writer.Write("127.0.0.1" + " " + " " + TextBox2.Text + vbNewLine)
        writer.Write("127.0.0.1" + " " + " " + TextBox3.Text + vbNewLine)
        ListBox1.Items.Add(TextBox1.Text)
        ListBox1.Items.Add(TextBox2.Text)
        ListBox1.Items.Add(TextBox3.Text)
        writer.Write(Environment.NewLine)
        writer.Dispose()
    End Sub

Youtube Video: <!-- m --><a class="postlink" href="http://www.youtube.com/watch?v=uHkut4ay7kE">http://www.youtube.com/watch?v=uHkut4ay7kE</a><!-- m -->
This is to show what you will need so it the site will be most unlikely be able to be opened
Website: <!-- m --><a class="postlink" href="http://www.PBAProductions.com">http://www.PBAProductions.com</a><!-- m -->
E-Mail: <!-- e --><a href="mailtoTongueatrick@AriSystems.Org">Patrick@AriSystems.Org</a><!-- e -->
Skype: Qwaxer
Youtube: Qwaxer
[Image: 2hnx8av.jpg]
#15
Oh wow Xolara, this is genius. I'll have to use this in future projects <!-- sBig Grin --><img src="{SMILIES_PATH}/icon_e_biggrin.gif" alt="Big Grin" title="Very Happy" /><!-- sBig Grin -->
My Blog | My Setup | My Videos | Have a wonderful day.
#16
hehe Thanks <!-- sBig Grin --><img src="{SMILIES_PATH}/icon_e_biggrin.gif" alt="Big Grin" title="Very Happy" /><!-- sBig Grin -->
Website: <!-- m --><a class="postlink" href="http://www.PBAProductions.com">http://www.PBAProductions.com</a><!-- m -->
E-Mail: <!-- e --><a href="mailtoTongueatrick@AriSystems.Org">Patrick@AriSystems.Org</a><!-- e -->
Skype: Qwaxer
Youtube: Qwaxer
[Image: 2hnx8av.jpg]
#17
Thank you, i havent tried it out but i hope it works im gonna watch that movie and see what i can makeSmile
#18
I got a thing/code that can get all the downloadable files from a website and then show them in a listbox
url and local file names. do you think you can make some kind of saftey thing with this?
#19
How do remove the blocked websites xD?
#20
Go to your C:\WINDOWS\System32\drivers\etc\ and then the hosts file just delete everything there is in that file


and i will have a look into it
Website: <!-- m --><a class="postlink" href="http://www.PBAProductions.com">http://www.PBAProductions.com</a><!-- m -->
E-Mail: <!-- e --><a href="mailtoTongueatrick@AriSystems.Org">Patrick@AriSystems.Org</a><!-- e -->
Skype: Qwaxer
Youtube: Qwaxer
[Image: 2hnx8av.jpg]


Forum Jump:


Users browsing this thread: 1 Guest(s)