# ostatnia modyfikacja pliku 2007-03-09 # usunalem te wpisy, ktore nigdy sie u mnie nie pojawily RewriteEngine On # Forbid requests for exploits & annoyances # CodeRed RewriteCond %{REQUEST_URI} ^/.*\.printer$ [NC,OR] # Email RewriteCond %{REQUEST_URI} (mail.?form|form|form.?mail|mail|mailto)\.(cgi|exe|pl)$ [NC,OR] # MSOffice RewriteCond %{REQUEST_URI} ^/(MSOffice|_vti) [NC,OR] # Unknown/mixed RewriteCond %{REQUEST_URI} ^/(cgi\-bin/|cgi\-local/)\FormMail.(cgi|php|pl) [NC,OR] RewriteCond %{REQUEST_URI} ^/(cgi\-bin/|cgi\-local/)\FormMail [NC,OR] RewriteCond %{REQUEST_URI} ^/FormMail [NC,OR] RewriteCond %{REQUEST_URI} ^/sumthin [NC,OR] RewriteCond %{REQUEST_URI} ^/ok [NC,OR] # Various RewriteCond %{REQUEST_URI} ^/(bin/|cgi/|cgi\-local/) [NC,OR] RewriteRule .* - [F] # Forbid if *faked* blank Referer *or* UA RewriteCond %{HTTP_REFERER} ^-$ [OR] RewriteCond %{HTTP_USER_AGENT} ^-$ RewriteRule .* - [F] # Banning BOTS bellow # Address harvesters RewriteCond %{HTTP_USER_AGENT} ^[a-z\ ]+$ [OR] RewriteCond %{HTTP_USER_AGENT} ^E?Mail.?(Collect|Harvest|Magnet|Reaper|Siphon|Sweeper|Wolf) [NC,OR] RewriteCond %{HTTP_USER_AGENT} (DTS.?Agent|Email.?Extrac|deltaSCAN|hexillion) [NC,OR] # Image-grabbers RewriteCond %{HTTP_USER_AGENT} ^(webcollage|EasyDL|Sqworm) [NC,OR] # "Gray-hats" RewriteCond %{HTTP_USER_AGENT} (girafa\.com|grub\-client|Netcraft|Nutch|iltrovatore|SurfControl) [NC,OR] # Site-grabbers RewriteCond %{HTTP_USER_AGENT} ^(UtilMind|NetZIP) [NC,OR] RewriteCond %{HTTP_USER_AGENT} ^Web.?(Cop|Pix|Strip|ZIP) [NC,OR] RewriteCond %{HTTP_USER_AGENT} WebCapture [NC,OR] # Tools + Unknown RewriteCond %{HTTP_USER_AGENT} (FrontPage|Indy.?Library|RPT\-HTTPClient) [NC,OR] RewriteCond %{HTTP_USER_AGENT} ^(curl|larbin|libwww|PHP|Python|Zeus|NPBot|TurnitinBot|Nutscrape) [NC,OR] RewriteCond %{HTTP_USER_AGENT} ^(Microsoft|MFC).(Data|Internet|URL|WebDAV|Foundation).(Access|Explorer|Control|MiniRedir|Class) [NC,OR] # Unknown (any edits to this would be appreciated!) RewriteCond %{HTTP_USER_AGENT} ^Miss.*g.*.?Locat.* [NC,OR] RewriteCond %{HTTP_USER_AGENT} ^(Franklin|Missauga|Missigua).?(Bot|Locat) [NC,OR] RewriteCond %{HTTP_USER_AGENT} ^(Internet|Missouri|Program).?(Explore|College|Shareware) [NC,OR] RewriteCond %{HTTP_USER_AGENT} ^(Mac|WEP).?(Finder|Search) [NC,OR] RewriteCond %{HTTP_USER_AGENT} ^(Moz+illa|MSIE).?[0-9]?.?[0-9]?[0-9]?$ [NC,OR] RewriteCond %{HTTP_USER_AGENT} ^Mozilla/[0-9]\.[0-9][0-9]?.\(compatible\)$ [NC,OR] RewriteCond %{HTTP_USER_AGENT} (Dupa|Fuck|NaverRobot|ZyBorg) [NC] # RewriteRule!^(includes/403\.html|cgi-bin/various_filenames\.pl|various_filenames\.html) - [F] # Alternate RewriteRule without allowing access to custom 403 or trap pages, or cgi scripts: RewriteRule !robots\.txt - [F] RewriteCond %{THE_REQUEST} ^GET\ http: [NC,OR] RewriteCond %{HTTP_USER_AGENT} ^(Snoopy|User-Agent:) [NC] RewriteRule .* http://download.microsoft.com/download/1/6/5/165b076b-aaa9-443d-84f0-73cf11fdcdf8/WindowsXP-KB835935-SP2-ENU.exe [R=301] ------------------------------------------------------------------------------------------------------------- # poprzednia/oryginalna zawartosc regul 2006-06-20 RewriteEngine On # Hotlink block for jpg/jpeg/gif/png/bmp #RewriteCond %{HTTP_REFERER}!^http://YOUR_DOMAIN.TDL/.*$ [NC] #RewriteCond %{HTTP_REFERER}!^http://www.YOUR_DOMAIN.TDL/.*$ [NC] #RewriteRule .*\.(jpg|jpeg|gif|png|bmp)$ http://bandwidth.theft.denied [R,NC] # Forbid requests for exploits & annoyances # CodeRed RewriteCond %{REQUEST_URI} ^/default\.(ida|idq) [NC,OR] RewriteCond %{REQUEST_URI} ^/.*\.printer$ [NC,OR] # Email # RewriteCond %{REQUEST_URI} (mail.?form|form|form.?mail|mail|mailto)\.(cgi|exe|pl)$ [NC,OR] # MSOffice RewriteCond %{REQUEST_URI} ^/(MSOffice|_vti) [NC,OR] # Nimda RewriteCond %{REQUEST_URI} ^/(admin|cmd|httpodbc|nsiislog|root|shell)\.(dll|exe) [NC,OR] # Unknown/mixed RewriteCond %{REQUEST_URI} ^/(cltreq.asp|owssrv.dll) [NC,OR] RewriteCond %{REQUEST_URI} ^/missing.html [NC,OR] RewriteCond %{REQUEST_URI} ^/(cgi\-bin/|cgi\-local/)\FormMail.(cgi|php|pl) [NC,OR] RewriteCond %{REQUEST_URI} ^/(cgi\-bin/|cgi\-local/)\FormMail [NC,OR] RewriteCond %{REQUEST_URI} ^/FormMail.(cgi|php|pl) [NC,OR] RewriteCond %{REQUEST_URI} ^/FormMail [NC,OR] RewriteCond %{REQUEST_URI} ^/sumthin [NC,OR] RewriteCond %{REQUEST_URI} ^/ok [NC,OR] ReWriteCond %{REQUEST_URI} ^/default.htm [NC] RewriteRule .* - [F] # Various RewriteCond %{REQUEST_URI} ^/(bin/|cgi/|cgi\-local/) [NC,OR] #RewriteCond %{THE_REQUEST} ^GET\ http [NC,OR] RewriteCond %{REQUEST_URI} /sensepost\.exe [NC] RewriteRule .* - [F] # Forbid if blank Referer *and* UA #RewriteCond %{HTTP_REFERER} ^$ #RewriteCond %{HTTP_USER_AGENT} ^$ #RewriteRule !robots\.txt - [F] # Forbid if *faked* blank Referer *or* UA RewriteCond %{HTTP_REFERER} ^-$ [OR] RewriteCond %{HTTP_USER_AGENT} ^-$ RewriteRule .* - [F] # Banning BOTS bellow # Address harvesters RewriteCond %{HTTP_USER_AGENT} ^(autoemailspider|ExtractorPro) [NC,OR] RewriteCond %{HTTP_USER_AGENT} ^E?Mail.?(Collect|Harvest|Magnet|Reaper|Siphon|Sweeper|Wolf) [NC,OR] RewriteCond %{HTTP_USER_AGENT} (DTS.?Agent|Email.?Extrac) [NC,OR] #RewriteCond %{HTTP_REFERER} guestbook [NC,OR] RewriteCond %{HTTP_USER_AGENT} deltaSCAN [NC,OR] RewriteCond %{HTTP_REFERER} iaea\.org [NC,OR] # Image-grabbers RewriteCond %{HTTP_USER_AGENT} ^(AcoiRobot|FlickBot|webcollage) [NC,OR] RewriteCond %{HTTP_USER_AGENT} ^(Express|Mister|Web).?(Web|Pix|Image).?(Pictures|Collector)? [NC,OR] RewriteCond %{HTTP_USER_AGENT} ^Image.?(fetch|Stripper|Sucker) [NC,OR] # "Gray-hats" dodalem iltrovatore RewriteCond %{HTTP_USER_AGENT} ^(Atomz|BlackWidow|BlogBot|EasyDL|Marketwave|Sqworm|SurveyBot|Webclipping\.com) [NC,OR] RewriteCond %{HTTP_USER_AGENT} (girafa\.com|gossamer\-threads\.com|grub\-client|Netcraft|Nutch|iltrovatore|deltascan|findlinks) [NC,OR] # Site-grabbers RewriteCond %{HTTP_USER_AGENT} ^(eCatch|(Get|Super)Bot|Kapere|HTTrack|JOC|Offline|UtilMind|Xaldon) [NC,OR] RewriteCond %{HTTP_USER_AGENT} ^Web.?(Auto|Cop|dup|Fetch|Filter|Gather|Go|Leach|Mine|Mirror|Pix|QL|RACE|Sauger) [NC,OR] RewriteCond %{HTTP_USER_AGENT} ^Web.?(site.?(eXtractor|Quester)|Snake|ster|Strip|Suck|vac|walk|Whacker|ZIP) [NC,OR] RewriteCond %{HTTP_USER_AGENT} WebCapture [NC,OR] RewriteCond %{HTTP_USER_AGENT} ^DISCo\ Pump [NC,OR] RewriteCond %{HTTP_USER_AGENT} ^EirGrabber [NC,OR] RewriteCond %{HTTP_USER_AGENT} ^Net\ Vampire [NC,OR] # Image-grabbers RewriteCond %{HTTP_USER_AGENT} ^(AcoiRobot|FlickBot|webcollage) [NC,OR] RewriteCond %{HTTP_USER_AGENT} ^(Express|Mister|Web).?(Web|Pix|Image).?(Pictures|Collector)? [NC,OR] RewriteCond %{HTTP_USER_AGENT} ^Image.?(fetch|Stripper|Sucker) [NC,OR] # "Gray-hats" dodalem iltrovatore RewriteCond %{HTTP_USER_AGENT} ^(Atomz|BlackWidow|BlogBot|EasyDL|Marketwave|Sqworm|SurveyBot|Webclipping\.com) [NC,OR] RewriteCond %{HTTP_USER_AGENT} (girafa\.com|gossamer\-threads\.com|grub\-client|Netcraft|Nutch|iltrovatore|deltascan|SurfControl) [NC,OR] # Site-grabbers RewriteCond %{HTTP_USER_AGENT} ^(eCatch|(Get|Super)Bot|Kapere|HTTrack|JOC|Offline|UtilMind|Xaldon) [NC,OR] RewriteCond %{HTTP_USER_AGENT} ^Web.?(Auto|Cop|dup|Fetch|Filter|Gather|Go|Leach|Mine|Mirror|Pix|QL|RACE|Sauger) [NC,OR] RewriteCond %{HTTP_USER_AGENT} ^Web.?(site.?(eXtractor|Quester)|Snake|ster|Strip|Suck|vac|walk|Whacker|ZIP) [NC,OR] RewriteCond %{HTTP_USER_AGENT} WebCapture [NC,OR] RewriteCond %{HTTP_USER_AGENT} ^DISCo\ Pump [NC,OR] RewriteCond %{HTTP_USER_AGENT} ^EirGrabber [NC,OR] RewriteCond %{HTTP_USER_AGENT} ^Net\ Vampire [NC,OR] RewriteCond %{HTTP_USER_AGENT} ^NetZIP [NC,OR] # Tools # wywalilem Java bo wp uzywa i Wget RewriteCond %{HTTP_USER_AGENT} ^(curl|Dart.?Communications|Enfish|htdig|larbin) [NC,OR] RewriteCond %{HTTP_USER_AGENT} (FrontPage|Indy.?Library|RPT\-HTTPClient) [NC,OR] RewriteCond %{HTTP_USER_AGENT} ^(libwww|PHP|Python|www\.thatrobotsite\.com|webbandit|Zeus) [NC,OR] RewriteCond %{HTTP_USER_AGENT} ^(Microsoft|MFC).(Data|Internet|URL|WebDAV|Foundation).(Access|Explorer|Control|MiniRedir|Class) [NC,OR] # Unknown (any edits to this would be appreciated!) RewriteCond %{HTTP_USER_AGENT} Cherry.?Picker [NC,OR] RewriteCond %{HTTP_USER_AGENT} Educate.?Search|Full.?Web.?Bot|IUFW.?Web [NC,OR] RewriteCond %{HTTP_USER_AGENT} ^Miss.*g.*.?Locat.* [NC,OR] RewriteCond %{HTTP_USER_AGENT} ^(ChinaClaw|Crescent|Custo|EyeNetIE|Go-Ahead-Got-It|GornKer|GrabNet|Grafula) [NC,OR] RewriteCond %{HTTP_USER_AGENT} ^(HMView|InterGET|Irvine|LeechFTP|MIDown|Navroad|NearSite|NetSpider|NICErsPRO) [NC,OR] RewriteCond %{HTTP_USER_AGENT} ^(NPBot|Octopus|PageGrabber|pavuk|pcBrowser|PersonaPilot|puf|ReGet|SearchExpress) [NC,OR] RewriteCond %{HTTP_USER_AGENT} ^(SuperHTTP|Surfbot|tAkeOut|TurnitinBot|VoidEYE|WebBandit|WebReaper) [NC,OR] RewriteCond %{HTTP_USER_AGENT} ^(Crawl_Application|Lachesis|Nutscrape) [NC,OR] RewriteCond %{HTTP_USER_AGENT} ^[CDEFPRS](Browse|Eval|Surf) [NC,OR] RewriteCond %{HTTP_USER_AGENT} ^(Demo|Full.?Web|Lite|Production|Franklin|Missauga|Missigua).?(Bot|Locat) [NC,OR] RewriteCond %{HTTP_USER_AGENT} (efp@gmx\.net|hhjhj@yahoo\.com|lerly\.net|mapfeatures\.net|metacarta\.com|ZyBorg) [NC,OR] RewriteCond %{HTTP_USER_AGENT} ^(Industry|Internet|IUFW|Lincoln|Missouri|Program).?(Program|Explore|Web|State|College|Shareware) [NC,OR] RewriteCond %{HTTP_USER_AGENT} ^(Mac|Ram|Educate|WEP).?(Finder|Search) [NC,OR] RewriteCond %{HTTP_USER_AGENT} ^(Moz+illa|MSIE).?[0-9]?.?[0-9]?[0-9]?$ [NC,OR] RewriteCond %{HTTP_USER_AGENT} ^Mozilla/[0-9]\.[0-9][0-9]?.\(compatible\)$ [NC,OR] RewriteCond %{HTTP_USER_AGENT} (Dupa|Fuck) [NC,OR] RewriteCond %{HTTP_USER_AGENT} NaverRobot [NC] # RewriteRule!^(includes/403\.html|cgi-bin/various_filenames\.pl|various_filenames\.html) - [F] # Alternate RewriteRule without allowing access to custom 403 or trap pages, or cgi scripts: RewriteRule !robots\.txt - [F] RewriteCond %{THE_REQUEST} ^GET\ http: [NC,OR] RewriteCond %{HTTP_USER_AGENT} ^(Snoopy|User-Agent:) [NC] RewriteRule .* http://download.microsoft.com/download/1/6/5/165b076b-aaa9-443d-84f0-73cf11fdcdf8/WindowsXP-KB835935-SP2-ENU.exe [R=301]