• User

    aiutatemi a modificare ht.access

    Ciao a tutti, sto cercando di attivare l'url rewrite sul mio forum ma sembra una cosa impossibile, qui di seguito il codice:

    #php_flag register_globals 0 register_globals off magic_quotes_gpc on
    #php_value memory_limit 32M
    #Options +FollowSymlinks
    # Disable the files listing feature All -Indexes
    ##################################
    #      Errors Pages - BEGIN      #
    ##################################
    ##################################
    # Decomment these lines to enable error document management.
    # You can add absolute path if you want always the correct path being parsed.
    # Something like:
    # ErrorDocument 400 http://www.icyphoenix.com/errors.php?code=400
    ##################################
    #ErrorDocument 400 /errors.php?code=400 401 /errors.php?code=401 403 /errors.php?code=403 404 /errors.php?code=404 500 /errors.php?code=500
    ##################################
    #       Errors Pages - END       #
    ##################################
    RewriteEngine On
    #This may cause isues with subdirs and so I have not enabled it.
    #RewriteBase /
    #Make sure the whole site goes to [www.mysite.com](http://www.mysite.com) instead of mysite.com. This is good for the search engines
    #Edit and uncomment the below lines for your own site. sure to replace icyphoenix.com with your site address.
    #RewriteCond %{HTTP_HOST} ^insaneproject.altervista.org
    #RewriteRule (.*) http://www.insaneproject.altervista.org/$1 [R=301,L]
    ##################################
    # Block Hacking Attempts - BEGIN #
    ##################################
    ##################################
    # CONDITIONS
    ##################################
    # STRICT CONDITION %{QUERY_STRING} ^.*(phpbb_root_path|album_root_path|module_root_path|mx_root_path|upi2db_file_path|thispath|PP_PATH).*$
    # LESS STRICT CONDITION
    RewriteCond %{QUERY_STRING} ^.*(phpbb_root_path\=|album_root_path\=|module_root_path\=|mx_root_path\=|upi2db_file_path\=|thispath\=|PP_PATH\=).*$
    ##################################
    # REWRITE
    ##################################
    # FORBIDDEN ^.*$ - [F,L]
    # REDIRECT TO LOCALHOST
    RewriteRule ^.*$ http://127.0.0.1/ [redirect,last]
    ##################################
    ##################################
    # Block Hacking Attempts - END   #
    ##################################
    ########## Begin - Rewrite rules to block out some common exploits
    #
    # Block out any script trying to set a mosConfig value through the URL
    RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|\%3D) 
    # Block out any script trying to base64_encode crap to send via URL
    RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) 
    # Block out any script that includes a <script> tag in URL
    RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
    # Block out any script trying to set a PHP GLOBALS variable via URL
    RewriteCond %{QUERY_STRING} GLOBALS(=|[|\%[0-9A-Z]{0,2}) 
    # Block out any script trying to modify a _REQUEST variable via URL
    RewriteCond %{QUERY_STRING} _REQUEST(=|[|\%[0-9A-Z]{0,2})
    # Send all blocked request to homepage with 403 Forbidden error!
    RewriteRule ^(.*)$ index.php [F,L]
    #
    ########## End - Rewrite rules to block out some common exploits
    RewriteRule ^.+-vf([0-9]*) viewforum.php?%{QUERY_STRING}&f=$1 
    RewriteRule ^.+-vp([0-9]*) viewtopic.php?%{QUERY_STRING}&p=$1 
    RewriteRule ^.+-vt([0-9]*) viewtopic.php?%{QUERY_STRING}&t=$1 
    RewriteRule ^.+-vf([0-9]*) ./viewforum.php?%{QUERY_STRING}&amp;f=$1 
    RewriteRule ^.+-vc([0-9]*) forum.php?%{QUERY_STRING}&c=$1 
    RewriteRule ^.+-vc([0-9]*) ./forum.php?%{QUERY_STRING}&c=$1 
    RewriteRule ^.+-ac([0-9]*) album_cat.php?%{QUERY_STRING}&cat_id=$1 
    RewriteRule ^.+-at([0-9]*) album_thumbnail.php?%{QUERY_STRING}&pic_id=$1 
    RewriteRule ^.+-apic([0-9]*) album_pic.php?%{QUERY_STRING}&pic_id=$1 
    RewriteRule ^.+-apm([0-9]*) album_picm.php?%{QUERY_STRING}&pic_id=$1 
    RewriteRule ^.+-full-asp([0-9]*) album_showpage.php?full=&pic_id=$1 
    RewriteRule ^.+-asp([0-9]*) album_showpage.php?%{QUERY_STRING}&pic_id=$1 
    RewriteRule ^.+-aper([0-9]*) album_personal.php?%{QUERY_STRING}&user_id=$1 
    RewriteRule ^.+-dc([0-9]*) dload.php?%{QUERY_STRING}action=category&cat_id=$1 
    RewriteRule ^.+-df([0-9]*) dload.php?%{QUERY_STRING}action=file&file_id=$1 
    RewriteRule ^.+-kbc([0-9]*) kb.php?%{QUERY_STRING}mode=cat&cat=$1 
    RewriteRule ^.+-kba([0-9]*) kb.php?%{QUERY_STRING}mode=article&k=$1 
    RewriteRule ^.+-kbsmp kb.php?mode=stats&stats=mostpopular 
    RewriteRule ^.+-kbstr kb.php?mode=stats&stats=toprated 
    RewriteRule ^.+-kbsl kb.php?mode=stats&stats=latest 
    RewriteRule ^.+-pbc([0-9]*) kb.php?%{QUERY_STRING}mode=cat&cat=$1 
    RewriteRule ^.+-pa([0-9]*) kb.php?%{QUERY_STRING}mode=article&k=$1 
    RewriteRule ^.+-psmp kb.php?mode=stats&stats=mostpopular 
    RewriteRule ^.+-pstr kb.php?mode=stats&stats=toprated 
    RewriteRule ^.+-pbsl kb.php?mode=stats&stats=latest  [.]*-vf([0-9]*) viewforum.php?%{QUERY_STRING}&f=$1  [.]*-vp([0-9]*) viewtopic.php?%{QUERY_STRING}&p=$1  [.]*-vt([0-9]*) viewtopic.php?%{QUERY_STRING}&t=$1  [.]*-vf([0-9]*) ./viewforum.php?%{QUERY_STRING}&amp;f=$1  [.]*-vc([0-9]*) forum.php?%{QUERY_STRING}&c=$1  [.]*-vc([0-9]*) ./forum.php?%{QUERY_STRING}&c=$1  [.]*-ac([0-9]*) album_cat.php?%{QUERY_STRING}&cat_id=$1  [.]*-at([0-9]*) album_thumbnail.php?%{QUERY_STRING}&pic_id=$1  [.]*-apic([0-9]*) album_pic.php?%{QUERY_STRING}&pic_id=$1  [.]*-apm([0-9]*) album_picm.php?%{QUERY_STRING}&pic_id=$1  [.]*-full-asp([0-9]*) album_showpage.php?full=&pic_id=$1  [.]*-asp([0-9]*) album_showpage.php?%{QUERY_STRING}&pic_id=$1  [.]*-aper([0-9]*) album_personal.php?%{QUERY_STRING}&user_id=$1  [.]*-dc([0-9]*) dload.php?%{QUERY_STRING}action=category&cat_id=$1  [.]*-df([0-9]*) dload.php?%{QUERY_STRING}action=file&file_id=$1  [.]*-kbc([0-9]*) kb.php?%{QUERY_STRING}mode=cat&cat=$1  [.]*-kba([0-9]*) kb.php?%{QUERY_STRING}mode=article&k=$1  [.]*-kbsmp kb.php?mode=stats&stats=mostpopular  [.]*-kbstr kb.php?mode=stats&stats=toprated  [.]*-kbsl kb.php?mode=stats&stats=latest  [.]*-pbc([0-9]*) kb.php?%{QUERY_STRING}mode=cat&cat=$1  [.]*-pa([0-9]*) kb.php?%{QUERY_STRING}mode=article&k=$1  [.]*-psmp kb.php?mode=stats&stats=mostpopular  [.]*-pstr kb.php?mode=stats&stats=toprated  [.]*-pbsl kb.php?mode=stats&stats=latest 
     
    # Mighty Gorgon Check
    RewriteRule ^.*xmlrpc.php.*$ http://127.0.0.1/ [redirect,last]
    RewriteCond %{QUERY_STRING} ^.*(dir[inc]\=).*$
    RewriteRule ^.*$ http://127.0.0.1/ [redirect,last]
     
    # SANTY
    RewriteCond %{HTTP_REFERER} ^.*$
    RewriteRule ^.*%27.*$ http://127.0.0.1/ [redirect,last]
    RewriteRule ^.*%25.*$ http://127.0.0.1/ [redirect,last]
    RewriteRule ^.*rush=.*$ http://127.0.0.1/ [redirect,last]
    RewriteRule ^.*echr.*$ http://127.0.0.1/ [redirect,last]
    RewriteRule ^.*esystem.*$ http://127.0.0.1/ [redirect,last]
    RewriteRule ^.*wget.*$ http://127.0.0.1/ [redirect,last]
    RewriteCond %{HTTP_COOKIE}% s:(.*):%22test1%22%3b
    RewriteRule ^.*$ http://127.0.0.1/ [R,L]
    # Prevent perl user agent (most often used by santy)
    RewriteCond %{HTTP_USER_AGENT} ^lwp.* 
    RewriteRule ^.*$ http://127.0.0.1/ [R,L]
    RewriteCond %{HTTP_REFERER} ^.*$
    # This ruleset is to "stop" stupid attempts to use MS IIS expolits on us
    # NIMDA
    RewriteCond %{REQUEST_URI} /(admin¦cmd¦httpodbc¦nsiislog¦root¦shell)\.(dll¦exe) 
    RewriteRule !(error\.php|robots\.txt) /error.php?mode=nimda [L,E=HTTP_USER_AGENT:NIMDA_EXPLOIT,T=application/x-httpd-cgi] .* - [F,L]
    # CODERED
    RewriteCond %{REQUEST_URI} /default\.(ida¦idq)$ [NC,OR]
    RewriteCond %{REQUEST_URI} /.*\.printer$ 
    RewriteRule !(error\.php|robots\.txt) /error.php?mode=codered [L,E=HTTP_USER_AGENT:CODERED_EXPLOIT,T=application/x-httpd-cgi] .* - [F,L]
    # User-Agents with no privileges (mostly spambots/spybots/offline downloaders that ignore robots.txt)
    # These bots are anoying website harvesting tools, webdownloaders, and a few misc annoyances.
    RewriteCond %{HTTP_USER_AGENT} ^[A-Z]+$ [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} ^(AcoiRobot|FlickBot|webcollage) [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} ^(Alligator|DA.?[0-9]|DC\-Sakura|Download.?(Demon|Express|Master|Wonder)|FileHound) [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} .*almaden.* 
    RewriteCond %{HTTP_USER_AGENT} anarchie [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} AsiaNetBot [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} ^.*attach.*$ 
    RewriteCond %{HTTP_USER_AGENT} ATHENS [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} autohttp [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} ^.*BackWeb.*$ 
    RewriteCond %{HTTP_USER_AGENT} ^.*Bandit.*$ 
    RewriteCond %{HTTP_USER_AGENT} bew [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} BlackWidow [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} Bot\ [EMAIL="[email protected]"]mailto:[email protected][/EMAIL] [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} ^.Browse\s [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} ^.*Buddy.*$ 
    RewriteCond %{HTTP_USER_AGENT} Bullseye [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} ChinaClaw [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} ^.*Collector.*$ 
    RewriteCond %{HTTP_USER_AGENT} ^.*Copier.*$ 
    RewriteCond %{HTTP_USER_AGENT} ^.*Crawler.*$ 
    RewriteCond %{HTTP_USER_AGENT} Crescent [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} curl [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} "^DA \d\.\d+" 
    RewriteCond %{HTTP_USER_AGENT} devsoft's\ http\ component [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} Deweb [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} Digimarc [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} Digger [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} digout4uagent [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} DIIbot [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} ^DiscoPump.* [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} DISCo\ pump [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} dloader(NaverRobot) [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} Download\ Demon [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} "^Download" 
    RewriteCond %{HTTP_USER_AGENT} ^.*Downloader.*$ 
    RewriteCond %{HTTP_USER_AGENT} "DTS Agent" 
    RewriteCond %{HTTP_USER_AGENT} EasyDL/\d\.\d+ 
    RewriteCond %{HTTP_USER_AGENT} eCatch [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} ecollector [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} Educate\ Search [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} EirGrabber [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} EmailCollector [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} EmailSiphon [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} EmailWolf [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} EO\ Browse [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} ^.Eval [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} ^(Express|Mister|Web).?(Web|Pix|Image).?(Pictures|Collector)? [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} extractor [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} ExtractorPro [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} EyeNetIE [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} fastlwspider [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} FEZhead [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} Fetch [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} Fetch\ API\ Request 
    RewriteCond %{HTTP_USER_AGENT} ^(Flash|Leech)Get [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} Franklin\ Locator [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} ^(Fresh|Lightning|Mass|Real|Smart|Speed|Star).?Download(er)? [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} Full\ Web\ Bot [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} ^(Gamespy|Go!Zilla|iGetter|JetCar|Net(Ants|Pumper)|SiteSnagger|Teleport.?Pro) [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} Getleft [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} GetRight [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} GetURL [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} GetWebPage [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} ^GornKer 
    RewriteCond %{HTTP_USER_AGENT} ^.*gotit.*$ 
    RewriteCond %{HTTP_USER_AGENT} Gozilla [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} ^Go!Zilla.* [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} go-ahead-got-it [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} ^.*Grabber.*$ 
    RewriteCond %{HTTP_USER_AGENT} ^.*GrabNet.*$ 
    RewriteCond %{HTTP_USER_AGENT} Grafula [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} ^.*Harvest [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} ^.*HMView.*$ 
    RewriteCond %{HTTP_USER_AGENT} HTML\ Works [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} ^.*HTTrack.*$ 
    RewriteCond %{HTTP_USER_AGENT} ia_archiver [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} ^Image.?(fetch|Stripper|Sucker) [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} IncyWincy [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} Industry\ Program [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} InterGET [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} Internet\ Explore\ 5\.x [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} ^InternetNinja.* [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} Internet\ Ninja [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} InternetSeer.com [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} Irvine [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} ^JetCar.* [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} JOC\ Web\ Spider [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} ^.*JOC.*$ 
    RewriteCond %{HTTP_USER_AGENT} KWebGet [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} larbin [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} ^.*Likse.*$ 
    RewriteCond %{HTTP_USER_AGENT} ^LinkWalker 
    RewriteCond %{HTTP_USER_AGENT} ^.*LWP [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} ^.*Mag-Net.*$ 
    RewriteCond %{HTTP_USER_AGENT} ^.*Magnet.*$ 
    RewriteCond %{HTTP_USER_AGENT} MCspider [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} ^.*Memo.*$ 
    RewriteCond %{HTTP_USER_AGENT} Microsoft\ URL [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} MIDown\ tool [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} ^.*Mirror.*$ 
    RewriteCond %{HTTP_USER_AGENT} Missauga\ Locator [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} Mister\ PiX [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} Monster [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} Mozilla.*NEWT [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} Mozilla\/3\.0\.\+Indy\ Library [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} Mozilla\/3.Mozilla\/2\.01 [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} Mozilla\/4\.0$ [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} Mozzilla [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} MSIECrawler [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} ^NASA\ Search\ 1\.0$ [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} ^.*Navroad.*$ 
    RewriteCond %{HTTP_USER_AGENT} NearSite [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} net.?(ants|attache|Carta|mechanic|spider|vampire|zip) [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} NICErsPRO [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} ninja [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} Octopus [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} ^.*Offline.*$ 
    RewriteCond %{HTTP_USER_AGENT} OpaL [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} Openfind [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} OpenTextSiteCrawler [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} PackRat [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} PageGrabber [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} Papa\ Foto [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} pavuk [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} PICgrabber [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} ^.*pcBrowser.*$ 
    RewriteCond %{HTTP_USER_AGENT} Plucker [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} ^Pockey.* [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} Production\ Bot [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} Program\ Shareware [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} ^.*prospector [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} ^psbot 
    RewriteCond %{HTTP_USER_AGENT} PushSite [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} ^.*Reaper.*$ 
    RewriteCond %{HTTP_USER_AGENT} ^.*Recorder.*$ 
    RewriteCond %{HTTP_USER_AGENT} ReGet [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} RepoMonkey [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} Rover [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} Rsync [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} ^.*Siphon.*$ 
    RewriteCond %{HTTP_USER_AGENT} ^Scooter-W3.* [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} ScoutAbout [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} searchterms\.it [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} semanticdiscovery [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} Shai [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} sitecheck [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} ^.*Snake.*$ 
    RewriteCond %{HTTP_USER_AGENT} Spegla [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} SpiderBot [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} ^.*Stripper.*$ 
    RewriteCond %{HTTP_USER_AGENT} ^.*Sucker.*$ 
    RewriteCond %{HTTP_USER_AGENT} ^.*SuperBot.*$ 
    RewriteCond %{HTTP_USER_AGENT} SuperHTTP [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} ^.Surf [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} ^.*Surfbot.*$ 
    RewriteCond %{HTTP_USER_AGENT} SurfWalker [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} tAkeOut [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} tarspider [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} ^Teleport.* [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} Templeton [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} UtilMind [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} ^.*Vacuum.*$ 
    RewriteCond %{HTTP_USER_AGENT} VoidEYE [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.?(bandit|collector|devil|downloader|hook|mole|reaper|sucker|site|snake|stripper|weasel) [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} ^Web.?(site.?(eXtractor|Quester)|Capture|Snake|ster|Strip|Stripper|Suck|vac|walk|Whacker|ZIP) [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} ^WebEMailExtrac.* 
    RewriteCond %{HTTP_USER_AGENT} web.by.mail [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} ^.*Wget.*$ 
    RewriteCond %{HTTP_USER_AGENT} ^.*Whacker.*$ 
    RewriteCond %{HTTP_USER_AGENT} ^.*Widow.*$ 
    RewriteCond %{HTTP_USER_AGENT} w3mir [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} WhosTalking [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} Widow [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} WUMPUS [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} www\.pl [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} Xaldon\ WebSpider [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} XGET [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} Yandex [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} zeus [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} ^Zeus.*Webster 
    # IE's "make available offline" mode
    RewriteCond %{HTTP_USER_AGENT} MSIECrawler 
    # Unknown bot
    RewriteCond %{HTTP_USER_AGENT} ^NG 
    # You may want to enable these lines below to disallow php and perl scripts to access your site %{HTTP_USER_AGENT} ^.*PHP.*$  %{HTTP_USER_AGENT} ^.*libwww-perl [NC,OR]
    # Ignorant user trying to edit my site
    RewriteCond %{HTTP_USER_AGENT} FrontPage  one will ban everything microsoft. Use with caution. %{HTTP_USER_AGENT} ^(Microsoft|MFC).(Data|URL|WebDAV|Foundation).(Access|Control|MiniRedir|Class) [NC,OR]
    # MSOffice %{REQUEST_URI} ^/(MSOffice|_vti) [NC,OR]
    # Various
    RewriteCond %{REQUEST_URI} ^/(bin/|cgi/|cgi\-local/|cgi\-bin/|sumthin) [NC,OR]
    RewriteCond %{THE_REQUEST} ^GET\ http [NC,OR]
    RewriteCond %{REQUEST_URI} /sensepost\.exe [NC,OR]
    RewriteCond %{REQUEST_METHOD}!^(GET|HEAD|POST) [NC,OR]
    # Rude bot
    RewriteCond %{HTTP_USER_AGENT} Atomz 
    RewriteCond %{HTTP_USER_AGENT} FlickBot 
    RewriteCond %{HTTP_USER_AGENT} "[EMAIL="efp@gmx\.net"]efp@gmx\.net[/EMAIL]" 
    RewriteCond %{HTTP_USER_AGENT} imagefetch 
    RewriteCond %{HTTP_USER_AGENT} "LINKS ARoMATIZED" 
    RewriteCond %{HTTP_USER_AGENT} "mister pix" [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} PersonaPilot 
    RewriteCond %{HTTP_USER_AGENT} Sqworm 
    RewriteCond %{HTTP_USER_AGENT} SurveyBot 
    # Dumb bot, doesn't know how to follow links, generates lots of 404s
    RewriteCond %{HTTP_USER_AGENT} vayala 
    # Dumb bot
    RewriteCond %{HTTP_USER_AGENT} "^Mozilla/4.0$" 
    # Cyveillance is a spybot that scours the web for copyright violations and ?damaging information? on
    # behalf of clients such as the RIAA and MPAA. Their robot spoofs its User-Agent to look like Internet
    # Explorer, and it completely ignores robots.txt. I have
    # banned it by IP address.
    RewriteCond %{REMOTE_ADDR} ^63\.148\.99\.2(2[4-9]|[34][0-9]|5[0-5])$ 
    RewriteCond %{REMOTE_ADDR} ^63\.226\.3[34]\. 
    RewriteCond %{REMOTE_ADDR} ^63\.212\.171\.161$ 
    RewriteCond %{REMOTE_ADDR} ^65\.118\.41\.(19[2-9]|2[01][0-9]|22[0-3])$ 
    # NameProtect peddles their ?online brand monitoring? to unsuspecting and gullible companies
    # looking for people to sue. Despite the claims on their robot information page, they do not
    # respect robots.txt; in fact, they spoof their User-Agent in multiple ways to avoid detection.
    # I have banned them by User-Agent and IP address.
    RewriteCond %{REMOTE_ADDR} ^12\.148\.196\.(12[8-9]|1[3-9][0-9]|2[0-4][0-9]|25[0-5])$ 
    RewriteCond %{REMOTE_ADDR} ^12\.148\.209\.(19[2-9]|2[0-4][0-9]|25[0-5])$ 
    RewriteCond %{HTTP_USER_AGENT} ^NPBot [NC,OR]
    # Web Content International
    RewriteCond %{REMOTE_ADDR} ^65\.102\.12\.2(2[4-9]|3[01])$ 
    RewriteCond %{REMOTE_ADDR} ^65\.102\.17\.(3[2-9]|[4-6][0-9]|7[01]|8[89]|9[0-5]|10[4-9]|11[01])$ 
    RewriteCond %{REMOTE_ADDR} ^65\.102\.23\.1(5[2-9]|6[0-7])$ 
    # Wordtracker
    RewriteCond %{REMOTE_ADDR} ^128\.242\.197\.101$ 
    # Unknown
    # unknown.Level3.net
    RewriteCond %{REMOTE_ADDR} ^64\.156\.198\.(6[89]|7[0-9]|80)$ 
    # host25x.keebler.com
    RewriteCond %{REMOTE_ADDR} ^65\.223\.250\.25[0-3]$ 
    # Turnitin spybot
    RewriteCond %{REMOTE_ADDR} ^64\.140\.49\.6([6-9])$ 
    RewriteCond %{HTTP_USER_AGENT} TurnitinBot 
    RewriteCond %{HTTP_USER_AGENT} ^.*FileHound.*$
    # Used to send these bots to someplace else you can change the url to whatever you would like /* http://www.geocities.com/WestHollywood/Heights/3204/1home.html [L,R] !(errors\.php|robots\.txt) /errors.php?code=404 [L,E=HTTP_USER_AGENT:BAD_USER_AGENT]
    # This could also be used to simply deny access to your site instead of the one above
    RewriteRule .* - [F,L]
    # Block if useragent and referer are unknown.
    # the referer string will cause some problems with mozilla so it has been diabled
    
    

    il sito e' in firma....premetto che il .it e' un redirect e non vorrei che il problema sia quello....qualcuno puo' aiutarmi?????


  • User

    perdonatemi se faccio un secondo post, ma il primo non mi permette di inserire tutto il codice.....questa e' la parte finale mancante....

    
    RewriteCond %{HTTP_REFERER} ^-$ 
    RewriteCond %{HTTP_USER_AGENT} ^-$
    # Used to send these bots to someplace else you can change the url to whatever you would like
    #RewriteRule /* http://www.geocities.com/WestHollywood/Heights/3204/1home.html [L,R] !(errors\.php|robots\.txt) /errors.php?code=404 [L,T=application/x-httpd-cgi]
    # This could also be used to simply deny access to your site instead of the one above
    RewriteRule .* - [F,L]
    # This ruleset is for formmail script abusers...
    # We don't use Perl for Postnuke so this is not really needed.
    RewriteCond %{REQUEST_URI} (mail.?form|form|form.?mail|mail|mailto)\.(cgi¦exe¦pl)$ 
    RewriteRule !(errors\.php|robots\.txt) /errors.php?code=404 [L,E=HTTP_USER_AGENT:FORMMAIL_EXPLOIT,T=application/x-httpd-cgi]
    # Other Spam Bots
    RewriteCond %{HTTP_REFERER} ^(.*)nflook.com(.*)$ 
    RewriteCond %{HTTP_REFERER} ^(.*)qmost.info(.*)$ 
    RewriteCond %{HTTP_REFERER} ^(.*)zless.info(.*)$ 
    RewriteCond %{HTTP_REFERER} ^(.*)pertest.info(.*)$ 
    RewriteCond %{HTTP_REFERER} ^(.*)bablover.com(.*)$ 
    RewriteCond %{HTTP_REFERER} ^(.*)semiwolf.info(.*)$ 
    RewriteCond %{HTTP_REFERER} ^(.*)dwgn.info(.*)$ 
    RewriteCond %{HTTP_REFERER} ^(.*)qway.info(.*)$ 
    RewriteCond %{HTTP_REFERER} ^(.*)elkam.info(.*)$ 
    RewriteCond %{HTTP_REFERER} ^(.*)ymore.info(.*)$ 
    RewriteCond %{HTTP_REFERER} ^(.*)feelor.com(.*)$ 
    RewriteCond %{HTTP_REFERER} ^(.*)emore.info(.*)$ 
    RewriteCond %{HTTP_REFERER} ^(.*)leenow.info(.*)$ 
    RewriteCond %{HTTP_REFERER} ^(.*)fun.org(.*)$ 
    RewriteCond %{HTTP_REFERER} ^(.*)wp.com(.*)$ 
    RewriteCond %{HTTP_REFERER} ^(.*)dmost.info(.*)$ 
    RewriteCond %{HTTP_REFERER} ^(.*)way.org(.*)$ 
    RewriteCond %{HTTP_REFERER} ^(.*)sun.com(.*)$ 
    RewriteCond %{HTTP_REFERER} ^(.*)jvl.com(.*)$ 
    RewriteCond %{HTTP_REFERER} ^(.*)4ap.com(.*)$ 
    RewriteCond %{HTTP_REFERER} ^(.*)mem.com(.*)$ 
    RewriteCond %{HTTP_REFERER} ^(.*)netster.com(.*)$ 
    RewriteCond %{HTTP_REFERER} ^(.*)map.com(.*)$ 
    RewriteCond %{HTTP_REFERER} ^(.*)ize.com(.*)$ 
    RewriteCond %{HTTP_REFERER} ^(.*)9cy.com(.*)$ 
    RewriteCond %{HTTP_REFERER} ^(.*)pages.com(.*)$ 
    RewriteCond %{HTTP_REFERER} ^(.*)fest.com(.*)$ 
    RewriteCond %{HTTP_REFERER} ^(.*)crossporn.com(.*)$ 
    RewriteCond %{HTTP_REFERER} ^(.*)pills.ru(.*)$ 
    RewriteCond %{HTTP_REFERER} ^(.*)ever.com(.*)$ 
    RewriteCond %{HTTP_REFERER} ^(.*)this.com(.*)$ 
    RewriteCond %{HTTP_REFERER} ^(.*)now.com(.*)$ 
    RewriteCond %{HTTP_REFERER} ^(.*)mb.com(.*)$ 
    RewriteCond %{HTTP_REFERER} ^(.*)ies.com(.*)$ 
    RewriteCond %{HTTP_REFERER} ^(.*)ting.com(.*)$ 
    RewriteCond %{HTTP_REFERER} ^(.*)sites.ws(.*)$ 
    RewriteCond %{HTTP_REFERER} ^(.*)lynx.com(.*)$ 
    RewriteCond %{HTTP_REFERER} ^(.*)town.com(.*)$ 
    RewriteCond %{HTTP_REFERER} ^(.*)mb.com(.*)$ 
    RewriteCond %{HTTP_REFERER} ^(.*)vy.nu(.*)$ 
    RewriteCond %{HTTP_REFERER} ^(.*)yu.com(.*)$ 
    RewriteCond %{HTTP_REFERER} ^(.*)buddy4u.com(.*)$ 
    RewriteCond %{HTTP_REFERER} ^(.*)allinternal.com(.*)$ 
    RewriteCond %{HTTP_REFERER} ^(.*)asstraffic.com(.*)$ 
    RewriteCond %{HTTP_REFERER} ^(.*)bikinibabes.tv(.*)$ 
    RewriteCond %{HTTP_REFERER} ^(.*)andipink.com(.*)$ 
    RewriteCond %{HTTP_REFERER} ^(.*)cel-blogs.org(.*)$ 
    RewriteCond %{HTTP_REFERER} ^(.*)sexy-babes.tv(.*)$ 
    RewriteCond %{HTTP_REFERER} ^(.*)wrongsideoftown.com(.*)$ 
    RewriteCond %{HTTP_REFERER} ^(.*)thecanalgallery.com(.*)$ 
    RewriteCond %{HTTP_REFERER} ^(.*)secure.snatches.com(.*)$ 
    RewriteCond %{HTTP_REFERER} ^(.*)mail.live.com(.*)$ 
    RewriteCond %{HTTP_REFERER} ^(.*)brutalblowjobs.com(.*)$ 
    RewriteCond %{HTTP_REFERER} ^(.*)appraiserseek.com(.*)$ 
    RewriteCond %{HTTP_REFERER} ^(.*)beyonddc.com(.*)$ 
    RewriteCond %{HTTP_REFERER} ^(.*)soltyra.com(.*)$ 
    RewriteCond %{HTTP_REFERER} ^(.*)wrongsideoftown.com(.*)$ 
    RewriteCond %{HTTP_REFERER} ^(.*)estranky.cz(.*)$ 
    RewriteCond %{HTTP_REFERER} ^(.*)bramjnet.com(.*)$ 
    RewriteCond %{HTTP_REFERER} ^(.*)voila.fr(.*)$ 
    RewriteCond %{HTTP_REFERER} ^(.*)anonym.to(.*)$ 
    RewriteCond %{HTTP_REFERER} ^(.*)infobox.ru(.*)$ 
    RewriteCond %{HTTP_REFERER} ^(.*)porndors.com(.*)$ 
    RewriteCond %{HTTP_REFERER} ^(.*)atspace.com(.*)$ 
    RewriteCond %{HTTP_REFERER} ^(.*)funpic.de(.*)$ 
    RewriteCond %{HTTP_REFERER} ^(.*)skynet.be(.*)$ 
    RewriteCond %{HTTP_REFERER} ^(.*)kokoom.com(.*)$ 
    RewriteCond %{HTTP_REFERER} ^(.*)jeeran.com(.*)$ 
    RewriteCond %{HTTP_REFERER} ^(.*)blog.cz(.*)$ 
    RewriteCond %{HTTP_REFERER} ^(.*)forumw.org(.*)$ 
    RewriteCond %{HTTP_REFERER} ^(.*)gfxgfx.net(.*)$ 
    RewriteCond %{HTTP_REFERER} ^(.*)fateback.com(.*)$ 
    RewriteCond %{HTTP_REFERER} ^(.*)volny.cz(.*)$ 
    RewriteCond %{HTTP_REFERER} ^(.*)thecanalgallery.com(.*)$ 
    RewriteCond %{HTTP_REFERER} ^(.*)vipsefeed.com(.*)$ 
    RewriteCond %{HTTP_REFERER} ^(.*)bigcatllc.com(.*)$ 
    RewriteCond %{HTTP_REFERER} ^(.*)mature-lessons.com(.*)$ 
    RewriteCond %{HTTP_REFERER} ^(.*)fuckherthroat.wildpass.com(.*)$ 
    RewriteCond %{HTTP_REFERER} ^(.*)asstraffic.com(.*)$ .* http://www.microsoft.com/ [F,R,L] !(errors\.php|robots\.txt) /errors.php?code=404 [L,E=HTTP_USER_AGENT:BAD_USER_AGENT]
    RewriteRule .* - [F,L]
    

  • User Attivo

    ciao,
    che errore ti dà?
    su che host sei?
    è proprio necessaria tutta la parte antispam?

    :ciauz:


  • User

    intanto mi scuso ancora tantissimo per aver messo il codice in versione integrale e di aver fatto 2 post consecutivi, spero che i mod non me ne abbiano.

    IO sono appoggiato su altervista, anche dal loro pannello di controllo ho attivato la funzione url rewrite e questo sopra e' il codice integrale dell'ht.access fornito dal produttore del cms....diceva di editare solo le 2 righe in alto con il nome del mio sito, per il resto nient'altro.....sinceramente non so nemmeno se e' corretto.
    Diciamo che quando lo attivo, vedo la home e la pagina del forum, ma appena entro in una categoria mi da errore 404.....sto facendo delle prove mantenendo cmq sempre il backup di tutto, ma devo sempre tornare insietro, l'errore e' sempre 404 page not found....


  • User Attivo

    ma se è una funzione di altervista hai provato a chiedere direttamente a loro? vi saranno altri utenti che hanno avuto lo stesso problema
    Comunque secondo me devi decommentare (togliere il #) alle righe relative al tuo dominio, altrimenti quelle istruzioni non vengono avviate:
    [PHP]RewriteBase /
    #Make sure the whole site goes to www.mysite.com instead of mysite.com. This is good for the search engines
    #Edit and uncomment the below lines for your own site.
    sure to replace icyphoenix.com with your site address.
    RewriteCond %{HTTP_HOST} ^insaneproject.altervista.org
    RewriteRule (.*) http://www.insaneproject.altervista.org/$1 [R=301,L][/PHP]


  • User

    ciao robaldo....ho provato ma continua a non fuzionare....sempre la stessa cosa, vedo home e forum ma non entro nelle categorie....