Blocking spam from a comment-section

I want to include something in my code to avoid spam in my
sql-driven comments-section of my website.
I posted this already in another thread but since it was
marked as solved, nobody responded to my question. I tried to use
the following method suggested by Joe Makowiec in this forum:
Originally posted by:
Newsgroup User
In foil.js:
// JavaScript Document
document.write("<input name='foil'
type='hidden' value='orange' />");
and in the mail form:
script language="JavaScript"
src="foil.js"
type="text/JavaScript"></script>
noscript
tr>
td>Enter 'orange' here:</td>
td><input name='foil'
/></td>
/tr
> </noscript>
I also put in the corresponding php as suggested:
?php
if ($_POST['foil'] == 'vrede') {
// Have field 'foil' with correct value
// Do other processing here
} else {
// Field 'foil' is missing or blank
// Odds on we have a bot
// Do something other than sending the mail
sorry that I didn't put this into the code-attachment but I
didn't want anybody to confuse this with my coding. If you'd like
to see the original coding, here you can have a look:
the
original discussion
However, it doesn't work. And what is worst: the same error
happens that I occurred when I tried to include a captcha! It
simply posts the spam comments anyway (with or without the right
code word).
I am not particularly good at php coding yet and quite
frankly, deciding where to put in a code fragment is pretty much a
guessing game for me. Maybe someone can see what the problem is if
I give you the coding I have done so far.:

the thing is not that I don't want to use captchas, it is
just that it doesn't work. Also I think that registering scares
people off. There MUST be a way how to do this. However, I have
been trying to find one for almost 5 days now and I always end up
with the same result (confer above). Does any body see where the
code-error lies?

Similar Messages

  • HT1688 block spam from email on i phone

    Is there a way to block spam from the I phone mail? It is blocked on my ATT account on my computer but is displayed in my mail on the I phone? Thank you.

    Not from the iphone.
    You would have to do this on your mail server

  • HT4759 blocking spam from mac & icloud accounts

    99.9 % of my spam is coming from mac & icloud accounts
    Is anyone else having this issue & if so how can you make it stop?
    I am only able to access my mail account through Safari since I still am using an iBook G4 running 10.5.8
    Thanks for any suggestions
    Kaäri

    Hello kaari,
    Thanks for using Apple Support Communities.
    For more information on this, take a look at:
    iCloud: Why am I getting junk mail (spam)?
    http://support.apple.com/kb/ts4019
    Best of luck,
    Mario

  • Blocking spam from new TLD like .ninja

    I have spam problems from new tld like .ninja. Seems spam filter not work with this new domains, any suggestion on how to solve this problem?
    Thanks, Andrea

    the thing is not that I don't want to use captchas, it is
    just that it doesn't work. Also I think that registering scares
    people off. There MUST be a way how to do this. However, I have
    been trying to find one for almost 5 days now and I always end up
    with the same result (confer above). Does any body see where the
    code-error lies?

  • Blocking Users from Commenting

    Is there a way to block users from posting comments on a blog? We have generic accounts for a labs and our students have figured out that they can login using the generic account and post a comment. Then another user can login sing the same generic account and read the comment even if it is not been moderated. They are using it like a chat system.
    Simply put can we create a "blacklist" of users for the service which would prevent the students from posting as a user. They would still post as anonymous users.

    Hi Vittal,
    use the user-exit described in note: 808971 (RSWUWFML2).
    If you had several users changing dynamically I would create a z_ table for those users and select all in the exit.
    The other way would be to allocate to the users a dummy email adress...but this is surely not so great.
    Regards
    Tibor

  • How do you filter Spam from iPad mail?

    I have an iPad 2 with both POP 3 and Exchange accounts. Is there a way to block spam from showing up on my iPad?

    To block spam from showing up on your iPad requires the process being done at the incoming mail server level.
    The iPad's Mail app does not include a junk mail filter which would not prevent spam from showing up on your iPad if it were available.

  • Error Console blocking page from loading and will no disable. Trying to post a comment on BBS and page keeps getting blocked. How do I stop error console from blocking pop up or page from loading?

    trying to post a message to syncmyride for Ford. A community comments section. The pop up blocker keeps blocking the page even after repeated attempts to click on the allow button. I can't find a way to disable this. When clicking on error console, it list a repeated error report for the page. This is not the exact URL because you have to log into the site in order to get to the point where you can post a comment.

    "Clear the Cache": Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"<br />
    "Remove the Cookies" from sites that cause problems: Tools > Options > Privacy > Cookies: "Show Cookies"<br />
    <br />
    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).<br />
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]<br />

  • ISP is blocking us from using their smart host, they think we are spamming.

    Our ISP is blocking us from using their smart host a few times these days. They told me that one or some of our computers were infected and spamming. I checked Trend Micro console, but have not seen any viruses so far.
    We migrated from SBS2003 to SBS2011 a few days ago. And our ISP blocked us from using their smart host on the very next day. Ever since then, this has happened 3 times in a week.
    If I use our own server to send out emails, some recipients will reject because of their spam filtering system.
    Any thoughts, suggestions??
    Thanks in advance!

    On your network firewall, you can block outbound SMTP (25) for all of your network systems and create an allow outbound SMTP (25) for your server. Thus if a workstation is trying to send direct to the internet your firewall should prevent the communications
    but it will allow your server to send mail out to your smarthost. If your firewall can support unified threat protection, enabling such services will aid you in assuring yourself and your ISP of the clean bill of health for your messaging environment.
    You can also force a password change on all of your user accounts as a preventative measure. If you were dealing with ISP mailboxes or an external provider, this would be where the vendor would start.
    You should also be able to get support from your ISP; if they are blocking your connection they must have some information to work with that will help you narrow your approach. Another option would be to look into third party smarthost/sanitation services
    such as Forefront Online Protection for Exchange which can certify your email and can allow you to bypass your ISP.  Usually an ISP offers a free smarthost service but what you get in return is entry-level service, but if you pay for outbound smarthost
    services, you get a service level and support agreement. 
    Hope that helps,
    -Jason
    Jason Miller B.Comm (Hons), MCSA, MCITP, Microsoft MVP

  • Why can I no longer get the comment section from my favorite Blog?

    I have not been able to get the comment section of my favorite Blog. When I click on to go to the page all I get is a white blank page. This has been the case for over a month.

    delete the account and re-add it.

  • How to parse reader comments in new source comment sections

    I enjoy reading through the comment sections to articles in various news sources.   However, the good comments are often hidden in the over abundance of spam and mind-numbing commentary.  I would like to write an application that will selectively
    extract certain comments that I feel will most likely offer informative content (i.e. to reduce the time and my effort to find comments worth reading).   For example, mind-numbing comments which I wish to ignore general consist of single sentences
    and it is not unusual for a comment section to have hundreds if not thousands of them.  Conversely, many informative comments are much longer in length (e.g. two or more paragraphs). 
    I am proficient in developing desk top applications in a rich client environment but have only minimal experience working with web-related applications.   As such, I am looking for suggestions on how I should approach this small project and work
    through it.
    1) Is anyone aware of existing projects or sample source code which parses the contents of web pages using .NET?
    2) It is possible to view the source of a browser web page.  For example, in IE10 I from the main menu [View][Source].   The source includes the text of the article but none of the comments.  That is, the actual comments are not
    included in the rendered HTML (e.g. view the source for
    http://www.cbc.ca/news/business/target-s-launch-into-canada-a-multifaceted-failure-1.2901789).   So how can I obtain the comments so that I can then filter the ones I wish to review and ignore all the others.
    If I should be posting this request in another forum then please let me know.
    ThanX
    Ian

    See the webpage below.  The DownLoadFile method or the method I posted at the end will get entire webpage.
    https://social.msdn.microsoft.com/Forums/vstudio/en-US/a75fb1e0-75a5-42eb-ad26-6d461eb94c69/why-my-calculation-using-while-and-substring-to-extract-string-from-text-is-not-extracting-the-right?forum=csharpgeneral#c743616a-ef72-4dd2-a22a-9c8c40ec784b
    jdweng

  • How do I block people from texting me in "iMessage" / "Messages" on the iPad?

    AARRGGGGHHHH!!
    People are "texting" me on my iPad and I can't make it stop. HELP!!
    I can't believe ... I'm absolutely dumb-founded ... that Apple provides no way to block harassing users. This is NOT related to a wireless/cellular carrier, this is on my wifi-only iPad.

    You really have to wonder why the feature of blocking someone is not available.  It would be simple to implement.  Harrassing text messages, imessages, whatever you want to call them give an abuser a way to contact someone who does not want any contact.  This can result in psychological damage, even in some cases suicide.  If I am receiving unwanted messages from someone, I don't see why I can't just hit a button that says block.  The message then can be diverted to a folder, and if I want to unblock them I should be allowed.  There is not one reason I can imagine why I should not have this power.  It's ridiculous and unfortunate that in this age of bullying and stalking, we aren't allowed this modicum of control over our privacy.  So just when you think you have forgotten someone, or someone you love has finally removed an abusive person from their lives and moved on, all that person has to do is suddenly decide to text you day and night so that you cannot do anything but think about them.  Why oh why is there no block messages from this person button as there is in virtually every social networking website?  I am flabbergasted.  And of course if you have a data plan and someone wants to send you spam, they can actually eat into your data usage against your will.  I have to deny my family the ability to send me iMessages by completely disabling it because one nutcase won't leave me alone?  Again, where is our control over our privacy?  I'm frustrated over this issue, and after seeing what happened to Amanda Todd I don't see why it's not mandatory that this feature be added to every instant messaging platform.  "Block User"  I'm completely blown away now that I've researched this issue and I hope other people rally behind a change.  How hard would it be for a 45kb update to iMessage with the ability to block users?  Someday Apple is going to get sued when something terrible happens all because they refused to listen to reason.  We need cotrol of our lives, and especially where teenagers are concerned.  They need to be able to block unwanted attention from people who found a way into their personal lives.  Go to youtube and look up Amanda Todd.  It's tragic and Apple is going to do nothing about it.  Anybody who is living through this sort of nightmare knows how insane it is that we cannot simply hit "block user".  I also am dumbfounded!

  • How to Block user from Sending IM or Hide Presence of there user who is not in his department

    Hi All,
    How to Block user from Sending IM or Hide Presence of there user who is not in his department.
    Thank you

    Hi Jp,
    Method 1:
    You can use the Enhanced Privacy Mode in Lync 2013
    <section class="ocpSection">
    Enable Privacy Mode
    By default, everyone except Blocked Contacts can see your presence status. To modify the privacy settings, you can do the following:
    In the Lync main window, click the Options button.
    In the Lync - Options dialog box, click Status, and then do one of the following:
    Click I want everyone to be able to see my presence regardless of system settings (override default settings).
    Click I want the system administrator to decide - currently everyone can see my presence but this could change in the future.
    </section>
    About Enhanced Privacy Mode
    If your organization has enabled Enhanced Privacy Mode in Lync, you can choose whether to limit visibility of your presence information to only those people you’ve added to your Contacts list. You do that by selecting one of the following on the
    Options->Status window:
    I want everyone to be able to see my presence
    I only want people in my Contacts list to see my presence
    Method 2:
    Using Privacy Relationship, you can block a particular user by adding him to blocked contacts
    Anil Kumar (MCITP)
    Note: Posts are provided “AS IS” without warranty of any kind, either expressed or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose.

  • Youtube reply button in comment section does not work

    As of today the "reply" button in the comment section on any youtube video has stopped working, Usually it brings up an input field when clicked, but now I get nothing except a blue glow around the button [http://i259.photobucket.com/albums/hh299/Viruzzz_bucket/Untitled-1.jpg (cropped picture of what I see)]
    So far I have attempted the following with no success
    *restarting firefox
    *restarting the computer
    *reinstalling latest version of flash
    The button works if I access a video page through internet explorer, but I despise that browser.

    What's even more crap about this is your old posts are not updated with your name. So new reply posts look like (on first glace without a user clicking on the user name of old posts vs Real name of new posts to see they are the same) that the posts are coming from two different users. Just messy all the way around... and frustrating that I cannot continue my convos today without surrendering my privacy.

  • I want to remove the comments section

    hi this is my site http://demo402.businesscatalyst.com/news/company-announces-record-profits
    i want to remove the comments section . how i will do that

    If you're not familiar with HTML make sure you create a backup of the html in a text editor before editing, that way you can replace it later if you need to.
    What you want to do is go into the
    Site settings > Module templates > News Layouts > Detail layout.
    Click the html tab bottom of the editing window.
    Remove  the comment form div code which should look like this: starting with <div class="comment-form"> and ending with </div>
    <div class="comment-form">
    <h5>Comment</h5>
    <form name="catratingform2343" onsubmit="return checkWholeForm2343(this)" method="post" action="/RatingProcess.aspx?OID={module_oid}&amp;OTYPE={module_otype}">
        <div class="form">
        <div class="item">   <label>Was this helpful?</label><br />
        No   <input type="radio" name="Rating" value="1" />   <input type="radio" name="Rating" value="2" />   <input type="radio" name="Rating" checked="checked" value="3" />   <input type="radio" name="Rating" value="4" />   <input type="radio" name="Rating" value="5" />   Very   </div>
        <div class="item">   <label>Name (optional)</label><br />
        <input class="cat_textbox_small" type="text" name="FullName" maxlength="255" />   </div>
        <div class="item">   <label>Website (optional)</label><br />
        <input maxlength="255" name="website" class="cat_textbox_small" />   </div>
        <div class="item">   <label>Email Address (optional)</label><br />
        <input class="cat_textbox_small" type="text" name="EmailAddress" maxlength="255" />   </div>
        <div class="item">   <label>Enter Word Verification in box below</label><br />
        {module_captchav2}   </div>
        <div class="item">   <label>Comment (optional)</label><br />
        <textarea class="cat_listbox_small" name="Feedback"></textarea>   </div>
        <div class="item">   <input class="cat_button" type="submit" value="Submit" />   </div>
        </div>
        <script type="text/javascript" src="/CatalystScripts/ValidationFunctions.js"></script>
        <script type="text/javascript">   //<![CDATA[
       function checkWholeForm(theForm){var why = "";if (theForm.EmailAddress) if (theForm.EmailAddress.value.length > 0) why += checkEmail(theForm.EmailAddress.value);if (theForm.CaptchaV2) why += isEmpty(theForm.CaptchaV2.value, "Enter Word Verification in box below");if (why != ""){alert(why);return false;}return true;}  
    //]]>   </script>
    </form>
    </div>
    Then save.
    If you delete the wrong code, restore from the backup copy.

  • Amavisd log - Blocked SPAM

    Hello,
    We are experiencing a Blocked SPAM for a real e-mail on our Tiger Server machine.
    An excerpt from /var/log/amavisd.log looks like below:
    Jun 29 20:52:49 students.nese.com /usr/bin/amavisd[26186]: (26186-06) Blocked SPAM, <[email protected]> -> <[email protected]>, Hits: 6.718, tag=-999, tag2=4, kill=4, L/Y/Y/Y
    Oct 29 04:23:28 students.nese.com /usr/bin/amavisd[7670]: (07670-04) Blocked SPAM, <[email protected]> -> <[email protected]>, Hits: 6.639, tag=-999, tag2=4, kill=4, L/Y/Y/Y
    the e-mails from "[email protected]" is a real e-mail and for some reason everything that comes in from uhak.com domain has been "Blocked". We are using zen.spamhaus.org for spam filter and I have checked that uhak.com ip address was not on their blacklist. However this domain was blacklisted someplace else (eg. korea.services.net) BUT we do not use that Korea.services.net service. Also uhak.com's rev DNS lookup resolve to spam.mailwood.com (which sounds suspicious)...
    I've read somewhere that Spamassasin does not block spam, it'll just marked it is that true?
    Is there a way to allow our mail server to receive emails from uhak.com but still have spam filter on (we do not want to be vulnerable to spams).
    Thank you very much for your kind assistance!
    Sumomo

    This is not being blocked by an RBL (i.e. spamhaus.org), but by SpamAssassin based on other criteria which make it seem spam (can't tell without seeing mail).
    I've read somewhere that Spamassasin does not block spam, it'll just marked it is that true?
    This depends on the settings in /etc/amavisd.conf. The default setting on Mac OS X Server is to discard spam above kill level and at the same time tag and kill level are set to be the same. Thus, resulting in everything above 4 in your case to be discarded.
    Edit /etc/amavisd.conf and change:
    $sakill_leveldeflt = $satag2_leveldeflt;
    to:
    $sakill_leveldeflt = 10.0;
    save and restart mail services.
    This will mark all spam between 4 and 10, but send it on to the users. Mails above 10 will be discarded.
    For more info see here: http://www200.pair.com/mecham/spam/amavisd-settings.html
    HTH,
    Alex

Maybe you are looking for

  • Backing up and restoring FTP settings on a Mac?

    Using DW CS3 and CS4 how can I backup FTP settings in these programs and transfer them to CS5 on a Mac running Snow Leopard? Thanks.

  • Flash Player Does Not Work with IE8 and Windows XP

    I am using Windows XP VR 5.1 with SP3. Flash Player does not function? So videos will not play that use Flash Player. The Adobe Support Site has been 000 Help because it is a free product. Microsoft says it is an Adobe problem. Finger pointing to the

  • How do you merge two different users on one computer?

    I created a user account on my computer, then when I used Migration Assistant to transfer some of the files off my old computer onto my new MacBook Air it transferred them into a new user account.  How do I merge the two different users? They are bot

  • Photoshopversion for mac and windows when switching?

    Hi, I have used now the photoshop trial version for windows for windows for a while and would like to buy the full version. However I will switch to a mac in December or January and would really appreciate If I would be able to start out with photosh

  • Security update and kernel panic.

    After a security update i get this when I try to boot: A lot of text and at the end: Darwin Kernel Version 8.8.0: Fri Sep ... . . root:xnu-792.12.6.obj~1/RELEASE_PPC panic: We are hanging here.. Any tips???