Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
Who's Online
2 registered (Boyzone-Online, Ruben Rocha), 22 Guests and 27 Spiders online.
Key: Admin, Global Mod, Mod
Featured Member
Registered: 11/17/06
Posts: 13
Top Posters (30 Days)
Ruben Rocha 103
Rick 81
Mark S 72
Thelockman 51
Gizmo 50
driv 35
Sirdude 30
ntdoc 30
packlite 24
AllenAyres 22
Latest Photos
bear test
Beach Barbie-Q
Sunset
Accept the challenge!
Trees
Topic Options
Rate This Topic
#216548 - 08/20/08 06:47 PM Shoutbox and domain referer problems...
Murphdog Offline
stranger

Registered: 08/18/08
Posts: 7
I just became a new user of UBB and installed it just 2 days ago on my server. One of the first things I noticed was that the shoutbox was not showing my shouts. This was not a concern at the time.

Today, I tried posting new topics and came up with the following error.
Quote:
The host from which you are accessing the board is not recognized as a valid host. This is more than likely related to a firewall issue that is blocking the referer variable. Check your firewall settings and try again.

I found posts about firewalls (specially Norton 360) and determined that this is not the issue because I disabled the firewalls on multiple computer and this still occured.

So I went to the Primary Settings / Advanced Options / Domains for HTTP Referer Check option and tried adding http://mydomain.com to the list. http://www.mydomain.com was already in there. Sadly, this made no difference either.

I then was looking for other places that http://www.mydomain.com may have been located and I found in the DB, Paths & URLs / Paths & Url's / Full URL to Main Directory field the reference to http://www.mydomain.com so I changed it to http://mydomain.com . This seemed to fix the http://mydomain.com issue but now I have the exact same problem with http://www.mydomain.com, so basically I'm back where I started, having problems with http://www.mydomain.com instead of http://mydomain.com .

In any case, I came across the topic called Shout Box Problems and figured maybe my change would fix this but it didn't seem to. So if I have http://www.mydomain.com in the Control Panel settings. I can see the shout box working but not when I go to http://mydomain.com. It's the opposite of course when I have http://mydomain.com in the Control Panel settings.

On a side not, My forum goes to http://www.mydomain.com or http://mydomain.com and not [url=htpp://www.mydomain.com/forum]htpp://www.mydomain.com/forum[/url] or http://mydomain.com/forum by design. I don't think this has anything to do with it. If anyone thinks different please tell me and I will change it's location.

Thanks
Murph






Edited by Murphdog (08/20/08 06:50 PM)

Top
#216552 - 08/21/08 12:46 AM Re: Shoutbox and domain referer problems... [Re: Murphdog]
Gardener Offline
member

Registered: 06/06/06
Posts: 157
Loc: Sweden
As for the shoutbox problems, that's just how AJAX/Javascript works. You can't call a script from another server than the originating script runs on.

So, if your primary site address is www.domain.com and you go to domain.com, the AJAX call to update the shoutbox tries to call www.domain.com anyway. Which won't work.

You either have to only use the main domain, and redirect the other to it. Or possibly modify the shoutbox code so that it calls the same domain as it is running on.
_________________________
aka Olle Johansson

Top
#216555 - 08/21/08 06:42 AM Re: Shoutbox and domain referer problems... [Re: Gardener]
Gizmo Moderator Offline

***

Registered: 06/04/06
Posts: 12089
Loc: Portland, OR; USA
I solved this issue by forcing users to use "www.undergroundnews.com" and having "undergroundnews.com" automatically forward all requests to the "www." subdomain.
_________________________
UGN Security, Elite Web Gamers & VNC Web Design Owner
Longtime UBB Supporter, UBB7 Beta Tester & Resident Post-A-Holic

Top
#216556 - 08/21/08 07:05 AM Re: Shoutbox and domain referer problems... [Re: Gizmo]
Murphdog Offline
stranger

Registered: 08/18/08
Posts: 7
Originally Posted By: Gizmo
I solved this issue by forcing users to use "www.undergroundnews.com" and having "undergroundnews.com" automatically forward all requests to the "www." subdomain.


This sounds like something I should be able to do with my webhost.

Top
#216557 - 08/21/08 07:08 AM Re: Shoutbox and domain referer problems... [Re: Murphdog]
blaaskaak Offline

****

Registered: 08/30/06
Posts: 1316
Loc: Breda, NL
You can do it with either an .htaccess file, or with a hack in ubb that forces everyone to the full url configured in control panel.

I use the later, and it's published on UBBDev. The .htaccess solution you can find right over here.
_________________________

Top
#216560 - 08/21/08 09:07 AM Re: Shoutbox and domain referer problems... [Re: blaaskaak]
Murphdog Offline
stranger

Registered: 08/18/08
Posts: 7
my webhost did find an issue on the backend of things so they said it may take 24-72 hours to resolve. I will also look into those 2 options you mention blaaskaak. Thanks.

Top
#216561 - 08/21/08 09:46 AM Re: Shoutbox and domain referer problems... [Re: Murphdog]
Thelockman Offline
addict
***

Registered: 02/10/07
Posts: 522
Loc: Pennsylvania
Sounds like they put in a DNS entry listing the domainname.com to the IP address of the server. This usually tells the server to look for domainname.com and when it does not see it then it goes to the listed www.domainname.com automatically.

It usually takes 12-72 hours for the DNS registry to update through out the world.
_________________________
Beagle World - A forum for those who are owned by beagles.
Track Thunder - The Unofficial Racing Forum

Top
#216570 - 08/21/08 08:30 PM Re: Shoutbox and domain referer problems... [Re: Thelockman]
Murphdog Offline
stranger

Registered: 08/18/08
Posts: 7
I got both issues resolved by using htaccess without having to wait for them to fix any dns issue that really may or may not exist. I have the non-www version being forwarded to the www version and all references to my domain go to the www version. Everything works fine now including the shoutbox.

Top
#216576 - 08/22/08 01:37 AM Re: Shoutbox and domain referer problems... [Re: Murphdog]
Gizmo Moderator Offline

***

Registered: 06/04/06
Posts: 12089
Loc: Portland, OR; USA
wink glad its workig
_________________________
UGN Security, Elite Web Gamers & VNC Web Design Owner
Longtime UBB Supporter, UBB7 Beta Tester & Resident Post-A-Holic

Top


Shout Box

Today's Birthdays
theregit
Recent Topics
New members don't get access and are not displayed in the config panel
by Yomar
Yesterday at 03:32 AM
How to Change Link Color / Underline in styles?
by ECNet
01/07/09 10:00 PM
Chaging the "max online" number and date
by wanted
01/07/09 02:22 PM
7.4.1. In Threaded Mode - "Mark All Read" Doesn't Work
by packlite
01/07/09 10:26 AM
Custom island with sql connection
by Robje01
01/07/09 09:13 AM
Forum Stats
4296 Members
33 Forums
30687 Topics
156017 Posts

Max Online: 978 @ 06/24/07 08:19 PM