php forum
php mysql forum
php mysql smarty
 
Topic Options
#317112 - 05/31/08 04:53 AM Give harvesters some emailadresses
arentzen Offline
Newbie

Registered: 10/05/06
Posts: 22
Loc: Denmark
Hej
This post is dedicated for those who run their forums on shared servers, and do have problems with exceeded bandwidth and harvesters.

Im running UBB 7.2.2 and when I view in the referrer log, I'd noticed a lot of strange visits from spammer-sites which problably harvest emails, and my host told me to decrease bandwidth or moving my board. Therefore I'd like to share a little script which generate false emails and links to harvesters. (Harvesters doesnt respect a robots.txt file!).

The script does only requires PHP, and can be used in all pages or forums.
Php Code:

<?php
/* Script which generates false emailadresses and bogus links in a endless loop */

$min_length = 6; // min. numbers of chars & letters in emailadress 
$max_length = 12; // max. numbers of chars & letters in emailadress
$min_emails = 100; // min. numbers of emails
$max_emails = 200; // max. numbers of emails
$min_bogus_links = 1; //min. numbers of bogus links
$max_bogus_links = 5; // max. numbers of bogus links

mt_srand ((double) microtime() * 1000000);
$your_domain = $_SERVER['SERVER_NAME'];
$self = $_SERVER['PHP_SELF'];
$set_to_use = "abcdefghijklmnopqrstuvwxyz_1234567890";
$set_length = strlen($set_to_use);
$number_of_emails = mt_rand($min_emails,$max_emails);

echo"e-mailadresses<br>";
While ($number_of_emails > 0)
{
	$number_of_emails--;
	$this_ones_length = mt_rand($min_length,$max_length);
	$s_x = "";
	for ($b_x = 1; $b_x <= $this_ones_length; $b_x++)
	{
		$s_x = $s_x . $set_to_use[mt_rand(1,$set_length)];
	}
	echo "<a href=\"mailto:".$s_x."@".$your_domain."\">".$s_x."@".$your_domain."</a>;&nbsp; ";

}
echo"<p>links<br>";
$this_run_bogus_links = mt_rand($min_bogus_links,$max_bogus_links);

While ($this_run_bogus_links > 0)
{
	$this_run_bogus_links--;
	$this_ones_length = mt_rand($min_length,$max_length*2);
	$s_x = "";
	for ($b_x = 1; $b_x <= $this_ones_length; $b_x++)
	{
		$s_x = $s_x . $set_to_use[mt_rand(1,$set_length)];
	}
	echo "<a href=\"http://www.".$your_domain."".$self."?".$s_x."\">"."http://www.".$your_domain."/".$s_x."</a><br>";
}
?> 
 


Heres a how to do:
1. Copy the script into a text editor and name the file 'emails.php' ( or whatever you prefer)
2. Upload it to server
3. upload 'pixel.gif' to server (NOTE! pixel.gif is a 1x1 transparent pixel, and is therefore invisible)
4. Call the script with a link to it in the top and bottom of your board, ex. header.php and footer.php
Html:
<a href="/emails.php"><img src="/pixel.gif" border="0" alt="" /></a> 


Enjoy!


Attachments
pixel.gif

helppixel.gif


_________________________
www.trosfrihed.dk
Custom Ubb 7.5.2

Top
#317120 - 05/31/08 11:37 AM Re: Give harvesters some emailadresses [Re: arentzen]
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
Grazie - JustDave did something like this for the old 5-series - anything to give spammers some of their own medicine thumbsup
_________________________
- Allen wavey
- What Drives You?

Top
#317127 - 05/31/08 06:37 PM Re: Give harvesters some emailadresses [Re: AllenAyres]
Gizmo Offline

Wizard

Registered: 01/10/00
Posts: 5354
Loc: Portland, OR, USA
Well, I'd hope you don't have any catchall email addrs setup, as you seem to be referring your own domain, i think it'd be more fun to refer their hostname wink...
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design & Development President
UBB.Threads: My UBBSkins, UBB.Sitemaps

Top
#317131 - 05/31/08 11:06 PM Re: Give harvesters some emailadresses [Re: Gizmo]
sirdude Offline
Enthusiast

Registered: 11/08/03
Posts: 490
Loc: SoCal
use it as your 404 page laugh
_________________________

Top



Moderator:  sirdude 
Latest Posts
[7.2.1] - Naked shoutbox
by bellaonline
05/05/12 05:00 PM
[7.x] Stop Forum Spam Integration v0.4
by bellaonline
05/05/12 03:53 PM
Shout Box

(Views)Popular Topics
Known public proxy servers 1689885
Integrated Index Page (IIP) 5.3.1 555705
Finished-[6.5.2] Games Arcade Deluxe v1.9 501236
Integrated Index Page (IIP) 5.1.1 415112
TLD Bv2.1 Released - Threads Links Directory 396822
[6.0x] Who's Online 4.0.0 [Finished] 389412
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 330423
Q & A 298663
Slash UBB 266936
[6.3.x] [beta] Hit Hack 2.0 227970
Forum Stats
13621 Members
59 Forums
37191 Topics
295716 Posts

Max Online: 686 @ 06/28/07 07:04 AM

 

 

 
fusionbb message board php hacks