Acces module: No HTTP Referer

Plus d'informations
il y a 7 ans 11 mois - il y a 7 ans 11 mois #5294 par JaapJan
Acces module: No HTTP Referer a été créé par 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!
Pièces jointes :
Dernière édition: il y a 7 ans 11 mois par JaapJan.

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 7 ans 11 mois #5296 par tom
Réponse de tom sur le sujet 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?

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 7 ans 11 mois #5298 par JaapJan
Réponse de JaapJan sur le sujet 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!

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 7 ans 11 mois #5299 par ronm
Réponse de ronm sur le sujet 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/

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 7 ans 11 mois #5303 par JaapJan
Réponse de JaapJan sur le sujet Acces module: No HTTP Referer
Hi Ron

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

JaapJan

Holy cow!

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 7 ans 11 mois #5309 par JaapJan
Réponse de JaapJan sur le sujet 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!

Connexion ou Créer un compte pour participer à la conversation.

Modérateurs: ronmalimcn
Temps de génération de la page : 0.142 secondes
Copyright © 2026 The Xerte Project.
Xerte logo Apereo logo OSI Logo