JS - How to add Auto nofollow attribute for links?
by barkkathulla[ Edit ] 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....