Supporting each other

Community forums

Welcome, Guest
Username: Password: Remember me

TOPIC: Acces module: No HTTP Referer

Acces module: No HTTP Referer 1 year 3 weeks ago #5294

  • JaapJan
  • JaapJan's Avatar Topic Author
  • Offline
  • Expert Boarder
  • Expert Boarder
  • Posts: 114
  • Thank you received: 1
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:

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

Last edit: by JaapJan.

Acces module: No HTTP Referer 1 year 3 weeks ago #5296

  • tom
  • tom's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 862
  • Thank you received: 158
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.

Acces module: No HTTP Referer 1 year 3 weeks ago #5298

  • JaapJan
  • JaapJan's Avatar Topic Author
  • Offline
  • Expert Boarder
  • Expert Boarder
  • Posts: 114
  • Thank you received: 1
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.

Acces module: No HTTP Referer 1 year 3 weeks ago #5299

  • ronm
  • ronm's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 528
  • Thank you received: 128
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

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

Acces module: No HTTP Referer 1 year 3 weeks ago #5303

  • JaapJan
  • JaapJan's Avatar Topic Author
  • Offline
  • Expert Boarder
  • Expert Boarder
  • Posts: 114
  • Thank you received: 1
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.

Acces module: No HTTP Referer 1 year 3 weeks ago #5309

  • JaapJan
  • JaapJan's Avatar Topic Author
  • Offline
  • Expert Boarder
  • Expert Boarder
  • Posts: 114
  • Thank you received: 1
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: alimcn
Time to create page: 0.096 seconds
Copyright © 2019 The Xerte Project.
Xerte logo Apereo logo OSI Logo

Search