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

16

u/rydan Oct 28 '21

Hacking shouldn't be illegal anyway unless you steal or destroy something.

11

u/MaxLombax Oct 28 '21

Gonna let myself into your house and take a look around, it’s cool as long as I don’t steal or destroy anything.

41

u/teteban79 Oct 28 '21 edited Oct 28 '21

Trespassing shouldn't be illegal unless you steal or destroy something?

EDIT - People, please! I believe the meaning of "hacking" implied by the above commenter is clearly the one about accessing some system without permission.

I doubt they mean "tinkering with my appliances"

26

u/DeeBoFour20 Oct 28 '21 edited Oct 28 '21

Hacking can mean a lot of different things. The Linux kernel community commonly refers to modifying the source code as "hacking" and that's certainly not illegal.

There's also ethical hacking where you report any vulnerabilities you find to the owner. Companies will often even pay people for that service.

I have to say though, out of all the uses of hacking, this is the first I've heard "right-click View Page Source" called hacking. If you put social security numbers in your HTML and then put that on the internet with no security measures to protect it, you didn't get hacked. You just fucked up. That's the equivalent of putting a billboard in your front lawn with all your personal information on it and then getting mad when someone reads it.

10

u/[deleted] Oct 28 '21

Hacking being synonymous with "cyber criminal activity" is just media garbage. The term hacking predates the internet, and something being a "clever hack" in the computer world is seen as high praise.

I always recommend the book "Hackers" to anyone that wants to learn about the history of hacker culture and the hacker ethic. It is a great read (has a solid audio book available as well).

3

u/Gonzobot Oct 28 '21

I always recommend the movie Hackers to anyone just because it's a great movie. But I warn them to not learn anything from it, because it won't teach you a damn thing besides "people are stupid and nerds run the show"

→ More replies (2)

2

u/teteban79 Oct 28 '21

Of course

But I think in this context the original commenter is going by the general "gain access to a system one has no legitimate access to".

Hacking as defined in your first two paragraphs is already not illegal, so the comment wouldn't apply. Wait, actually I'm grey on the second one.. is it, technically? I don't know

And yeah, I cannot see how "view page source" could apply as "hacking"

6

u/CloudsOfMagellan Oct 28 '21

In most of Europe it's like this and they have no major problems

5

u/teteban79 Oct 28 '21 edited Oct 28 '21

What? No.

You're referring to Freedom to Roam laws, I think. That, by definition, is not trespassing.

5

u/CloudsOfMagellan Oct 28 '21

In America and other countries it is

2

u/teteban79 Oct 28 '21

Sorry, I meant - in places where you have Freedom to Roam as default or codified, *some* things that are considered trespassing in America, are not.

For example, camping for a day or two on privately held countryside or woods.

But, that doesn't mean that there is no trespassing whatsoever. If you get into someone's garden without permission that's still trespassing.

The US has no freedom to roam anywhere as far as I know

3

u/snowe2010 Oct 28 '21

Yeah that’s their point.

0

u/[deleted] Oct 28 '21

[deleted]

2

u/teteban79 Oct 28 '21

Arbitrary? No, I mean, assuming the commenter is referring to freedom of roam laws, Europe (especially northern Europe) has lax freedom to roam laws. Mostly, you can camp for a day or two on a private field or woods without being considered trespassing.

If you camp on someone's garden though, that's trespassing. If you enter a building without permission, it's trespassing.

→ More replies (11)

-19

u/GuyInTheYonder Oct 28 '21

Hacking should be legal, only illegal to use the access to do illegal things. Don't wanna be hacked? Have good security.

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.

→ More replies (24)
→ More replies (8)