رفتن به مطلب

لینک های follow و nofollow ؟


WP4All

پست های پیشنهاد شده

سلام.

در مورد لینک های nofollow سوال داشتم .

nofollow یعنی اینکه روبوت گوگل نره تو اون لینک ها و ببینه چه خبره توش ؟

مثلا این لینک :

www.facebook.com/l.php?u=http%3A%2F%2Fwww.rls-movies.com%2Fcategory%2Fmovies&h=UAQHfHdB-&enc=AZMWdWRnZ74PPZ5-duZgMl5EQYJshqnAyOSXkhZCukIq_OJutRJb8N6CNGZLHDCYJb9nWpmW7bh-RytgX9a67i5brB_UZFcA6oosD8FmTBwcTVaXrWwpx2Sqav8NiwVH6yA&s=1

فاللو هستش یا نو فالوو ؟

در این پست :

http://www.rls-movies.com/splash-uk-s02e03-x264-web-dl-hive.html#more-3023

لینک اولی فکر کنم فالو هستش و لینک های بعدی نو فالو درسته ؟

با این کد میشه نوفالو کرد لینک ها رو ؟

<a href="link" rel="nofollow">txt</a>

راه اسون تری نیست که لینک ها بشه نو فالو کرد ؟

بعضی سایت ها این کار رو میکنن که مثلا به یه ادرس یا لینکی که میخوان اشاره کنن اول سایت خودشون میاد بعد چند لحظه ریدایرکت میشه به اون سایت .

مثل همین لینک فی س بوک بالایی . ریدایرکت میشه به سایت خودم .

این کار یعنی نو فالو کردن لینک ها ؟ برای سایت من که انگلیسی هستش این کار مفیده ؟

لینک به ارسال

خوب برای هر لینکی که بخایم نوفالو کنیم استفاده از این کد سخته و وقت گیر .

راه سریعتری نیست کل لینک ها رو نوفالو کنیم ؟

<a href="link" rel="nofollow">txt</a>

تازه این کد بالا رو مثلا اینطور میزاریم تو ادیتور :

<a href="

http://ul.to/gxjif65g/Splash.UK.S02E03.WEB-DL.hive.mp4

" rel="nofollow">DOWNLOAD FROM UPLOADED</a>

قبول نمیکنه .

لینک به ارسال

کد


add_filter('the_content', 'auto_nofollow');

function auto_nofollow($content) {
//return stripslashes(wp_rel_nofollow($content));

return preg_replace_callback('/<a>]+/', 'auto_nofollow_callback', $content);
}

function auto_nofollow_callback($matches) {
$link = $matches[0];
$site_link = get_bloginfo('url');

if (strpos($link, 'rel') === false) {
$link = preg_replace("%(href=S(?!$site_link))%i", 'rel="nofollow" $1', $link);
} elseif (preg_match("%href=S(?!$site_link)%i", $link)) {
$link = preg_replace('/rel=S(?!nofollow)S*/i', 'rel="nofollow"', $link);
}
return $link;
}

http://www.wprecipes.com/wordpress-hack-automatic-nofollow-for-external-links-in-post-content

http://wordpress.org/plugins/sem-external-links/

  • امتیاز 2
لینک به ارسال

کد


add_filter('the_content', 'auto_nofollow');

function auto_nofollow($content) {
//return stripslashes(wp_rel_nofollow($content));

return preg_replace_callback('/<a>]+/', 'auto_nofollow_callback', $content);
}

function auto_nofollow_callback($matches) {
$link = $matches[0];
$site_link = get_bloginfo('url');

if (strpos($link, 'rel') === false) {
$link = preg_replace("%(href=S(?!$site_link))%i", 'rel="nofollow" $1', $link);
} elseif (preg_match("%href=S(?!$site_link)%i", $link)) {
$link = preg_replace('/rel=S(?!nofollow)S*/i', 'rel="nofollow"', $link);
}
return $link;
}

http://www.wprecipes...in-post-content

http://wordpress.org...external-links/

به نظرتون این کار که لینک های خروجی همه نوفالو بشن خوبه برای سایت وارز انگلیسی ؟

من از پلاگین دارم استفاده میکنم .

این گزینه ها رو تیک اولی و آخری رو بزنم خوبه یا همون که برداشته خوبه ؟

یعنی این دو گزینه .

Apply Globally

Apply these settings to all outbound links on the site except those in scripts, styles and the html head section.

Open in New Windows

Open outbound links in new windows.

Note: Some usability experts discourage this, claiming that this can damage your visitors' trust towards your site. Others highlight that computer-illiterate users do not always know how to use the back button, and encourage the practice for that reason.

ویرایش شده توسط WP4All
لینک به ارسال

به نظرتون این کار که لینک های خروجی همه نوفالو بشن خوبه برای سایت وارز انگلیسی ؟

من از پلاگین دارم استفاده میکنم .

این گزینه ها رو تیک اولی و آخری رو بزنم خوبه یا همون که برداشته خوبه ؟

یعنی این دو گزینه .

Apply Globally

Apply these settings to all outbound links on the site except those in scripts, styles and the html head section.

Open in New Windows

Open outbound links in new windows.

Note: Some usability experts discourage this, claiming that this can damage your visitors' trust towards your site. Others highlight that computer-illiterate users do not always know how to use the back button, and encourage the practice for that reason.

بهتره nofollow باشند

گزینه اول برای تغییر لینکهای سایت هست

گزینه دوم هم نمایش در صفحه جدید

لینک به ارسال

لطفا برای ارسال دیدگاه وارد شوید

شما بعد از اینکه وارد حساب کاربری خود شدید می توانید دیدگاهی ارسال کنید



ورود به حساب کاربری
×
×
  • اضافه کردن...