this post was submitted on 23 Nov 2023
28 points (81.8% liked)

Asklemmy

43363 readers
1419 users here now

A loosely moderated place to ask open-ended questions

Search asklemmy ๐Ÿ”

If your post meets the following criteria, it's welcome here!

  1. Open-ended question
  2. Not offensive: at this point, we do not have the bandwidth to moderate overtly political discussions. Assume best intent and be excellent to each other.
  3. Not regarding using or support for Lemmy: context, see the list of support communities and tools for finding communities below
  4. Not ad nauseam inducing: please make sure it is a question that would be new to most members
  5. An actual topic of discussion

Looking for support?

Looking for a community?

~Icon~ ~by~ ~@Double_A@discuss.tchncs.de~

founded 5 years ago
MODERATORS
 

ive just heard of an incident where students redirected their books codes to p**n. can i make sure that doesnt happen? also, im using google to generate them, is there a foss alternative as im scared of tracking. lastly, can i make the qr code redirect to a specific page of a pdf as i want people to be able to scan them and immediately land on a specific part

all 23 comments
sorted by: hot top controversial new old

A QR code just links to a URL. If you link to a URL that you own or control, it'll be fine. The problem comes when people use a link shortener that allows the destination to be changed later, or if they lose control of the domain or its backend.

[โ€“] transientpunk@sh.itjust.works 46 points 9 months ago (1 children)

What does censoring the "or" in porn accomplish?

[โ€“] zero_gravitas@aussie.zone 21 points 9 months ago

ive just heard of an incident where students redirected their books codes to p**n. can i make sure that doesnt happen?

This is kind of confusing, or at least leaves a lot of detail out ๐Ÿ˜† Did the domain lapse? Did their short-URL account get hacked? In any case, your QR code will just be encoding a URL. Ultimately, any URL can be redirected by someone out there; so it's just a matter of trusting that whoever has that access won't act maliciously, and that malicious actors can't gain access.

also, im using google to generate them, is there a foss alternative as im scared of tracking.

There absolutely are, just search and you should find plenty. Again, though, the QR code is just encoding a URL. Does Google use their own short-URL service for their generated QR codes? Just scan the QR code and look at the URL it encodes. If it's only the URL you want - not some Google short-URL that then redirects to the URL you entered - then there can't be any tracking done on it by Google.

lastly, can i make the qr code redirect to a specific page of a pdf

Covered by another commenter already, but for completeness: yes, you just add #page={n) at the end of the URL, e.g. https://dagrs.berkeley.edu/sites/default/files/2020-01/sample.pdf#page=5

[โ€“] rah@feddit.uk 11 points 9 months ago* (last edited 9 months ago)

ive just heard of an incident where students redirected their books codes to p**n

Where did you hear about this? It sounds suspiciously like someone misremembered the following incident where there was no malice or even intent, just incompetence and happenstance:

Children's snack recalled after its website caught serving porn

[โ€“] Pantherina@feddit.de 7 points 9 months ago

No, its just a coded form of a URL. People just dont know this and use weird online generators / link grabbers. Sometimes these use URL shorteners too, where easy typos can happen

[โ€“] m105@discuss.tchncs.de 5 points 9 months ago (2 children)

Sure there are foss qr code generators, I don't know any at the moment but with a simple google search you should find what you want. About the pdf on a specific page, I think you can add #page={pageNumber} in the url and should open it at the given page.

[โ€“] CoriolisSTORM88@lemmy.world 3 points 9 months ago

There is also a PC based offline barcode generator called Zint. I've used it a lot over the years. It can generate regular barcodes, QR codes, or other ones. It's very handy. You can generate using batch files with it also, if you have a lot to do.

[โ€“] juliebean@lemm.ee 2 points 9 months ago

as for foss generators, there's an app on f-droid called Binary Eye for reading and generating assorted bar codes, including qr codes.