I had to reconfigure the .htaccess for the APACHE server we run a few days ago. Ich hatte, um die. Htaccess für den Apache-Server laufen wir vor ein paar Tagen.
A few system administrators still dont know how to correctly modify the .htaccess and apply it. Ein paar System-Administratoren noch weiß nicht, wie man richtig ändern. Htaccess und anwenden.
I am including a working template that anybody can use, and it is commented too. Ich bin auch eine funktionierende Vorlage, die jeder nutzen können, und es ist auch kommentiert.
For people who want to download get it from here (view it with notepad) : http://www.mediafire.com/?49lxrdqk542 Für Menschen, die möchten, dass zum Download erhalten sie von hier aus (um es mit Notepad): http://www.mediafire.com/?49lxrdqk542
The .htaccess is also posted below for anyone to read also, and perhaps see some ideas that might be useful for their servers, or even see there are a few things that can be done without cluttering up the robots.txt. Die. Htaccess ist ebenfalls unten für jeden zu lesen auch, und vielleicht finden Sie einige Ideen, die möglicherweise nützlich für ihre Server, oder sogar sehen, gibt es ein paar Dinge, die getan werden kann, ohne cluttering die robots.txt. I for one perfer to put most things into the .htaccess because nobody else can see it, where with the robots.txt, anyone can see it and also because spammers and spam bots / spammer user-agents usally ignore the robots.txt file Ich für ein perfer, um die meisten Dinge in die. Htaccess, weil niemand sonst sehen kann, wo mit der robots.txt, jeder kann es sehen und auch, weil Spammer und Spam-Bots geschützt / Spammer User-Agents in der Regel ignorieren die robots.txt-Datei
## DISABLE HOTLINKING # # DISABLE HOTLINKING
RewriteEngine on RewriteEngine auf
# Options FollowSymlinks # Optionen FollowSymLinks
RewriteCond %{HTTP_REFERER} !^$ RewriteCond% (HTTP_REFERER)! ^ $
RewriteCond %{HTTP_REFERER} !^http://(www\.)?PUTyourDomainHERE/.*$ [NC] RewriteCond% (HTTP_REFERER)! ^ Http:// (www \.)? PUTyourDomainHERE / .* $ [NC]
RewriteRule \.(gif|jpg|jpeg|png|js|css)$ - [F] RewriteRule \. (Gif | jpg | jpeg | png | js | css) $ - [F]
## SITE REFERRER BANNING # # SITE REFERRER BANNING
RewriteEngine on RewriteEngine auf
# Options FollowSymlinks # Optionen FollowSymLinks
RewriteCond %{HTTP_REFERER} info\.biyad\.com [NC] RewriteCond% (HTTP_REFERER) info \. Biyad \. Com [NC]
RewriteRule .* - [F] RewriteRule .* - [F]
## USER IP BANNING # # USER IP BANNING
<Limit GET POST> <Limit GET POST>
order allow,deny Um dies zulassen, leugnen
deny from 74.54.131.194 leugnen, aus 74.54.131.194
allow from all können aus allen
</Limit> </ Limit>
## AN EXAMPLE OF A REDIRECT # # Ein Beispiel für eine Umleitung
Options Indexes Options Indexes
IndexOptions -FancyIndexing IndexOptions-FancyIndexing
Redirect permanent /www.PUTyourDomainHERE/oldPAGE.html http://www.PUTyourDomainHERE/newPage.html Redirect permanent / www.PUTyourDomainHERE / oldPAGE.html http://www.PUTyourDomainHERE/newPage.html
Redirect permanent /www.PUTyourDomainHERE/OLDPage.html http://www.PUTyourDomainHERE/someNEWdirectory/NewPage.html Redirect permanent / www.PUTyourDomainHERE / OLDPage.html http://www.PUTyourDomainHERE/someNEWdirectory/NewPage.html
RewriteEngine On RewriteEngine On
RewriteBase / RewriteBase /
RewriteCond %{HTTP:IGNORE_INCON846393} !^Yes$ RewriteCond% (HTTP: IGNORE_INCON846393)! ^ Ja $
RewriteCond %{REQUEST_METHOD} ^(GET|POST)$ [NC] RewriteCond% (REQUEST_METHOD) ^ (GET | POST) $ [NC]
RewriteCond %{REQUEST_URI} RewriteCond% (REQUEST_URI)
!.*\.(css|jpg|ai|doc|bin|ogg|mp3|pdf|rtf|ps|ppt|jpeg|png|gif|rar|zip|bz|bz2|gz|tar|iso|chm|z|cue|deb|rpm|ac3|au|snd|mid|midi|wav|bmp|jpe|psd|avi|mpg|mpeg|mpe|mp4|ico|rdf)$ [NC] ! .* \. (CSS | jpg | ai | doc | bin | ogg | mp3 | pdf | rtf | ps | ppt | jpeg | png | gif | rar | zip | bz | bz2 | gz | tar | ISO | chm | z | Stichwort | deb | U / min | AC3 | au | snd | Mitte | MIDI | wav | bmp | jpe | psd | avi | mpg | mpeg | mpe | MP4 | ico | RDF) $ [NC]
## AN EXAMPLE OF A REDIRECT OF DYNAMIC PAGES TO STATIC PAGES # # Ein Beispiel für eine Umleitung von dynamischen Seiten zu statischen Seiten
RewriteCond %{query_string} ^option=com_content&task=view&id=23$ RewriteCond% (QUERY_STRING) ^ option = com_content & task = gesehen & id = 23 $
RewriteRule ^index.php$ /page1? RewriteRule ^ $ index.php / page1? [R=301,L] [R = 301, L]
RewriteCond %{query_string} ^option=com_content&task=view&id=22&Itemid=36$ RewriteCond% (QUERY_STRING) ^ option = com_content & task = gesehen & id = 22 & Itemid = 36 $
RewriteRule ^index.php$ /page2? RewriteRule ^ $ index.php / page2? [R=301,L] [R = 301, L]
RewriteCond %{query_string} ^option=com_content&task=view&id=14&Itemid=30$ RewriteCond% (QUERY_STRING) ^ option = com_content & task = gesehen & id = 14 & Itemid = 30 $
RewriteRule ^index.php$ /page3? RewriteRule ^ $ index.php / Page3? [R=301,L] [R = 301, L]
RewriteCond %{query_string} ^option=com_content&task=view&id=20&Itemid=34$ RewriteCond% (QUERY_STRING) ^ option = com_content & task = gesehen & id = 20 & Itemid = 34 $
RewriteRule ^index.php$ /page4? RewriteRule ^ $ index.php / Seite4? [R=301,L] [R = 301, L]
RewriteCond %{query_string} ^option=com_content&task=view&id=13&Itemid=29$ RewriteCond% (QUERY_STRING) ^ option = com_content & task = gesehen & id = 13 & Itemid = 29 $
RewriteRule ^index.php$ /page5? RewriteRule ^ $ index.php / page5? [R=301,L] [R = 301, L]
RewriteCond %{query_string} ^option=com_content&task=view&id=24&Itemid=38$ RewriteCond% (QUERY_STRING) ^ option = com_content & task = gesehen & id = 24 & Itemid = 38 $
RewriteRule ^index.php$ /page6? RewriteRule ^ $ index.php / page6? [R=301,L] [R = 301, L]
RewriteCond %{query_string} ^option=com_sefservicemap&Itemid=37$ RewriteCond% (QUERY_STRING) ^ option = com_sefservicemap & Itemid = 37 $
RewriteRule ^index.php$ /sitemap.html? RewriteRule ^ $ index.php / sitemap.html? [R=301,L] [R = 301, L]
## AN EXAMPLE OF A PERMANENT REDIRECTs AKA 301 # # Ein Beispiel für eine permanente Redirects AKA 301
redirect 301 /oldpage.html http://www.yourDOMAIN/newpage.html redirect 301 / oldpage.html http://www.yourDOMAIN/newpage.html
redirect 301 /oldpage2.html http://www.yourDOMAIN/newpage2.html redirect 301 / oldpage2.html http://www.yourDOMAIN/newpage2.html
redirect 301 /oldpage3.html http://www.yourDOMAIN/newpage3.html redirect 301 / oldpage3.html http://www.yourDOMAIN/newpage3.html
redirect 301 /oldpage4.html http://www.yourDOMAIN/newpage4.html redirect 301 / oldpage4.html http://www.yourDOMAIN/newpage4.html
## A WORKING EXAMPLE OF BLOCKING BAD BOTS OR USER AGENTS KNOWN TO BE RELATED TO SPAM # # Eine Arbeitsgruppe Beispiel der Sperrung BAD-Bots geschützt oder Agenzien Benutzer bekannt ist, dass sie im Zusammenhang mit Spam
SetEnvIfNoCase User-Agent “^EmailSiphon” bad_bot SetEnvIfNoCase User-Agent "^ EmailSiphon" bad_bot
SetEnvIfNoCase User-Agent “^EmailWolf” bad_bot SetEnvIfNoCase User-Agent "^ EmailWolf" bad_bot
SetEnvIfNoCase User-Agent “^ExtractorPro” bad_bot SetEnvIfNoCase User-Agent "^ ExtractorPro" bad_bot
SetEnvIfNoCase User-Agent “^CherryPicker” bad_bot SetEnvIfNoCase User-Agent "^ CherryPicker" bad_bot
SetEnvIfNoCase User-Agent “^NICErsPRO” bad_bot SetEnvIfNoCase User-Agent "^ NICErsPRO" bad_bot
SetEnvIfNoCase User-Agent “^Teleport” bad_bot SetEnvIfNoCase User-Agent "^ Teleport" bad_bot
SetEnvIfNoCase User-Agent “^EmailCollector” bad_bot SetEnvIfNoCase User-Agent "^ EmailCollector" bad_bot
SetEnvIfNoCase User-Agent “^LinkWalker” bad_bot SetEnvIfNoCase User-Agent "^ LinkWalker" bad_bot
SetEnvIfNoCase User-Agent “^Zeus” bad_bot SetEnvIfNoCase User-Agent "^ Zeus" bad_bot
<Limit GET POST> <Limit GET POST>
Order Allow,Deny Bestellen Sie erlauben, Deny
Allow from all Lassen Sie aus allen
Deny from env=bad_bot Deny aus env = bad_bot
</Limit> </ Limit>
written by admin \\ tags: apache , apache .htaccess , htaccess , htaccess hacking , mod rewrite , paul walsh , paul walsh blog , paul walsh security , protocol solutions , protocol solutions blog , robots geschrieben von: admin \ \ Tags: apache, apache. htaccess, htaccess, htaccess-Hacking, mod rewrite, Paul Walsh, Paul Walsh Blog, Paul Walsh Sicherheit, Protokoll-Lösungen Protokoll Lösungen Blog, Roboter