Results 1 to 8 of 8

.htaccess & Firefox Prefetch

This is a discussion on .htaccess & Firefox Prefetch within the General Discussion forums, part of the vBSEO SEO Plugin category; I'm using the standard VBSEO .htaccess file where should I insert this RewriteCond %{HTTP_X_MOZ} ^prefetch$ RewriteRule ^.*$ - [F] staill ...

  1. #1
    Senior Member
    Real Name
    FAA Zooman
    Join Date
    Dec 2005
    Location
    Cumbria, UK
    Posts
    208
    Liked
    0 times

    .htaccess & Firefox Prefetch

    I'm using the standard VBSEO .htaccess file where should I insert this

    RewriteCond %{HTTP_X_MOZ} ^prefetch$
    RewriteRule ^.*$ - [F]
    staill works

  2. #2
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,680
    Liked
    157 times
    You should put this right after "RewriteEngine on" line.
    Oleg Ignatiuk / Crawlability Inc.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  3. #3
    Senior Member
    Real Name
    FAA Zooman
    Join Date
    Dec 2005
    Location
    Cumbria, UK
    Posts
    208
    Liked
    0 times
    cheers mate, got to get the loads down on the site

  4. #4
    Senior Member
    Real Name
    .
    Join Date
    Jul 2006
    Posts
    386
    Liked
    3 times
    Blog Entries
    1
    Can I ask what this does?

  5. #5
    Member
    Join Date
    Sep 2005
    Posts
    50
    Liked
    0 times
    Prefetch (done by a few internet accelerators and firefox) basically goes through links on the page, if it thinks you'll prolly visit it next, it'll start to download it in the background while you're still reading the current page. This, in theory isn't a bad idea for the client, but it really hurts the server because now, each user instead of request one page, wait a few minutes while person reads the content, and request the next; requests like 5 to 10 pages at the same time, and then continuously takes up server resources. And this is done by just one client, imagine multiple clients doing it at the same time... it's not pretty

    The .htaccess content in the first post makes it so that as soon as it detects the client prefetching, it'll throw 403 errors for the prefetch request and hence reduce the demand on the server.

  6. #6
    Senior Member
    Real Name
    .
    Join Date
    Jul 2006
    Posts
    386
    Liked
    3 times
    Blog Entries
    1
    Thanks for the explanation! So this is a good thing to put on a larger forum then, correct?

  7. #7
    Member
    Join Date
    Sep 2005
    Posts
    50
    Liked
    0 times
    Yes, it is good to add those into your htaccess if you have a mid size to large forum; and it wouldn't hurt to have it on a small one either.

  8. #8
    Senior Member
    Real Name
    .
    Join Date
    Jul 2006
    Posts
    386
    Liked
    3 times
    Blog Entries
    1
    Thanks

Similar Threads

  1. Hotlink Protection Tutorial (Apache Server - .htaccess files)
    By NeutralizeR in forum Member Articles
    Replies: 15
    Last Post: 06-08-2011, 03:25 PM
  2. .htaccess problem right off
    By eJM in forum Custom Rewrite Rules
    Replies: 10
    Last Post: 08-01-2006, 11:27 PM
  3. Which .htaccess line is which?
    By eJM in forum General Discussion
    Replies: 5
    Last Post: 07-04-2006, 07:55 AM
  4. Add "www." in .htaccess
    By Jason|Xoxide in forum Custom Rewrite Rules
    Replies: 8
    Last Post: 03-31-2006, 12:54 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •