raminia
08-02-2005, 06:39 PM
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.php?x=downloads&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
// fix a popuplink
// refererlog
if($_GET['x'] == "referer") {
header("Location: index.php");
exit;
} // end refererlog
with
// fix a popuplink
// refererlog
if($_GET['x'] == "referer") {
header("HTTP/1.0 404 Not Found");
exit;
} // end refererlog
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.php?x=downloads&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
// fix a popuplink
// refererlog
if($_GET['x'] == "referer") {
header("Location: index.php");
exit;
} // end refererlog
with
// fix a popuplink
// refererlog
if($_GET['x'] == "referer") {
header("HTTP/1.0 404 Not Found");
exit;
} // end refererlog