Acces module: No HTTP Referer

  • JaapJan
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
7 years 11 months ago - 7 years 11 months ago #5294 by JaapJan
Acces module: No HTTP Referer was created by 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!
Attachments:
Last edit: 7 years 11 months ago by JaapJan.

Please Log in or Create an account to join the conversation.

More
7 years 11 months ago #5296 by tom
Replied by tom on 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?

Please Log in or Create an account to join the conversation.

  • JaapJan
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
7 years 11 months ago #5298 by JaapJan
Replied by JaapJan on 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!

Please Log in or Create an account to join the conversation.

More
7 years 11 months ago #5299 by ronm
Replied by ronm on 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/

Please Log in or Create an account to join the conversation.

  • JaapJan
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
7 years 11 months ago #5303 by JaapJan
Replied by JaapJan on topic Acces module: No HTTP Referer
Hi Ron

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

JaapJan

Holy cow!

Please Log in or Create an account to join the conversation.

  • JaapJan
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
7 years 11 months ago #5309 by JaapJan
Replied by JaapJan on 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!

Please Log in or Create an account to join the conversation.

Moderators: ronmalimcn
Time to create page: 0.157 seconds
Copyright © 2026 The Xerte Project.
Xerte logo Apereo logo OSI Logo