I'm using the standard VBSEO .htaccess file where should I insert this
staill worksRewriteCond %{HTTP_X_MOZ} ^prefetch$
RewriteRule ^.*$ - [F]
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 ...
I'm using the standard VBSEO .htaccess file where should I insert this
staill worksRewriteCond %{HTTP_X_MOZ} ^prefetch$
RewriteRule ^.*$ - [F]
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!
cheers mate, got to get the loads down on the site
Can I ask what this does?
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.
Thanks for the explanation! So this is a good thing to put on a larger forum then, correct?
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.
Thanks![]()