JS - How to add Auto nofollow attribute for links?

by barkkathulla 2014-02-21 18:18:33

SCRIPT FOR AUTO NOFOLLOW ATTRIBUTE:

<script type="text/javascript">

jQuery(document).ready(function(){

jQuery('a[href*="http://"]:not([href*="http://eluthu.com"])').attr('rel','nofollow');
jQuery('a[href*="https://"]:not([href*="https://eluthu.com"])').attr('rel','nofollow');

});
</script>



From the above method we can allow websites/ links in our site input fields with nofollow attribute....


Tagged in:

1537
like
0
dislike
0
mail
flag

You must LOGIN to add comments