Pixelpost

Authentic Photoblog Flavour


Go Back   Pixelpost Forum > DEVELOPMENT > Addons

Post Reply
 
Thread Tools
  #1  
Old 08-02-2005, 06:39 PM
raminia's Avatar
raminia+ Offline
Team Pixelpost
 
Join Date: Jan 2005
Location: FL, US
Posts: 3,706
Send a message via Yahoo to raminia
Addon: Bad-Behavior Anti Referer Spam

Info:
This is bad-behavior anti referer spam script that it convereted it to a Pixelpost addon. I will recognize machines from humans and rejects the spammer bots from reaching your site with a 412 error page. It will not prevent all of spammers from reaching your site but it works well!


To keep track of the orginal script checkout http://www.ioerror.us/software/bad-behavior/

Download Link:
http://www.pixelpost.org/v1/index.ph...amp;details=96

Readme.txt:
This is actually a very BETA version!

1- create bad-behavior folder inside includes directory and copy all the files
inside the bad-behavior directory of the package into that directory on your
site.

2- copy the addon to addon folder

3- use <BB_HEADER> in the header section of your template (between <head> and
</head>)

Extra cares:
This addon is not enough for many and to be more secure make modifications in index.php of 1.4.2 to show error page 404 to everyone who wants to reach page index.php?x=ref or index.php?x=referer
The modification (copy/paste from other related thread)

since almost all of the spammer come to my ref page I changed the index.php to point error when spam bot wants to see the refs and die.

at about line of 440 of index.php (version 1.4.2)
replace
Code:
// fix a popuplink
// refererlog
if($_GET['x'] == "referer") {
    header("Location: index.php");
    exit;
    } // end refererlog
with

Code:
// fix a popuplink
// refererlog
if($_GET['x'] == "referer") {
    	header("HTTP/1.0 404 Not Found");

			exit;
    } // end refererlog
__________________
Photoblog: http://pblog.raminia.com Powered by Pixelpost 1.7
Reply With Quote
  #2  
Old 08-03-2005, 01:47 AM
blinking8s's Avatar
blinking8s+ Offline
über loafer
 
Join Date: Oct 2004
Location: Bowling Green, Ky
Posts: 3,428
Send a message via ICQ to blinking8s Send a message via AIM to blinking8s Send a message via MSN to blinking8s Send a message via Skype™ to blinking8s
*sigh* I'll try to test it out on the pixelpsot demo, its the only access to spam I have but I am so pressed for time, I always say I will test and I havent had the chance to yet!

looks very promising though
__________________
i should say more clever stuff
Reply With Quote
  #3  
Old 08-03-2005, 04:09 PM
netwalker's Avatar
netwalker Offline
pp regular
 
Join Date: Mar 2005
Location: Queretaro, Mexico
Posts: 43
Send a message via MSN to netwalker Send a message via Yahoo to netwalker
I installed the add-on since yesterday. So far it has only detected one referer spam. How long it takes to match them? Because I'm seeing the url *.pulsar.net, but it hasn't identyfied as bad behavior. Or a manual add can be implemented?

I was using an .htaccess solution, and to give a full test to the plugin I have disabled the .htaccess file.
__________________
Netwalker

Photoblog: http://fotoblog.fandino.net
Blog: http://www.fandino.net/cesar/ (In spanish)


Visit Foto Digital Mexico
Reply With Quote
  #4  
Old 08-03-2005, 04:58 PM
raminia's Avatar
raminia+ Offline
Team Pixelpost
 
Join Date: Jan 2005
Location: FL, US
Posts: 3,706
Send a message via Yahoo to raminia
I'm using every solution possible but there are still Spams that penetrate!
I said it works but not all the times, not with the spams that act like humans.
__________________
Photoblog: http://pblog.raminia.com Powered by Pixelpost 1.7
Reply With Quote
  #5  
Old 08-03-2005, 06:14 PM
Connie
Guest
 
Posts: n/a
I added pulsar.net to the banlist and when I go to admin, I clean the referrers and there they go...
Reply With Quote
  #6  
Old 08-03-2005, 06:33 PM
raminia's Avatar
raminia+ Offline
Team Pixelpost
 
Join Date: Jan 2005
Location: FL, US
Posts: 3,706
Send a message via Yahoo to raminia
Quote:
Originally Posted by Connie
I added pulsar.net to the banlist and when I go to admin, I clean the referrers and there they go...
but this won't prevent the SOP attacks from that site.
you need to .htaccess it!
__________________
Photoblog: http://pblog.raminia.com Powered by Pixelpost 1.7
Reply With Quote
  #7  
Old 08-03-2005, 07:12 PM
Connie
Guest
 
Posts: n/a
yes, I know it just cleans the list
Reply With Quote
  #8  
Old 08-31-2005, 06:42 AM
japanwindow Offline
pp veteran
 
Join Date: May 2005
Location: Japan
Posts: 85
Testing Bad Behavior

I have loaded Bad Behavior, but I removed the .htaccess file when I did that. If I still need .htaccess filtering then that's too bad...

Before loading Bad Behavior, I had a recommendation to try "Referrer Karma." If anyone is interested, here's a link:

http://unknowngenius.com/blog/wordpress/ref-karma/

Referrer Karma seems to be an effective program that won't bog a site down. It was designed specifically for referrer spam. I'm sure that it could be adapted as an add-on just like you did with Bad Behavior, because it's also very generic to PHP programs. It sometimes filters out genuine surfers coming from obscure search engines, so users should be prepared to manually make adjustments from time to time.

I don't know how to make it an "add-on" but I may give it a try -- one month of Bad Behavior compared with one month of Referrer Karma.
__________________
========================
Photosensibility
http://www.photosensibility.com
Reply With Quote
  #9  
Old 08-31-2005, 06:57 AM
raminia's Avatar
raminia+ Offline
Team Pixelpost
 
Join Date: Jan 2005
Location: FL, US
Posts: 3,706
Send a message via Yahoo to raminia
keep the .htaccess thing...
thnx for the link

Bad-Behavior is successfull on average of 20-30 % of the cases.
__________________
Photoblog: http://pblog.raminia.com Powered by Pixelpost 1.7
Reply With Quote
Post Reply


Thread Tools




All times are GMT. The time now is 04:30 PM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd. | Style Design: d3 designs