You are not logged in.

#1 2016-12-06 19:58:24

Painless
Member
Registered: 2006-02-06
Posts: 234

[SOLVED] Bad HTTP_REFERER when trying to post reply to Arch Forums

When I'm using Firefox (plus NoScript, but with archlinux.org whitelisted), I get the following when I try to reply to a posting:

Bad HTTP_REFERER. You were referred to this page from an unauthorized source. If the problem persists please make sure that 'Base URL' is correctly set in Admin/Options and that you are visiting the forum by navigating to that URL. More information regarding the referrer check can be found in the FluxBB documentation.

Chromium is fine.  I'm guessing something in NoScript is causing this.  Anyone else experiencing this?

Last edited by Painless (2016-12-13 20:07:34)

Offline

#2 2016-12-06 20:07:25

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [SOLVED] Bad HTTP_REFERER when trying to post reply to Arch Forums

Yes. There are a couple of threads about it on this board going back a few years now.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2016-12-06 21:19:33

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,965
Website

Re: [SOLVED] Bad HTTP_REFERER when trying to post reply to Arch Forums

Do you use the RefControl extension (or something equivalent)? If so, you need to add an exception for this site.


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#4 2016-12-07 20:10:46

Painless
Member
Registered: 2006-02-06
Posts: 234

Re: [SOLVED] Bad HTTP_REFERER when trying to post reply to Arch Forums

I don't use RefControl.  It's strange because this error only just started happening a few days ago.  Never had it before, and my Firefox setup hasn't changed (apart from updates).

Offline

#5 2016-12-07 20:54:33

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,965
Website

Re: [SOLVED] Bad HTTP_REFERER when trying to post reply to Arch Forums

I just got a referrer error while trying to send a forum mail (with Firefox). The URL had a double slash ("//") in the path. Removing it fixed the error. I don't where it came from.

Which page(s) throw the error? Is there a double slash in the path?


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#6 2016-12-09 01:24:39

Painless
Member
Registered: 2006-02-06
Posts: 234

Re: [SOLVED] Bad HTTP_REFERER when trying to post reply to Arch Forums

I have only noticed it when I try to post a reply.

E.g. if I try now in Firefox, the URL in this instance is https://bbs.archlinux.org/post.php?tid=220394

The Submit button is greyed out, and if I select Preview, I get the Bad HTTP_REFERER message.

(Switched to Chromium to post the actual reply)

Offline

#7 2016-12-09 17:44:43

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: [SOLVED] Bad HTTP_REFERER when trying to post reply to Arch Forums

Post a list of all the Firefox add-ons that you are using.

Offline

#8 2016-12-10 14:13:25

Painless
Member
Registered: 2006-02-06
Posts: 234

Re: [SOLVED] Bad HTTP_REFERER when trying to post reply to Arch Forums

The add-ons I'm using in Firefox are:

  • HTTPS Everywhere

  • NoScript

  • Open With

  • Tab Mix Plus

These are all downloaded from https://addons.mozilla.org/, I don't use Arch packages for any add-ons.

I've also applied some of the Firefox performance tweaks from the wiki, but not all of them.  I forget exactly which ones, but I can trawl through if required.

Thanks.

Offline

#9 2016-12-10 17:38:06

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: [SOLVED] Bad HTTP_REFERER when trying to post reply to Arch Forums

Hmm.. nothing seems out of the box. Can you try and reproduce it with a clean Firefox profile?

Offline

#10 2016-12-10 20:28:40

Painless
Member
Registered: 2006-02-06
Posts: 234

Re: [SOLVED] Bad HTTP_REFERER when trying to post reply to Arch Forums

Using a clean profile, no add-ons, I can post (e.g. I'm posting this using Firefox).  So I'm guessing this problem is something to do with the most recent NoScript (V. 2.9.5.2) which came out November 28.

A pity, since I'm not going to be doing much exploratory browsing without NoScript.  It's no biggy, the Open With add-on is useful in cases like this.

Offline

#11 2016-12-11 14:28:26

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 13,031

Re: [SOLVED] Bad HTTP_REFERER when trying to post reply to Arch Forums

It's not noscript 2.9.5.2 itself, as i use that and have no problems at all.

I don't use https everywhere though ( it broke to many things a few years ago ) and use noscript https settings to force https for some sites,including *.archlinux.org .


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#12 2016-12-11 14:45:18

Painless
Member
Registered: 2006-02-06
Posts: 234

Re: [SOLVED] Bad HTTP_REFERER when trying to post reply to Arch Forums

I've tried disabling HTTPS Everywhere for archlinux.org, then disabling it completely, then removing it.  Still get the same problem.  I'm starting to suspect a combination of things.

Thanks for all the suggestions.  smile

Offline

#13 2016-12-13 04:24:51

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: [SOLVED] Bad HTTP_REFERER when trying to post reply to Arch Forums

FWIW, I am using both NoScript and HTTPS Everywhere and don't have this problem. I have of course whitelisted archlinux.org in NoScript. Did disabling NoScript fix this?

Also, open about:support in Firefox and post the "Important Modified Preferences" here.

Offline

#14 2016-12-13 10:06:13

philo
Member
Registered: 2015-01-26
Posts: 271

Re: [SOLVED] Bad HTTP_REFERER when trying to post reply to Arch Forums

If I remember correctly, I solved that issue by setting (or resetting) in about:config:

network.http.sendRefererHeader= 2

and/or:

dom.storage.enabled= true

Last edited by philo (2016-12-14 09:58:49)

Offline

#15 2016-12-13 20:06:06

Painless
Member
Registered: 2006-02-06
Posts: 234

Re: [SOLVED] Bad HTTP_REFERER when trying to post reply to Arch Forums

Good call.  It turns out that this was due to setting :

network.http.referer.trimmingPolicy = 2

Once set to the default value of 0 (zero), I can post once more.

Thanks very much  smile

Offline

#16 2016-12-16 10:58:47

OlaffTheGreat
Member
Registered: 2013-06-03
Posts: 107

Re: [SOLVED] Bad HTTP_REFERER when trying to post reply to Arch Forums

Same issue here, opening a new thread to not trolling this one.


Lenovo Thinkpad x230 i5-3320M 2.6GHz 250GB SSD (M4) 16GB
SSD | SeaBIOS | GPT | BTRFS | OpenRC | Xfce4 | Zsh | Tmux | Spacemacs
* "Aware Newbie" *
Ibus IM for language script support (e.g. 日本語 - 中文)

Offline

#17 2024-10-06 19:03:50

Archcan_98
Member
Registered: 2023-09-08
Posts: 45

Re: [SOLVED] Bad HTTP_REFERER when trying to post reply to Arch Forums

I'm having the same issue with Waterfox gnu package V 6.0.19_x64. The given solution works:

network.http.sendRefererHeader= 2

2 extensions only:
-Privacy Badger
-Ublock

Last edited by Archcan_98 (2024-10-06 19:05:47)

Offline

#18 2024-10-06 19:27:11

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 13,031

Re: [SOLVED] Bad HTTP_REFERER when trying to post reply to Arch Forums

Glad it helped you, but please start a new thread next time.

https://wiki.archlinux.org/title/Genera … bumping%22

Closing this thread.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

Board footer

Powered by FluxBB