Go Back   Pligg CMS Forum > Pligg Help > General Help

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-26-2007, 04:31 AM
The Edifier's Avatar
New Pligger
 
Join Date: Dec 2006
Location: Tenali, India
Posts: 16
Thanks: 3
Thanked 0 Times in 0 Posts
How to Avoid Spamming through Tell a Friend Form

The tell a friend form enables users to include their custom message along with the default message that is being sent.

I intend to eliminate the possibility of spammers using that text area for sending their content placed within it. [Can even Spambots do that !!! may be]

There are two solutions i thought of ......

1) Remove the text area completely and add that line of text to the code used for processing that mail form

2) make the text-area a hidden element .... which i thought would be a bit easier for pligg users without much programming knowledge ....

I was not able to locate the file containing/generating this code relating to the tell a friend form .


Quote:
<span id="emailto-2" style=""><fieldset>
<legend><span class="sign">Tell a friend</span></legend>
<form name="email_to" method="get" action="http://www.futureaccountant.com/news/recommend.php">
Enter up to 3 addresses: <br>
<input name="email_address_1" size="35" id="email_address_1_2" value="" type="text"><br>

<input name="email_address_2" size="35" id="email_address_2_2" value="" type="text"><br>
<input name="email_address_3" size="35" id="email_address_3_2" value="" type="text"><br>
<br>Add a comment?<br>
<textarea name="email_message2" id="email_message2" cols="40" rows="5">I thought you might like to see this.</textarea><br>
<br><input name="email_to_submit" value="Submit" onclick="emailto (16, 2, 'http://www.futureaccountant.com/news/', 3);" class="log2" type="button">
</form>
</fieldset></span>

</span>
Can someone please help

Thanks in advance
Reply With Quote
  #2 (permalink)  
Old 03-26-2007, 06:05 AM
Casual Pligger
 
Join Date: Nov 2006
Posts: 44
Thanks: 6
Thanked 11 Times in 4 Posts
use "submit once" script php or javascript with cookies or even database,
and show form only for registered users

and use special software to find text in files like
Super Text Search 2.8
http://www.galcott.com/ts.htm
__________________
-...-
Reply With Quote
  #3 (permalink)  
Old 03-26-2007, 08:47 AM
kbeeveer46's Avatar
Pligg Developer/Admin
Pligg Version: 0
Pligg Template: none
 
Join Date: Jun 2006
Location: Muncie, Indiana
Posts: 3,547
Thanks: 254
Thanked 649 Times in 513 Posts
The files you are looking for are recommend.php and recommend_small.tpl. You can also eliminate most of this problem by only allowing registered users to use the tell a friend form.
__________________
I accept donations for my time helping users like you on the forum and IRC.
Reply With Quote
  #4 (permalink)  
Old 03-27-2007, 01:04 AM
TJ3 TJ3 is offline
New Pligger
 
Join Date: Mar 2007
Posts: 15
Thanks: 1
Thanked 2 Times in 2 Posts
Admin » Configure >> Summary-Recommend >> Set tell a friend to false...

Any spammer can sign up and start spamming away if they really wanted to.. I just set it to false. Better safe then sorry.
Reply With Quote
Reply

Thread Tools
Display Modes
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 Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Tell a friend and message a friend bugs redwine General Help 5 09-22-2007 07:14 PM
Modify send to friend form and mail texts Peter General Help 3 08-16-2007 10:03 AM
Edit link form action="" revolver Bug Report 4 01-23-2007 11:30 PM
Tell A Friend Script (Need Help!) Lunatic Modification Tutorials 1 11-16-2006 02:52 PM
Problem form doesn't work! nabil Bug Report 1 04-01-2006 08:53 PM


Search Engine Friendly URLs by vBSEO 3.2.0