Acces module: No HTTP Referer

  • JaapJan
  • Onderwerp Auteur
  • Offline
  • Premium lid
  • Premium lid
Meer
7 jaren 11 maanden geleden - 7 jaren 11 maanden geleden #5294 door JaapJan
Acces module: No HTTP Referer werd gestart door JaapJan
Hi

I tried to restrict acces to one of my Xerte modules. I used the 'other' option in the Module properties.

The content should be only visible to people following links to my content from the sites I provide.

It does not work... When I follow the link from Moodle I get on errorscreen: No HTTP Referer. See attachement. Can somebody tell me how to quote the source website. With or withouth http, www, phptext behind /, etc



JaapJan

Holy cow!
Bijlagen:
Laatst bewerkt 7 jaren 11 maanden geleden door JaapJan.

Graag Inloggen of een account aanmaken deelnemen aan het gesprek.

Meer
7 jaren 11 maanden geleden #5296 door tom
Beantwoord door tom in topic Acces module: No HTTP Referer
Regrettably, this error means that Moodle does NOT provide a referrer header to the request to Xerte, so it doesn't work.

I am a bit surprised by this. What version of Moodle is this, and which browser?

Graag Inloggen of een account aanmaken deelnemen aan het gesprek.

  • JaapJan
  • Onderwerp Auteur
  • Offline
  • Premium lid
  • Premium lid
Meer
7 jaren 11 maanden geleden #5298 door JaapJan
Beantwoord door JaapJan in topic Acces module: No HTTP Referer
Hi Tom

the newest Moodle, 3.5+ and Chrome

How is the annotation:

www.domain.com/directory/php_etc ?
Or with subdomain?
Or only the domain?

Holy cow!

Graag Inloggen of een account aanmaken deelnemen aan het gesprek.

Meer
7 jaren 11 maanden geleden #5299 door ronm
Beantwoord door ronm in topic Acces module: No HTTP Referer
I don't think Moodle is the problem here. The referrer restriction should work fine but does need to match the domain so if you are accessing your moodle via www.somedomain then what you put in the other field needs to match that. You need the https:// or http:// you can't just put www.

But also how are you surfacing the link in Moodle? Is it a url resources? Embed code? A link in a text area? Try a url resources in the first instance and get that working first.

HTH
Ron

Xerte developer & trainer
e-learning & m-learning consultant
mitchellmedia.co.uk | xerteacademy.com | learningapps.co.uk
Note: Support here is voluntary and meant for users to support each other.
Need direct commercial support with Xerte? mitchellmedia.co.uk/contact/

Graag Inloggen of een account aanmaken deelnemen aan het gesprek.

  • JaapJan
  • Onderwerp Auteur
  • Offline
  • Premium lid
  • Premium lid
Meer
7 jaren 11 maanden geleden #5303 door JaapJan
Beantwoord door JaapJan in topic Acces module: No HTTP Referer
Hi Ron

I'll try it again. I use a URL resource indeed.

JaapJan

Holy cow!

Graag Inloggen of een account aanmaken deelnemen aan het gesprek.

  • JaapJan
  • Onderwerp Auteur
  • Offline
  • Premium lid
  • Premium lid
Meer
7 jaren 11 maanden geleden #5309 door JaapJan
Beantwoord door JaapJan in topic Acces module: No HTTP Referer
Hi Ron

A bad evening so far. No extra pages in my X version, and no HTTP referer in Moodle. GRRR.

I tried a lot of things: the complete URL of the launching Moodlepage, only the domainname, nothing works.

I tried to find info in Moodledocs, but couldn't find something helpfull.

Holy cow!

Graag Inloggen of een account aanmaken deelnemen aan het gesprek.

Moderators: ronmalimcn
Tijd voor maken pagina: 0.154 seconden
Copyright © 2026 The Xerte Project.
Xerte logo Apereo logo OSI Logo