WordPress Spam Comments Ko .htaccess File Se Stop Kaise Kare

Jab hum WordPress par new blog install karte hai to uspe auto linking URLs naam ka ek feature enable hota hai. Jiski vajah se beginners ko blog par spam comments ki problems hoti hai. Isse site ki search rank pe negative effect padta hai.

Waise to Akismet jaise aur bhi bahut se useful plugins wordpress spam comments ko easily block kar sakte hai. But agar ye kaam ek simple code se ho jaye to fir blog me extra plugin install karne ki kya jarurat hai.

Kyuki mai apne readers ko site ki loading speed ko fast rakhne ke liye jyada plugins use na karna hi suggest karta hu. So aaj mai aapko .htaccess method se WordPress spam comments ko block karne ka code trick batane wala hu. So post ko end tak jarur padhe.

WordPress Spam Comments Ko .htaccess File Se Stop Kaise Kare

htaccess file kya hai aur ise kaise create/upload and edit kare, ke bare me already apni previous post me bata chuka hu. Jise padh kar aapko .htaccess file edit karne me dikat nahi ayegi.

Spam comments kya hote hai?

Kuch webmasters black hat seo ki help se dusre blogs pe comments karwate hai. Actually, wo comments bots dawara automatically kar diye jate hai. Us types ke comments ko spam comments kaha jata hai.

Aisa karne ka maksad kam time me jyada traffic pana hota hai. Ek tarah se ise backlinks banane ka shortcut bhi bol sakte hai. But mai aapko highly suggest karuga ki aise bad seo techniques se traffic pane ka khayal bhi apne dimag se nikal de.

Kyuki jaise succes pane ke liye mehnat karni hi padti hai, theek usi tarah quality and targeted visitors gain karne ke liye SEO rules ko follow karna hi padhega aur is process me time lagta hai.

Agar aapke WordPress blog par bhi spam comments ate hai to .htaccess file editing method karke ise stop kar sakte ho. Iske liye bas aapko spamming commentator ke IP address ki jarurat hogi. Jise aap dashboard >> comments section me aasani se parapat kar sakte ho.

stop wordpress spam comments

Spaming commentators ke IP address janane ke baad aapko ise ise apni .htaccess file me modif karna hai. Yani ki IP address block kar ne ke liye code add karna hai.

Iske liye aap apne hosting Cpanel >> file manager >> root document >> select your domain >> htaccess >> right click >> edit pe click karke easily add kar sakte ho.

stop wordpress spam comments using htaccess file

Otherwise, agar aap Yoast SEO plugin use karte ho to aap WordPress dashboard >> yoast seo >> tools >> file editor se bhi wordpress spam comments blocker code ko jod sakte ho.

stop spam comments using htaccess file

Warning: .htaccess file methode ko use karne se pahle mai aapko highly recommed karunga ki pehle aap apni is file/folder ka backup jarur ban le. Kyuki agar aapne kuch bhi galat code add kar diya to aapki website work karna band kar degi.

WordPress spam comments ko .htaccess file me blocker code add karke stop kaise Kare?

Apni site ki .htaccess file ka backup lene ke baad aapko ye niche likha code add karke file save karna hai.

 order allow,deny
 deny from 103.204.110.148
 allow from all

Upar code me jo green color me numeric words hai. Wo ek IP address hai. Same aap uski jagah pe wo IP address replace kare jisse aapko spam comments a rahe hai.

Agar aapko ek se jyada IP address block karne hai tk aap deny from xxx.xxx.xxx.xx ke jaise aur bhi lines add kar sakte ho. Yaha aap deny from ke baad other IP addresses ko bhi yaha add kar sakte hai. Example ke liye niche code dekhe.

 order allow,deny
 deny from xx.xxxx.xxx.xxx
 deny from xx.xxxx.xxxx.xxx
 deny from xx.xxx.xxx.xxx
 allow from all

I hope is post ko padh kar aapko wordpress spam comments ko block karne ke liye kisi plugin ko install karne ki jarurat nahi padhegi. Agar aapko ye post achi lagi to ise apne social networking profile par dusre bloggers ke sath bhi share kare. Humare blog ki regular updates ki jankari apne email box me direct pane ke liye aaj hi subscribe kare.

Leave A Reply

Your email address will not be published.