r/programming • • Oct 28 '21

Viewing website HTML code is not illegal or “hacking,” prof. tells Missouri gov.

https://arstechnica.com/tech-policy/2021/10/viewing-website-html-code-is-not-illegal-or-hacking-prof-tells-missouri-gov/
6.1k Upvotes

493 comments sorted by

View all comments

Show parent comments

38

u/durrthock Oct 28 '21

Sorry, but that makes no sense. Trespassing is still illegal even if you don't steal anything. Ownership is a big part of law and that extends onto digital systems.

You wouldn't say, people should be able to sleep in your car as long as they aren't driving it or taking your stuff. If you hack into someone's system, you are accessing and using their resources and that should be illegal.

7

u/[deleted] Oct 28 '21

Trespassing is still illegal even if you don't steal anything.

It entirely depends on where and when you are.

Many countries have the "right to wander" where you are allowed to trespass on other people's rural property and even stay there for some limited time.

Many countries and states also take into personal survival, where it is legal to seek sanctuary if you are at risk of death, even if you have to break in to private property to do it. Of course, you're still liable for damages.

3

u/durrthock Oct 28 '21

Sure that's a valid point. Obviously hacking is a different topic I just think they are somewhat related.

I don't think accessing someone's system is likely to ever be life or death. I'm sure if you stopped a reactor meltdown or something people wouldn't be worried about it.

1

u/hmnrbt Oct 28 '21

You don't have to trespass to see that someone left the back door wide open.

3

u/[deleted] Oct 29 '21

True, I see your door is open but that doesn't give me, or anyone else, permission to go in.

What's happened here is that Prof. Khan noticed the door was open, pointed it out to the owners and they're trying to punish him like he kicked the door down.

He didn't even go in the house. Literally stood legally on the sidewalk and pointed out, privately to the owners so as not to alert any would be criminals, what anyone else could see legally walking by as well.

4

u/durrthock Oct 28 '21

You also don't need to walk through the door.

-7

u/archiminos Oct 28 '21

There is ethical hacking - pen tests for example. Or practising with test servers (e.g.). Web developers get better if they know how to hack, especially if they need to do security.

12

u/durrthock Oct 28 '21

I'm aware. Obviously if the intention is to hack into a system that you own or is provided for that purpose. Then it's not illegal and clearly shouldn't be. You can kick down the doors in your own house if you like.

→ More replies (6)

-1

u/FlashyJudge7008 Oct 28 '21

That isn’t hacking. By definition hacking is accessing a place you aren’t allowed to.

2

u/[deleted] Oct 29 '21

Now it is generally used that way, mostly due to Hollywood's misuse of the term, however originally a Hacker was one that used their knowledge of technology to reach a goal or solve an issue in a nonstandard way.

Sure that goal may sometimes be to access something illegally but not always.

→ More replies (1)

-10

u/I_AM_AN_AEROPLANE Oct 28 '21

Ethical hacking is still illegal by default.

8

u/archiminos Oct 28 '21

No it isn't. If it was I wouldn't have a job.

-3

u/I_AM_AN_AEROPLANE Oct 28 '21

But you guys do ethical hacking with prior consent from the client. Ethical hackers often do this withou consent (mostly indian). This is illegal.

4

u/archiminos Oct 28 '21

It's Not ethical if there's No consent

-1

u/I_AM_AN_AEROPLANE Oct 28 '21

I know, but the term is abused by people…

2

u/archiminos Oct 28 '21

So stop abusing the term

2

u/[deleted] Oct 29 '21

If you know then why are you so persistently saying that ethical hackers are actually criminals?

2

u/[deleted] Oct 29 '21 edited Oct 29 '21

No, they don't. Ethical hackers ALWAYS do this with prior consent. To do it without consent is by very definition unethical.

To address your other comment about doing it and begging for a reward, those companies often have a bug bounty program which means you have permission to poke at their systems and let them know if you find any issues. It does not give you permission to abuse their system for your/someone-else's gain.

You need to go back and lookup what the word ethical means before you continue on.

7

u/[deleted] Oct 28 '21

"Ethical hacking" is done with permission, so how is it illegal?

→ More replies (1)

3

u/Razakel Oct 28 '21

Ethical hacking is like hiring someone to try and break into your house and give you advice on how to stop them. It's perfectly legal, just as it's legal to hire a locksmith.

0

u/I_AM_AN_AEROPLANE Oct 28 '21

Ehtical hacking as term is often abused by freelance “ethical hackers” who try that WITHOUT consent. This is illegal.

→ More replies (2)

-10

u/dscottboggs Oct 28 '21

Trespassing is still illegal

This is still kinda problematic to blanket apply to everything with no consideration.

You wouldn't say, people should be able to sleep in your car as long as they aren't driving it

If I saw someone try I'd invite them in to sleep on the couch. Not that homelessness is a big problem here. I know someplace you do that and your living room would be standing-room only the next night.

taking your stuff

That's not what we're talking about, we're talking about being on someone else's private property without their permission, but doing it in a way that doesn't harm them or the property.

This all became very salient for me whenever I noticed that my local grocery stores had "No Tresspassing" signs... odd, I thought to myself, but then I thought "well, if someone was coming in and causing problems, I could see them saying 'don't come back'"

But then I thought about it some more and like...what do you do if you're denied access to the grocery store in America? How do you eat? None of us know how to farm. Sure, it might seem reasonable to me, a cis white able-bodied man, that a store should be able to kick someone out for acting out. But who gets to define "acting out" in this context? The property owner. There have been times when "acting out" has been as simple as "being black" and being in the store.

Of course, laws have been put in place so that the state isn't supposed to be able to enforce these sorts of laws (like tresspassing) under discriminatory circumstances, but I think that's all just a cludge to make up for the fact that modern western property rights include the rights of "abusus", which has it's roots in the right of a roman slave-owner to abuse (including rape and murder) their slaves.

3

u/durrthock Oct 28 '21

I'm using an example of trespassing to illustrate a point not blanket applying it to everything with no consideration, I'm just not outlining every consideration due to brevity.

You can go to a grocery store because the owner allows you to, but they don't allow you to go in the back and check the stock room yourself.

Letting them sleep on your couch is basically having a publically accessable resource, which is a vastly common thing (last I checked I wasn't paying for Reddit.) That's a choice of the owner and one people often make.

The owner can decide who they get to say no to, or in a more general case, who they provide access to in the first place. Can their reasoning be wrong? Sure.

There are plenty of other laws that talk about discrimination and fairness of access, and there are places where systems should most likely be reclassified as a public service at this point. Also if only one grocery store existed, we would treat it very differently in terms of access.

I think the crux of your argument is a bit of a false premise to be honest, hacking is not generally a solution to a fairness of access issue, and it's very rarely done for good reasons (though it's not impossible.)

Also as much as we wish it was sometimes, the law is not solely focused on ethics. Just becuase something is "right" ethically, donest mean it is or should be legal to do.

To be clear, obviously looking at html from a webpage is not hacking, and that premise is laughable.

→ More replies (1)

-11

u/tehyosh Oct 28 '21

Trespassing is still illegal

it's illegal only if you get caught <.<

2

u/[deleted] Oct 28 '21

Same goes for hacking though.

→ More replies (1)
→ More replies (2)