Kayako logo
Developers & Code Interested in customizing your Kayako products? Discuss modifications and develop your own mods with the community.

Reply
 
LinkBack Thread Tools Search this Thread Rating: Thread Rating: 5 votes, 5.00 average. Display Modes
  (#1) Old
bear Offline
Community Moderator
 
Posts: 686
Join Date: Jan 2005
Disabling comments and stopping comment spam - 04-03-2007, 12:01 AM

Since no one was able to provide the steps to disabling comments to avoid spammers, I've done so. This guide will only remove it entirely, not just allow it for logged in users, so bear that in mind. To allow only logged in users, you could probably use an IF statement to show only if logged in, but this was all I needed so I stopped there.

To remove the ability for visitors to use comments completely:
Go to the admin area of your Kayako install and look under the left menu for "templates" and expand it.
Under that menu, look for "search templates".
Search for "comments".
This should return the following templates:
comments #3
tsstepdisplay
nwitemnavbar
nwviewnews
nwlistdisplay
dlviewdownload
dlitemnavbar
kbarticlenavbar #2
kbarticleview #1

To disable the showing of the comments option in the main KB article view, edit #1, removing this part near the bottom:
Code:
<{displaytemplate name="comments"}>
To disable the comment option under "Article options" in the right hand menu, edit #2, place comments around (or remove) the following (comments are < ! -- and -- > (spaces added):
Code:
<div class="navitem" onMouseOver="javascript:this.className='navitemhover';" onMouseOut="javascript:this.className='navitem';"><img src="<{$themepath}>icon_addcomment.gif" width="16" height="16">&nbsp;<a href="#" onClick="javascript:switchDisplay('comments');"><{$language[addcomment]}></a></div>
.

To prevent direct submission of comments, edit #3, changing or removing the following form action from the top:
Code:
"<{$basepath}>"
Make sure you include at least an empty pair of quotes "" for the action, and direct submissions should go nowhere.

Editing #3 removes all abilities to allow comments, so use with caution. To edit out the other areas (news and downloads), just see the various other templates listed above and edit accordingly. Hope this helps clear up the mystery surrounding removing comment spam for good. No one seemed to be willing to explain this, so I took the time to write it up.
   
Reply With Quote
  (#2) Old
beHosting Offline
New Member
 
Posts: 16
Join Date: Sep 2004
Talking 08-04-2007, 07:41 PM

Thank you! I had done #1 and #2 and removed all references to the comments links from all templates, but somehow they were still managing to spam the knowledgebase comments to the tune of hundreds per day.... #3will keep it from happening.

Thanks again!
   
Reply With Quote
  (#3) Old
datasolution Offline
New Member
 
Posts: 1
Join Date: Apr 2007
Question 09-04-2007, 09:48 AM

<removed quoted post>

Nice tips... But can u tell how I can I disable in PHPBB forums... which is I used..?

Or If you have any resouce which I can use to disable...

thanx

Last edited by bear; 09-04-2007 at 10:27 AM.
   
Reply With Quote
  (#4) Old
bear Offline
Community Moderator
 
Posts: 686
Join Date: Jan 2005
09-04-2007, 10:28 AM

I have no idea. This is a forum for Kayako, and I posted a tip about that product. Have you tried the PHPBB author's forums?

@BeHosting: You're welcome.
   
Reply With Quote
  (#5) Old
bcarpenter Offline
New Member
 
Posts: 7
Join Date: Sep 2006
13-04-2007, 01:52 PM

Thanks Bear for the great how-to. I sure appreciate you taking the time to do this.

Brian
   
Reply With Quote
  (#6) Old
ansuk Offline
New Member
 
Posts: 16
Join Date: Mar 2007
25-04-2007, 11:36 AM

Fantastic, thank you
   
Reply With Quote
  (#7) Old
jj1987 Offline
New Member
 
Posts: 17
Join Date: Feb 2008
18-03-2008, 09:12 PM

Thanks for this! I just implemented it and it works great.
   
Reply With Quote
  (#8) Old
Matthew Offline
Member
 
Matthew's Avatar
 
Posts: 168
Join Date: Oct 2007
Location: Jakarta, Indonesia
09-04-2008, 07:12 AM

Another thanks here!

I use different template groups for guests vs registered users, so this works great for disabling comments from 'guest' spammers.


Matthew Arciniega
The Precision Group

+ Free: Ticket List & Ticket Search Mods

+ Free: (Almost) Perfect Outlook/HTML Tickets
+ Tutorials: SLA System Explained l Using Template Groups
Kayako v3.20.02 & v3.30.02 | PHP: 5.2.6 | MySQL: 5.0.58 | CentOS 4 Server
   
Reply With Quote
  (#9) Old
Raid Offline
New Member
 
Posts: 14
Join Date: May 2007
17-04-2008, 10:25 AM

Hi,

i doesnt work for me, i controlled it 3 times an i have all changes maked like here described.

if you go on the site you have no chance to make a comment, all ist deleted.

every day we must delete in the staff panel 4000 spams from gmail like now778@gmail.com or now489@gmail.com an that sucks.

with your hack our clients doesnt see the spam and NEW spam bots have no chance, thats one advantage but im searching a solution, that the spammer cant post from the outside. i think the spammers maked a copy from the comments-form an know they spam with this one from the outside.

i hope that eSupport 3.20.03 with captcha will stop the spambots but i installed alreday the captcha mod but i doenst work for the gmail spam.
   
Reply With Quote
  (#10) Old
craigbrass Offline
Senior Member
 
Posts: 5,552
Join Date: Jun 2005
Location: Cumbria, UK
17-04-2008, 10:29 AM

Raid: This will hide it. You should just ignore any spams inside the staff control panel as your customers will not see them.


Craig Brass - Kayako Forum Squatter (Note: I am NOT a staff member)

Icon Headquarters - Its Elixir - Web2Messenger
   
Reply With Quote
  (#11) Old
bear Offline
Community Moderator
 
Posts: 686
Join Date: Jan 2005
17-04-2008, 11:40 AM

Quote:
Originally Posted by Raid View Post
i doesnt work for me, i controlled it 3 times an i have all changes maked like here described.
Including this one?
"To prevent direct submission of comments, edit #3, changing or removing the following form action from the top:"
That should make it impossible to submit to that page. There should be no chance of external submission to your desk, and if there is, there's a bigger problem.
Quote:
that the spammer cant post from the outside. i think the spammers maked a copy from the comments-form an know they spam with this one from the outside.
You need to trace where they are submitting from and block access to your server from there, as well as determining how they can submit this externally, if that's the case.
   
Reply With Quote
  (#12) Old
Raid Offline
New Member
 
Posts: 14
Join Date: May 2007
18-04-2008, 08:43 AM

Quote:
Originally Posted by bear View Post
Including this one?
"To prevent direct submission of comments, edit #3, changing or removing the following form action from the top:"
That should make it impossible to submit to that page. There should be no chance of external submission to your desk, and if there is, there's a bigger problem.
... please look at the attachmend, if it is right.



Quote:
You need to trace where they are submitting from and block access to your server from there, as well as determining how they can submit this externally, if that's the case.
... we've tried it with iptables to block access but it is every day a new ip.

what i dont understand, whats going on here? i looked after the spam comments and the time and then i searched the logfiles after the client you maked the spam:

83.222.23.235 - - [18/Apr/2008:10:20:53 +0200] "POST /index.php HTTP/1.1" 302 - "http://google.com" "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)"
83.222.23.235 - - [18/Apr/2008:10:20:18 +0200] "POST /index.php HTTP/1.1" 302 - "http://google.com" "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)"
83.222.23.238 - - [18/Apr/2008:07:24:13 +0200] "POST /index.php HTTP/1.1" 302 - "http://google.com" "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)"
83.222.23.238 - - [18/Apr/2008:07:24:40 +0200] "POST /index.php HTTP/1.1" 302 - "http://google.com" "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)"


All IPs are registered to a lot of Data Centers in Moscow, and i think to make an Abuse Message is how we said in Germany "a drop on a hot stone". Somebody will make an Abuse Message an in the next hours they have a new Server ...

I have no idea where is the bug in eSupport that they can post their spam.
Attached Images
File Type: gif Unbenannt-1.gif (17.7 KB, 8 views)
   
Reply With Quote
  (#13) Old
jnet Offline
Member
 
Posts: 524
Join Date: Mar 2008
18-04-2008, 08:55 AM

whenever there is a problem we should find a solution why disabling it?
Kayako should find a way to stop or atleast decrease the spam
comments is good.

well any way my comments don't work at all in said that in another thread and still did not get any solution
   
Reply With Quote
Reply

Tags
comment, comments, disabling, spam, stopping

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vBulletin Skin developed by: vBStyles.com


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46