vBulletin prefetching error

Optegris

Free Member
  • Business Listing
    Just went to UKBF which is in my favourites, natch, and got this error:

    Prefetching is not allowed due to the various privacy issues that arise.

    Now after googling the error I had to do a CTRL and F5 to get into the forum.

    Completely apart from the fact that this is the ONLY forum, and I belong to a lot, I have ever come across that forces users to do this some users will simply not know what to do and leave.

    Why on Gods earth has this been implemented???? The net effect will be to drive users away!!
     

    Darren Falkingham

    Free Member
    Jul 3, 2007
    471
    199
    Bristol
    Hi Phil,

    It does look like it's a vBulletin security measure. I'll see if there's something we can do to prevent this, but if you do get it, pressing CTRL+F5 will clear it.

    PS - you know I mentioned Google is good at indexing UKBF - type in "Prefetching is not allowed due to the various privacy issues that arise" - this thread is number 1 in the UK already...!
     
    Upvote 0

    Optegris

    Free Member
  • Business Listing
    Hi Phil,

    It does look like it's a vBulletin security measure. I'll see if there's something we can do to prevent this, but if you do get it, pressing CTRL+F5 will clear it.

    PS - you know I mentioned Google is good at indexing UKBF - type in "Prefetching is not allowed due to the various privacy issues that arise" - this thread is number 1 in the UK already...!
    This is the offending part:
    http://www.nuhit.com/forums/3106-post11.html
     
    Upvote 0

    Darren Falkingham

    Free Member
    Jul 3, 2007
    471
    199
    Bristol
    Great, thanks for that Phil.

    I've just found a page on Mozilla's site about this too - it's a browser function that 'fetches' your favourite sites when your browser is inactive, to speed things up. But it looks as though vBulletin doesn't like it.

    Absolutely no idea why it's happened, and on vBulletin's own board there's no real advice. I'll keep you updated.

    Cheers for now,
    Darren
     
    Upvote 0
    Not something I have come across yet and I use Firefox, BT etc. but at least should it happen now I know what to do. Is it something set in the vBulletin options as its not something I have encountered on my vBulletin forum either!
     
    Upvote 0

    Darren Falkingham

    Free Member
    Jul 3, 2007
    471
    199
    Bristol
    Hi all,

    We found it - there's a piece of PHP code in vBulletin that does this:

    1 - checks if you're logged in
    2 - checks if you're using a Mozilla browser
    3 - checks if prefetching is active
    4 - then writes that very unuseful error message to the screen.

    Hopefully other vBulletin users might pick this up and find it helpful. The original code is as follows:
    if ($vbulletin->userinfo['userid'] > 0 AND strpos($_SERVER['HTTP_X_MOZ'], 'prefetch') !== false)
    {
    if (SAPI_NAME == 'cgi' OR SAPI_NAME == 'cgi-fcgi')
    {
    header('Status: 403 Forbidden');
    }
    else
    {
    header('HTTP/1.1 403 Forbidden');
    }
    die('Prefetching is not allowed due to the various privacy issues that arise.');
    }
    We've commented the whole thing out. The prefetching error shouldn't happen any more.

    Cheers,
    Darren

    PS - I've edited the thread name as it could be taken very much out of context!
     
    Upvote 0

    Darren Falkingham

    Free Member
    Jul 3, 2007
    471
    199
    Bristol
    Hi Gill,

    I double-checked the prefetching code yesterday, and it's definitely commented out. I can only think that, for some reason, cacheing has got in the way.

    The 'New Posts' thing is a different animal in vBulletin - it can do it in three different ways, each more server intensive. I hope that we can use the best (most server intensive) approach to new posts, but I need my tech guys to OK this!

    Cheers for now,
    Darren
     
    Upvote 0

    Latest Articles

    Join UK Business Forums for free business advice