<IfModule mod_bt.c>
	TrackerHome			/sanity/tr5
	TrackerFlags		AllowScrapeFull AllowScrapeVerbose AllowScrapeXML AllowScrapeGeneral -RequireReg
	Listen *:6969

	<IfModule mod_perl.c>
		PerlModule			Apache::ModBT
		PerlModule			Apache::ModBT::LeechNuker
	</IfModule>

	LogLevel		Debug
	ServerName		tracker.yi.org
	DocumentRoot	/opt/apache2/htdocs

	# Root URL
	<LocationMatch "^/$">
		SetHandler		modbt-root
	</LocationMatch>

	# Tracker URL
	<Location "/announce">
		SetHandler		modbt-announce

		<IfModule mod_perl.c>
			PerlFixupHandler	Apache::ModBT::LeechNuker
		</IfModule>

		<IfModule mod_rewrite.c>
			RewriteEngine	On

			# Enable this if you don't want people to be able to set shield mode themselves
			#RewriteCond		%{QUERY_STRING}	^.*shield=1
			#RewriteRule		(.*)	-	[F]

			# Activate shield mode on peers that are known to be good seeders
			RewriteCond		%{QUERY_STRING}	!^.*shield=1
			RewriteCond		%{REMOTE_ADDR} ^64.180.69.230 [OR]
			RewriteCond		%{REMOTE_ADDR} ^64.180.73.223 [OR]
			RewriteCond		%{REMOTE_ADDR} ^64.180.64.237 [OR]
			RewriteCond		%{REMOTE_ADDR} ^64.180.65.14
			RewriteRule		(.*)	/announce?shield=1	[PT,L,QSA,NE,NS]
		</IfModule>
	</Location>
	
	# Scrape URL
	<Location "/scrape">
		SetHandler		modbt-scrape
	</Location>
		
	# Register URL
	<Location "/register">
		SetHandler		modbt-register
	</Location>
</IfModule>
