« Trick the Comment Spammers | Main | Google ads obscuring part of posts »

MTDisguiseCommentURL v0.5 Beta

This plugin uses Javascript to hide the true location of you comments script, making it difficult for spammers to find it in order to bombard you with spam.

It is important to note that if you use this plugin, commenters must be using a Javascript-enabled brower in order to post comments.

I have been testing this plugin on one of my blogs for about 12 hours, and I have received zero spam in that time period on that blog. I will be installing it on all my blogs today.

Installation:

1. Download Now:

Membership required, please sign-in or register:

2. Extract and upload MTDisguiseCommentURL.pl to your 'plugins' directory within your 'mt' directory.

3. Open your Individual Entry Archive template and find the following line:

<form method="post" action="<$MTCGIPath$><$MTCommentScript$>" name="comments_form" onsubmit="if (this.bakecookie[0].checked) rememberMe(this)">

Delete <$MTCGIPath$> and <$MTCommentScript$> and replace with a fake comment URL. An example might be http://www.mydomain.com/postcomments.cgi -- but don't use this example! Make up something unique. Remember, the URL should point to a non-existent file.

2. In the same template, after the </form> tag, enter:

<$MTDisguiseCommentURL$>

3. Rebuild your Individual Archives, and you are done. Post a test comment to make sure it works.

Rate this entry:

  • Currently 4.3/5
  • 1
  • 2
  • 3
  • 4
  • 5
Rating: 4.3/5 (6 votes cast). Powered by the Ajax Rating plugin.

TrackBack

TrackBack URL for this entry:

Listed below are links to weblogs that reference MTDisguiseCommentURL v0.5 Beta:

» MTDisguiseCommentURL from Movalog Sideblog
MTDisguiseCommentURL... [Read More]

» Comment Spammers Are Evil Bastards from UtterlyBoring.com
OK, let me rephrase that: Comment spammers are evil, but the folks who let their systems be infected by malware that turns their systems into zombies are just as bad.... [Read More]

» Pick of the week (6 from cashmere scarfs
By Gap Some shopping cliches just work at this time of year, and cashmere is one of them: good to [Read More]

Comments (38)

I like this option but my only concern is some people may have javascript disabled in which case they won't be able to post a comment...

True. But in my opinion the percentage of people with javascript disbaled is very, very small. And the percentage of people with javascript disabled that want to post a comment on my sites is an even smaller number.

Thanks for pointing that out. :blush:

It is fixed now.

Aine:

I have sent you a private email with regards to your comment on my blog. I believe my solution will work, but I can see why they are still spamming you here. Please review my procedure outlined in my email and let me know how it can be improved. I'm not a programmer, but perhaps you can find ways to make it better(?) :)

Works great. Haven't had any problems with it so far.

Guess it's another tool to make it harder for spammers.

Yeah but now man people are disabling java, especailly newbies, because they see it as just being used for adverts mostly, same as macromedia, 99% of the time it appears on your screen its an ad

tones. there is an important difference between Java and JavaScript. Java applets can be compared to Macromedia Flash objects. JavaScript, on the other hand is interpreted by the web browser itself, and it wisely used on web pages. Some people may disable JavaScript, but only advanced users would do...

Kass:

I want to try this plug-in, but my comments are set up so that viewers click on a link and a javascript window pops up with the comments form in it.

This means that on my individual entries, I don't have a form to fill out so I don't know where to put the tag. Any tips for me? :\

Enrico:

Thanks alot. hope this works.

Thanks for this plug-in!!! It really works great!!!

Downloaded! Will give this a go

Thank you for the plug-in. That's what I was looking for. :wink:

Is this plug-in compatible with MT 3.2? Thanks!

I am installing this plug-in. I think its great. I use google analitics to track my visiters and I have found that 99% of them have javascript so that won't be an issue for me.

Thanks!

I'm just going to try this out, was just going to hire a javascript programmer to do this as the idea makes a lot of sense.

I wouldn't be concerned about those with javascript turned off. Few do so, and for those who do a simple email link on the form suffices (email if you have problems posting).
Well done!

Thanks, Bruce.

I have been using this approach for almost two years and it works well. If really want to reduce spam, rename your comment script first, and then start using this plugin. That will make it very difficult for autmated spammers to determine the new script name, since the javascript will disguise it.

Nala [TypeKey Profile Page]:

Well. I started using this script a few days ago and it seemed to work well.

I renamed the script, rebuilt the individual archives, and didn't see any spam.

Today I started getting spam comments again. MT says they are from known spammers on bsb.spamlookup.net.

I'm assuming spammers have now altered their bots to look for disguised paths to the comments CGI.

While that is possible, Nala, it also may be the case that those spams were posted manually. I haven't seen much evidence for spambots grabbing the correct script URL from the javascript, but its difficult to sure.

I am installing this plug-in. I think its great. I use google analitics to track my visiters and I have found that 99% of them have javascript so that won't be an issue for me.

Thanks!

very good website thank you

izle:

Thanks for pointing that out.

It is fixed now.

DJ [TypeKey Profile Page]:

I've got several blogs on one MT install. Will this work on a domain other than the main domain that hosts the MT install?

DJ, yes it will.

Mike:

Mhumm. So far, so good, but I tried taking this one step further: I got this PHP script to generate a fake filename for fake comment URL. What do you think about this? Good idea? Bad idea?

Secondly, should I install this script also on other pages that allow comment submission? (i.e. the comment pages, the comment preview pages, etc.) I may be mistaken, but they seem to use the same form...

good your site thanks

I am installing this plug-in. I think its great. I use google analitics to track my visiters and I have found that 99% of them have javascript so that won't be an issue for me.

Thanks!

Is there anyway that this also lets me know what version of Java that they are using so i can see how far i can move the code?

perde :D

I appreciate that you keep your site going and allow comments. To me feedback is an interesting part of a website.

good your site thanks

okey:

thank you

Would it be possible to get this plug-in updated to work on dynamic pages?

Kino500,

That probably wouldn't be too difficult...

Note that you can implement this manually without too much effort. Follow the steps above but in place of the DisguiseCommentURL tag, put something like:

<script language='Javascript'>document.comments_form.action = 'http://' + 'your-domain.com/cgi-bin/mt/mt-c' + 'omments.cgi'; </script>

You can also view the source of this entry for another example.

Jerry [TypeKey Profile Page]:

Hi Mark,

I'm a total novice helping a friend. I noticed that the randomizer in your plugin might return a value of zero or $pathlength (the latter is probably impossible), in which case the whole path could show up in $part1 or $part2. The following is the way I want to change it, but need to verify java script syntax:

my $randomnumber = int (rand ($pathlength - 2)) + 1;

Would that work? What do you think?

I also installed this

Post a comment

Gift idea: Buy Seinfeld DVD box set, complete 9 seasons!