Signup | Login  | Free Blog 

some security stuff!

 Music Forums Bugs, Questions, & Technical Help some security stuff!  
Post new topicReply to topic Message
mischko
ubw rookie
ubw rookie



Joined: Jun 09, 2004
Location: Germany, Europe
Posts: 62

Posted: Tue Sep 21, 2004 5:31 pm Reply with quote

i'd like to share my -htaccess file with you along with some comments! i had withing 2 days 30 gigs of unwanted traffic due to deeplinking to a 3 mb flash file which got posted on some retarded forum!

this parts tells the server to enable the rewrite_mod for apache, you have to have this installed to be able to use it, most hosting companies have it installed!
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?rydoka\.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?rydoka\.com.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?voice-of-the-raven\.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?euronuke\.com.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://(protector\.)?warcenter\.se/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://(www|images)\.google\..+/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://[^/]+/translate_c\?.+$ [NC]
the upper block will allow the following sites to be able to link to resources on www.rydoka.com
http://www.rydoka.com/*
http://www.rydoka.com*
http://www.voice-ofthe-raven.com/*
http://www.euronuke.com/*
http://protector.warcenter.se/*
watch the /* and the *
the google entry will allow google to link pics on the site when searching/indexing your site!

RewriteCond %{REQUEST_URI} !/bad-ref.gif$
RewriteRule \.(gif|jpe?g|png|zip|arj|tar|exe|swf)$ http://www.rydoka.com/bad-ref.gif [R,L]
this will put an image on any site you didnt allow to have links to your site replacing all sources from your site with a picture which are jpq, gif, uip, arj, tar, exe! you can put like mpg, wmv, mov, ram and so on, too! depending what you want to be blocked from being deeplinked to your site!

SetEnvIfNoCase Referer ".*(flabber|hutsefruts|ratiatum|gathering|tweakers|matthias|nedstatbasic|sydox|nieuwsupdate|nieuwstracker|lastpak|hack|hacker).*" BadReferer
this will block any referere to your site which have any of the words in their URL linking to you!!! here you also prevent other search engines from linking to you!
order allow,deny
the following lines will block any host with ending on the mentioned parts of the host name! again, here you can e. g. stop certain data mining bots from accessing your site, i did ban such bots on my Protector
deny from .interbusiness.it
deny from .libero.it
deny from .tiscali.it
deny from .2die4.com
deny from .net24.it
deny from .dialup.pol.co.uk
deny from .pol.co.uk
deny from .esat.net
deny from .eutelia.it
deny from .tele2.it
deny from .nycap.rr.com
deny from .ae
deny from .af
deny from .az
deny from .bd
deny from .bn
deny from .cs
deny from .iq
deny from .ir
deny from .kw
deny from .ly
deny from .tm
deny from .sy
deny from .sa
deny from .ps
deny from .pk
deny from .flabber.nl
deny from 207.42
deny from .nanocom.com
this line will block the previous defined bad referer hosts/dns
deny from env=BadReferer
allow from all

you see, i am damned picky!!!
had too many ppl from the blocked countries/domains/hosts trying to mess with me!
wassa bad idea! >:-)
hope it will be of use to you!
Back to top View user's profile
rechat
moderator



Joined: Feb 06, 2004
Location: California
Posts: 508

Posted: Tue Sep 21, 2004 5:51 pm Reply with quote

I understood absolutely nothing out of that.
Back to top View user's profile
unproject
moderator



Joined: Jul 01, 2004
Location: Turkey
Posts: 2134

Posted: Tue Sep 21, 2004 5:54 pm Reply with quote

VERY GOOD STUFF MAN!!!!!!!!!!!!!!

uh what is this about?
Back to top View user's profileSend e-mail
mischko
ubw rookie
ubw rookie



Joined: Jun 09, 2004
Location: Germany, Europe
Posts: 62

Posted: Tue Sep 21, 2004 5:54 pm Reply with quote

lol i didnt understand it either first time!

if ya need help with it, let me know!
Back to top View user's profile
unproject
moderator



Joined: Jul 01, 2004
Location: Turkey
Posts: 2134

Posted: Tue Sep 21, 2004 5:56 pm Reply with quote

uh rechat do we need help about it?
Back to top View user's profileSend e-mail
minusme
Site Admin



Joined: Jan 25, 2004
Location: New York
Posts: 3648

Posted: Tue Sep 21, 2004 5:57 pm Reply with quote

mischko wrote:
lol i didnt understand it either first time!

if ya need help with it, let me know!


LOL... Laughing Laughing Laughing Laughing Laughing Laughing

Remember we are a "music" site!!!! LOL

I can certainly appreciate it though! You really took some time to tighten up access!!!!

That's really cool!
Ron
Back to top View user's profileSend e-mail
mischko
ubw rookie
ubw rookie



Joined: Jun 09, 2004
Location: Germany, Europe
Posts: 62

Posted: Tue Sep 21, 2004 6:04 pm Reply with quote

LOL i know, Ron!!!

but i thought it might help some ppl here!

too many idiots out trying to ruin our work!!!
Back to top View user's profile
unproject
moderator



Joined: Jul 01, 2004
Location: Turkey
Posts: 2134

Posted: Tue Sep 21, 2004 6:10 pm Reply with quote

mischko wrote:
LOL i know, Ron!!!

but i thought it might help some ppl here!

too many idiots out trying to ruin our work!!!


yes man!!!!! let us not allow them to ruin it!!!!!!!!!!!!!!!

(uh i said good, didn't i rechat?......... rechat?....... rechaaaaaaaaaattttttttt?????)
Back to top View user's profileSend e-mail
mischko
ubw rookie
ubw rookie



Joined: Jun 09, 2004
Location: Germany, Europe
Posts: 62

Posted: Tue Sep 21, 2004 6:14 pm Reply with quote

unproject?
it's off topic now!
i loooooooooove ya music!!!!
Back to top View user's profile
unproject
moderator



Joined: Jul 01, 2004
Location: Turkey
Posts: 2134

Posted: Tue Sep 21, 2004 6:18 pm Reply with quote

hahaha yeah i spoiled it at last. thanks for diggin my music man, you are the man
Back to top View user's profileSend e-mail
mischko
ubw rookie
ubw rookie



Joined: Jun 09, 2004
Location: Germany, Europe
Posts: 62

Posted: Tue Sep 21, 2004 6:29 pm Reply with quote

big fat wet kiss for you!!!!

i wish i could make music!!!!
Crying or Very sad
Back to top View user's profile
unproject
moderator



Joined: Jul 01, 2004
Location: Turkey
Posts: 2134

Posted: Tue Sep 21, 2004 6:33 pm Reply with quote

mischko wrote:
big fat wet kiss for you!!!!

i wish i could make music!!!!
Crying or Very sad


why not try it man? people can fly..
Back to top View user's profileSend e-mail
rechat
moderator



Joined: Feb 06, 2004
Location: California
Posts: 508

Posted: Tue Sep 21, 2004 6:45 pm Reply with quote

unproject wrote:

(uh i said good, didn't i rechat?......... rechat?....... rechaaaaaaaaaattttttttt?????)


sorry bud, can't help ya there.
Back to top View user's profile
Post new topic Reply to topic