|
#1
|
||||
|
||||
|
SPAM Fighting Modification!
Hi folks,
I made a modifiction to the base code of 1.5 RC1 that substantially reduced the number of spams on my site (almost zero!). I want to share it with you but first I want to test it more. If you are using PP 1.5RC1 and suffering from heavy comment spam attacks and you like to test it, please leave a PM and I'll send you the modification to test. This is a combination of 2 methods, random/hashed comment saving command and use of JavaScript URL changing. The former prevents spammer attacks that have saved index.php?x=save_comment URL and second hides form ture save command from spam bots that don't interpret JScript.
__________________
Photoblog: http://pblog.raminia.com Powered by Pixelpost 1.7 |
|
#2
|
|||
|
|||
|
I'm in!
Once you have something that seems stable, I would love to give it a t try. I got over 90 spam yesterday and I am on track for the same today.
|
|
#3
|
||||
|
||||
|
For Pixelpost 1.5 RC1
Please note that this modification requires users to have JavaScript Enabled. This is a typical requirement but people who may still have fears from JScript and have it disable could not make comments anymore.
0- open the zip file 1- copy content of TO Addon to addons folder 2- use the included index.php instead of original index.php if you are using a modified version of that file (for AKISMET for example) add PHP Code:
} // end refererlog replace every instance of 'save_comment' and "save_comment" with $save_comment_str inside index.php 3- in your template (where comment form exists) add these lines after </form> HTML Code:
<script type="text/javascript"> trueAction = "index.php?x=<SAVE_COMMENT_COMMAND>"+"<IMAGE_ID>"; document.forms.commentform.action = trueAction; </script> 4- it's all done.
__________________
Photoblog: http://pblog.raminia.com Powered by Pixelpost 1.7 Last edited by raminia; 06-01-2006 at 07:14 AM. |
|
#4
|
|||
|
|||
|
Here goes!
Thanks for the mod. It is up and running now. I was going to put it in tomorrow and then I got 50+ spam in the last hour! I figured no better time than now. I'll let you know how it goes! Thanks!!!!!!!
|
|
#5
|
|||
|
|||
|
...
I am getting a 404 reply....
The site and comment field work just fine. On clicking to send comment I get this message... Not Found The requested URL /index.php was not found on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. Thoughts? |
|
#6
|
||||
|
||||
|
<ignore>
hmm take a look at line 157 Code:
if (isset($_GET['x'])&& $_GET['x']!='atom' && $_GET['x']!='rss' && $_GET['x']!='save_comment' ){
(as far as i saw at quick review you're not using 'save_comment' as GET[x] value) </ignore> //edit: duh sorry.. just checked the index.php in the .zip .. $save_comment_str is included in the check there.. sry .. i'll get another coffee now i think |
|
#7
|
||||
|
||||
|
Quote:
__________________
Photoblog: http://pblog.raminia.com Powered by Pixelpost 1.7 |
|
#8
|
||||
|
||||
|
Quote:
replace every instance of 'save_comment' and "save_comment" with $save_comment_str inside index.php if you are going to change your index.php manually.
__________________
Photoblog: http://pblog.raminia.com Powered by Pixelpost 1.7 |
|
#9
|
|||
|
|||
|
Raminia...
Thanks so much for the help. My blog is www.pixperiment.com. I will try the changes you suggested this afternoon, unfortunately I must go to work now :-)
|
|
#10
|
|||
|
|||
|
pennyjack, your photos are just beautiful!
|
| Post Reply |
| Thread Tools | |
|
|