|
Furthermore, to add, if a user accesses the website via IP (if you reroute the domain instead of the IP) then the user will still be able to access the website.
To the OP: Have you tried blocking the websites from beyond the user-level, via your router or potentially server which is above the user-level?
|
|
|
|
|
If a website exposes its IP, it is considered a security flaw by many. Anyways, it is not easy to create a firewall isn't it? People with knowledge or curiosity would try to break that.
It's not necessary to be so stupid, either, but people manage it. - Christian Graus, 2009 AD
|
|
|
|
|
Every website exposes their IP, simply ping the domain name and you will get the server IP it is hosted on (gets more complicated if a pool of servers with various IPs host the website) but either way, you get the point.
|
|
|
|
|
Yes I do.
It's not necessary to be so stupid, either, but people manage it. - Christian Graus, 2009 AD
|
|
|
|
|
The only way to block websites, with any kind of security preventing the user from cirmuventing it, would be to properly setup a proxy server and your network to force any web browser to go through the proxy to get at the sites.
|
|
|
|
|
I have a little confusion on that, Well If use the proxy server to prevent a site for browsing then it will create a problem to work in a remote environment...You cannot connect any remote IP via proxy server...
Thanks
Md. Marufuzzaman
Don't forget to click [Vote] / [Good Answer] on the post(s) that helped you.
I will not say I have failed 1000 times; I will say that I have discovered 1000 ways that can cause failure – Thomas Edison.
|
|
|
|
|
Md. Marufuzzaman wrote: ...You cannot connect any remote IP via proxy server
If you're saying that you cannot use a proxy server to make a connection from inside the network to remote IP's, then you're wrong. Proxy servers do support Socks proxies. Whether or your applications support it is a whole other issue.
If you are referring to connecting from an outside IP to a machine inside the network, that's what your firewall and/or VPN server is for.
|
|
|
|
|
Thanks for your explanation, I don’t know but I face to connect / ping any remote IP via proxy server;
Thanks
Md. Marufuzzaman
Don't forget to click [Vote] / [Good Answer] on the post(s) that helped you.
I will not say I have failed 1000 times; I will say that I have discovered 1000 ways that can cause failure – Thomas Edison.
|
|
|
|
|
hello,
I am trying to hide the actions buttons in the title bar of a window.
I use user32.dll and I do
var style = GetWindowLong(pHandle, GWL_STYLE);
style = (int)(style & ~WS_SYSMENU & ~WS_BORDERICON );
SetWindowLong(pHandle, GWL_STYLE, style);
result = SetWindowPos(pHandle, IntPtr.Zero, 0, 0, 0, 0, SWP_FRAMECHANGED | SWP_NOMOVE | SWP_NOSIZE | SWP_NOZORDER);
The problem is that this code is execute in a different thread not the same thread which start my window application, so the setwindowlong bloc my application.
Does someone has got an idea?
Thanks in advance
|
|
|
|
|
If what you are trying to do is remove the Minimize, Maximize, Close and Normalize buttons, then "Form.ControlBox=false" is what you want. Beware though, it will remove the system menu as well.
No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced.
This message is made of fully recyclable Zeros and Ones
|
|
|
|
|
No the problem is that I start an application with Process.Start(file.exe)
I have no power on this application, I can't change controlBox
But I want to hide the actions buttons of this applciation window so I use user32.dll to do this
I am clear?
|
|
|
|
|
I think I see what you are trying, but I don't know if you can do it for any process - I certainly hope you can't as that would effectively give control of a process to another process. Not something I would realy want on my PC!
No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced.
This message is made of fully recyclable Zeros and Ones
|
|
|
|
|
yes I understand.
But it's strange because when I did it in the same thread I can do it...
|
|
|
|
|
You can't do that. Calling those functions will only work in the process/thread that called it.
C# also does not support the exports required of the .DLL Injection technique that could do this. You'd have to write that code in C++.
|
|
|
|
|
please help this program will check if the letters inputted are any number of "X" in the beginning and then any number of Y or no Y at all in the middle then any number of X in the end both x in the beginning and end must be the same numbers if it is valid or invalid..
#Valid inputs:
xxyxx , xyx , xxxx , xxxyyyyxxx, xx, xxxxyxxxx,
#invalid inputs:
xyxx , xxyx , yyyyyy , y , xxxxyx, xxxxy, yxxxxx
i managed to get all of them into there proper validity except the input "xx", "xxxxxxxx", xxxx... if there is no Y in the input if will have an error of "index out of range exception was unhandled ,index was outside the bounds of the array".... please help me correct it please here are the codes........
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace LanguageAcceptor
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
int countx1 = 0, countx2 = 0, i = 0, x = 0, y = 0, letterctr = 0;
char[] pew = textBox1.Text.ToCharArray();
int len = pew.Length;
while (i < len)
{
if(pew[i].Equals('x')||pew[i].Equals('y'))
letterctr++;
i++;
}
if(letterctr==0)
{
MessageBox.Show("Valid");
}
else if(letterctr == len){
if(pew[0].Equals('x')){
while(pew[x].Equals('x')){
if(x==len)break;
countx1++; x++;
}
Array.Reverse(pew);
while(pew[y].Equals('x')){
countx2++;
y++;
}
if(countx1==countx2){
MessageBox.Show("Valid");
}
else
MessageBox.Show("Invalid");
}
else
MessageBox.Show("Invalid");
}
else
MessageBox.Show("Invalid");
}
}
}
modified on Friday, October 9, 2009 10:05 AM
|
|
|
|
|
First off, read the instructions at the top of the page, where it says "How to get an answer to your question"
Secondly, change the subject "help me pls..........help me with my codes" to something a litle more descriptive.
Then, enclose your original code in <pre>...</pre> (or use the "code block" bit above the input text area - it does the same thing). This preserves the formatting and make it a whole lot easier to read your code. Nobody is going to want to wade through your spaggetti manually matching brackets and indents.
No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced.
This message is made of fully recyclable Zeros and Ones
|
|
|
|
|
You're right. I guess I took a look at it since I'm in good mood today
|
|
|
|
|
I looove his reply "what else is wrong? pls help"!
Ain't it just wonderful round here when the new students start their courses?
No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced.
This message is made of fully recyclable Zeros and Ones
|
|
|
|
|
Ah, it's that time of year again.. you're right!
|
|
|
|
|
Seriously.. Simple debugging of this code should give you the answer. I'll give you a hint on where you should start to check your logics.
while (pew[x].Equals('x'))
{
if (x == len) break;
countx1++; x++;
}
|
|
|
|
|
im not good in c# ... what else is wrong? pls help
|
|
|
|
|
This is not about being a good C# programmer or not - you would get the same problems in C, C++ and Java as well since it is your logics that fail when you try to access an array index beyond the arrays length.
And like someone else commented, I think there is a lot easier way of achieving what you are trying to do..
|
|
|
|
|
Much better! But when I said "your original code" what I meant was "your original code" i.e. with the formatting and indentation still in, not stripped out by your previous post! Whacking <pre></pre>round unformatted code just makes it pretty colours...
No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced.
This message is made of fully recyclable Zeros and Ones
|
|
|
|
|
I'd use a Regular Expression; but maybe your teacher wants you to do it the hard way?
|
|
|
|
|
I've written an addon for Firefox that I want to port to IE8. Unfortunately I'm having trouble getting to the right documentation and I've still not been able to figure out what language should I develop the BHO in. C++ or C#? Or are there other options too?
Any links to documentation and online resource that could help me would be appreciated.
|
|
|
|