Uutiset:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu
Advertisement:

Print Page? Indexed all over google ?

Aloittaja shawdy, heinäkuu 07, 2010, 12:46:22 IP

« edellinen - seuraava »

shawdy

How do i stop or remove the print page feature, all my pages are recieving google traffic to print pages, which basically display nothing of interest and there no way for the user to click a link to goto the homepage?

Please help me stop these being indexed..


mirahalo

theres son mods to enable/disable the print button http://custom.simplemachines.org/mods/index.php?action=search;basic_search=print   but there are for 2.0


also, you can make a robots.txt   with the following:

Disallow: /index.php?action=printpage


I personally use this:

User-agent: *
Disallow: /Sources
Disallow: /Smileys
Disallow: /Packages
Disallow: /avatars
Disallow: /attachments
Disallow: /Themes
Disallow: /index.php?action=printpage
Disallow: /index.php?action=stats
Disallow: /index.php?action=help
Disallow: /index.php?action=search
Disallow: /index.php?action=mlist
Disallow: /index.php?action=post
Disallow: /index.php?action=profile;area=showposts;u=*
Disallow: /index.php?action=profile;area=showposts;sa=attach;u=*
Disallow:  /index.php?wap2



cicka

Lainaus käyttäjältä: shawdy - heinäkuu 07, 2010, 12:46:22 IP
How do i stop or remove the print page feature, all my pages are recieving google traffic to print pages, which basically display nothing of interest and there no way for the user to click a link to goto the homepage?

Please help me stop these being indexed..



If you want to remove the print button find and either remove or comment out this code at the Display.template.php file.

'print' => array('text' => 465, 'image' => 'print.gif', 'lang' => true, 'custom' => 'target="_blank"', 'url' => $scripturl . '?action=printpage;topic=' . $context['current_topic'] . '.0'),

aw06

When you add Disallow: /index.php?action=printpage to robots.txt .. does is then show the actual page ? or will it show less results ?
:: ShopinJA.com Powered by SMF 1.1.19 | Ig-Oh Theme by Koni | 70 Rock Solid Error Free Mods | Many Custom Edits & Tweaks ::
- Host Unlimited Websites - Free Website Builder & Templates - Unlimited Disk Space & Bandwidth

JimM

Using that Disallow: /index.php?action=printpage is the best way.  If the spider follows the robots.txt file they will not index the pages.
Jim "JimM" Moore
Former Support Specialist

aw06

this does not seem to be working , guess i have to give Google some more time to re-crawl my site..
:: ShopinJA.com Powered by SMF 1.1.19 | Ig-Oh Theme by Koni | 70 Rock Solid Error Free Mods | Many Custom Edits & Tweaks ::
- Host Unlimited Websites - Free Website Builder & Templates - Unlimited Disk Space & Bandwidth

Aleksi "Lex" Kilpinen

It can take a while for them to update the results, but it should work for the bigger search engines just fine, at least Google follows robots.txt nicely :)
Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

aw06

My print pages and wap pages are still being indexed by Google Search  :-\

This is in my Index.php ... do i have any errors ?

User-agent: Googlebot
# Don't index mobile versions
Disallow: /index.php?*;wap
Disallow: /index.php?*;wap2
Disallow: /index.php?*;imode
Disallow: /index.php?action=printpage
:: ShopinJA.com Powered by SMF 1.1.19 | Ig-Oh Theme by Koni | 70 Rock Solid Error Free Mods | Many Custom Edits & Tweaks ::
- Host Unlimited Websites - Free Website Builder & Templates - Unlimited Disk Space & Bandwidth

JimM

Jim "JimM" Moore
Former Support Specialist

aw06

:: ShopinJA.com Powered by SMF 1.1.19 | Ig-Oh Theme by Koni | 70 Rock Solid Error Free Mods | Many Custom Edits & Tweaks ::
- Host Unlimited Websites - Free Website Builder & Templates - Unlimited Disk Space & Bandwidth

Baby Daisy

To be honest I find print page more of a nuisance than a solution to a simple static page.

The penultimate way of disabling bots from viewing printpage is completely disabling the action.

Open ./index.php

Find:
'printpage' =>

Replace with:
// 'printpage' =>

In addition you can disable the button by either editing the array that compiles it in MessageIndex.php, or by simply denying the print permission from all groups (I recommend the latter, a lot easier).
あなたは私のお尻にキスするとき、私はそれを愛する

JimM

Or you can replace all the statements that you have with

Disallow: /index.php?*;*

That will basically disallow anything with a ; in it.

I use that in my robots.txt and don't have an issue with print pages getting modified.
Jim "JimM" Moore
Former Support Specialist

aw06

Lainaus käyttäjältä: JimM - joulukuu 28, 2010, 07:52:01 IP
Or you can replace all the statements that you have with

Disallow: /index.php?*;*

Not sure i follow ???
:: ShopinJA.com Powered by SMF 1.1.19 | Ig-Oh Theme by Koni | 70 Rock Solid Error Free Mods | Many Custom Edits & Tweaks ::
- Host Unlimited Websites - Free Website Builder & Templates - Unlimited Disk Space & Bandwidth

Illori

in your robots.txt file, you dont need code changes to do this.

JimM

Replace all this:

User-agent: Googlebot
# Don't index mobile versions
Disallow: /index.php?*;wap
Disallow: /index.php?*;wap2
Disallow: /index.php?*;imode
Disallow: /index.php?action=printpage


with this:

Disallow: /index.php?*;*

in your robots.txt file.
Jim "JimM" Moore
Former Support Specialist

Baby Daisy

Lainaus käyttäjältä: JimM - joulukuu 29, 2010, 09:06:31 AP
Replace all this:

User-agent: Googlebot
# Don't index mobile versions
Disallow: /index.php?*;wap
Disallow: /index.php?*;wap2
Disallow: /index.php?*;imode
Disallow: /index.php?action=printpage


with this:

Disallow: /index.php?*;*

in your robots.txt file.

This would return a false positive:

/index.php?action=post;topic=389687.0

Making bots no longer spidering posts.
あなたは私のお尻にキスするとき、私はそれを愛する

Illori

where do you see that link? I dont see that type of link to a topic/post in my smf 1.1.12 install or here on this forum.

JimM

My suggestion is that we confine our comments to the OPs issue and not to disagreeing or analyzing each others comments. 
Jim "JimM" Moore
Former Support Specialist

aw06

:: ShopinJA.com Powered by SMF 1.1.19 | Ig-Oh Theme by Koni | 70 Rock Solid Error Free Mods | Many Custom Edits & Tweaks ::
- Host Unlimited Websites - Free Website Builder & Templates - Unlimited Disk Space & Bandwidth

JimM

I was afraid that would happen.   ;D

I use the statement that I posted for the more active crawlers.  I have not had a problem with print pages being indexed nor a problem of topic pages not being indexed.

The best I can recommend is to try some different things and hopefully you will get a combination that works.
Jim "JimM" Moore
Former Support Specialist

Advertisement: