Sunday, 1 October 2017

Wordpress Comments Me Auto Linking URL Disable kaise Kare?



Wordpress blog me jab koi visitor text URL comment karta hai to wo automatically clickable link me badal jati hai. So agar aap wordpress comments me auto linking URL ko bandh karna chahate hai to hum yaha par bata rahe hai. Is method se aapko manually comments me se link ko remove nahi karna hoga aur aapka time save hoga. Wordpress comments me auto linking disable karte hai to koi website visitors comments me link add karta hai to wo sirf text word hoge. uspar click nahi kiya ja sakata. Isse aap apne blog ko spam comments attacks se bhi secure rakh sakte hai.

How to disable auto linking URL in wordpress comments

WordPress comment box me text URL ko clickable link me badal ne ka reason yah hai ki blog admin and other visitors us link par click karke commentater ki website ya blog ko visit kar sake. Lekin blog par kae bar spam comments bhi aati hai. Spam comments se blog par bad effect padta hai aur penalty bhi mil sakati hai. Agar aap bhi spam comments se apne blog ko secure karna chahate hai to wordpress comments se auto linking URL ko bandh kar dena chahiye.

ReadWordpress blog me email subscriber box add kaise kare?

Wordpress  comments me auto linking URL disable karne par koi users comments box me link/URL add nahi kar sakata. URL add karne par wo sirf text version me show hoga. Matlab URL clickable nahi hoga. Isse aapke blog ko spam link se khatara nahi hoga. Blog spam attack se secure rahega. Jo log sirf URL add karne aate hai we bandh ho jayege.

WordPress comments me auto linking URL disable karne ke liye aap No comments links plugin ka bhi use kar sakate hai, lekin hum yaha plugin ka upyog nahi karege. Iske liye hum manually code add karge aur comments se auto linking URL ko bandh karege.


WordPress comments me auto linking URL disable kaise kare?

First comments me simple plain text link ko bandh karne ke bare me bata rahe hai. Jaise ki hum yaha par ek manually code add karenge, plugin ka use nahi karenge. First aapko wordpress dashboard open karna hai aur editor me functions.php folder me niche diya gaya code add karna hai so code copy kijiye aur paste kar dijiye.


//Disable URL Auto-Linking in WordPress Comments

remove_filter( 'comment_text', 'make_clickable', 9 );

Is code se comments auto linking URL disable karne par koi simple plain text url clickable link me nahi convert hoga. Matlab koi aapke wordpress blog me comments me link add karata hai to wo text me hi show hoga clickable nahi hoga.

ReadWordpress blog me social media share button add kaise kare without plugin

But agar koi html code se comments me url add karega to yah code kam nahi karega. Html code se link kar sakate hai. Yah code se sirf simple plain text link ko disable kar sakate hai. HTML tag URL ko wordpress comments me bandh karne ke bare me jante hai.


Disable HTML in wordpress comments

Agar aap Wordpress comments se HTML tag link ko bandh karna chahate hai to aapko is method ko use karna hoga. First wordpress dashboard open kare. Editor me function.php folder open kare aur niche diya gaya code copy karke usme paste kare.


// This will occur when the comment is posted
 function plc_comment_post( $incoming_comment ) {
// convert everything in a comment to display literally
 $incoming_comment['comment_content'] = htmlspecialchars($incoming_comment['comment_content']);
// the one exception is single quotes, which cannot be #039; because WordPress marks it as spam
 $incoming_comment['comment_content'] = str_replace( "'", ''', $incoming_comment['comment_content'] );
return( $incoming_comment );
 }
// This will occur before a comment is displayed
 function plc_comment_display( $comment_to_display ) {
// Put the single quotes back in
 $comment_to_display = str_replace( ''', "'", $comment_to_display );
return $comment_to_display;
}

Is method se koi commentators wordpress me html comment nahi kar sakata. Matlab comments me html code add karne par work nahi karega. Agar aapne is method ko manually nahi karna chahate to wordpress comments html tag bandh karne ke liye is Peter’s Literal Comments plugin ka use kar sakate hai.

ReadWordpress theme customize kaise kare?

Is tarah hum apne wordpress blog ko spam link comments se secure kar sakate hai. In dono method se wordpress comments me koi bhi plain text link aur html tag link add nahi kar sakata. Agar aapko yah article wordpress comments me auto linking URL disable kaise kare pasand aaya to share kare.
Nitesh kumar
Nitesh kumar

Hello Friends! My Self Nitesh Kumar, From India Gujarat. I Am Passionate Blogger. I Am Author Of SolutionSoul Blog. In This Blog I'll Give U Information About New Technology, Various Technical Tricks, Mobile And Computer Tricks, Knowledge And News Etc.

No comments:

Post a Comment