Einzelnen Beitrag anzeigen
Alt 04.10.2013, 21:20   #2
orti1980
Neuling
Punkte: 8.245, Level: 61 Punkte: 8.245, Level: 61 Punkte: 8.245, Level: 61
Levelaufstieg: 32% Levelaufstieg: 32% Levelaufstieg: 32%
Aktivität: 0% Aktivität: 0% Aktivität: 0%
Letzte Erfolge
 
Benutzerbild von orti1980
 
Registriert seit: 19.02.2009
Beitr?ge: 20
Abgegebene Danke: 1
Erhielt 11 Danke für 2 Beiträge
Downloads: 2
Uploads: 0
Nachrichten: 0
Renommee-Modifikator:
0 orti1980 ist ein sehr geschätzer Menschorti1980 ist ein sehr geschätzer Mensch
Standard

hier hast du einpaar beispiele

PHP-Code:

#<IfModule mod_security.c>
#    secfilterengine off
#    secfilterscanPOST off
#</IfModule>

Options All -Indexes
FileETag MTime Size
Options 
+FollowSymlinks
RewriteEngine on

<FilesMatch "\.(db|inc|tmpl|h|ihtml|sql|ini|configuration|config|class|bin|spd|theme|module|cfg|cpl|tmp|log|err|inc.php|class.php)$">
order allow,deny
satisfy all
</FilesMatch>

########## Begin - Rewrite rules to block out some common exploits
#                              
# Block out any script trying to set a mosConfig value through the URL
RewriteCond %{QUERY_STRINGmosConfig_[a-zA-Z_]{1,21}(=|\%3D) [OR]
# Block out any script trying to base64_encode crap to send via URL
RewriteCond %{QUERY_STRINGbase64_encode.*\(.*\) [OR]
# 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_STRINGGLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
# 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 [L]
RewriteRule ^([^.]*)/?$ index.php [L]

########## End - Rewrite rules to block out some common exploits


RewriteEngine on
#
#
#
#URL Rewriting for Videos
RewriteRule ^videos/(.*)/(.*)/(.*)/(.*)/(.*) videos.php?cat=$1&sort=$3&time=$4&page=$5&seo_cat_name=$[L]
RewriteRule ^videos/([0-9]+) videos.php?page=$[L]
RewriteRule ^videos/?$ videos.php?%{QUERY_STRING} [L]
RewriteRule ^video/(.*)/(.*) watch_video.php?v=$1&%{QUERY_STRING} [L]
#Alternate watch video links
RewriteRule ^(.*)\_v([0-9]+) watch_video.php?v=$2&%{QUERY_STRING} [L]
RewriteRule ^video/([0-9]+)_(.*) watch_video.php?v=$1&%{QUERY_STRING} [L]


#
#Users, Channel & Management
#

RewriteRule ^channels/(.*)/(.*)/(.*)/(.*)/(.*) channels.php?cat=$1&sort=$3&time=$4&page=$5&seo_cat_name=$[L]
RewriteRule ^channels/([0-9]+) channels.php?page=$[L]
RewriteRule ^channels/?$ channels.php [L]
RewriteRule ^members/?$                                channels.php [nc]
RewriteRule ^users/?$                                channels.php [nc]
RewriteRule ^user/(.*)                        view_channel.php?user=$[nc]
RewriteRule ^channel/(.*)                    view_channel.php?user=$[nc]


RewriteRule ^my_account                    myaccount.php [nc]



#Pages
RewriteRule ^page/([0-9]+)/(.*)                        view_page.php?pid=$[nc]
#
#Miscellenous
RewriteRule ^search/result/?$                            search_result.php [nc]
RewriteRule ^upload/?$                                    upload.php [nc]
RewriteRule ^contact/?$                                contact.php [nc]
RewriteRule ^categories/?$                                categories.php [nc]

#Group Section

RewriteRule ^group/([a-zA-Z0-9].+)                    view_group.php?url=$1&%{QUERY_STRING} [L]

RewriteRule ^view_topic/([a-zA-Z0-9].+)_tid_([0-9]+)                    view_topic.php?tid=$2&%{QUERY_STRING} [L]
RewriteRule ^groups/(.*)/(.*)/(.*)/(.*)/(.*) groups.php?cat=$1&sort=$3&time=$4&page=$5&seo_cat_name=$[L]
RewriteRule ^groups/([0-9]+) groups.php?page=$[L]
RewriteRule ^groups/?$ groups.php [L]
RewriteRule ^create_group create_group.php [L]

#Collection Section
RewriteRule ^collections/(.*)/(.*)/(.*)/(.*)/(.*)         collections.php?cat=$1&sort=$3&time=$4&page=$5&seo_cat_name=$[L]
RewriteRule ^collections/([0-9]+) collections.php?page=$[L]
RewriteRule ^collections/?$                                 collections.php [L]
RewriteRule ^photos/(.*)/(.*)/(.*)/(.*)/(.*)             photos.php?cat=$1&sort=$3&time=$4&page=$5&seo_cat_name=$[L]
RewriteRule ^photos/([0-9]+) photos.php?page=$[L]
RewriteRule ^photos/?$                                     photos.php [L]
RewriteRule ^collection/(.*)/(.*)/(.*)                    view_collection.php?cid=$1&type=$2&%{QUERY_STRING} [L]

#Photo Section
RewriteRule ^item/(.*)/(.*)/(.*)/(.*)                     view_item.php?item=$3&type=$1&collection=$[L]
RewriteRule ^photo_upload/(.*)                             photo_upload.php?collection=$[L]
RewriteRule ^photo_upload/?$                                photo_upload.php [L]
#
RewriteRule ^sitemap.xmlsitemap.php
RewriteRule 
^signup/?$ signup.php

#Error Pages
ErrorDocument 404 /404.php
ErrorDocument 403 
/403.php

########## End - Rewrite rules For SEO urls ######################
RewriteRule ^rss$                           rss.php [nc]
RewriteRule ^rss/([a-zA-Z0-9].+)$           rss.php?mode=$1&%{QUERY_STRING} [nc]

########## End - Rewrite rules For SEO urls ######################

RewriteRule    ^([a-zA-Z0-9-]+)/?$     view_channel.php?uid=$1&seo_diret=yes [NS

Ge?ndert von orti1980 (04.10.2013 um 21:32 Uhr)
orti1980 ist offline   Mit Zitat antworten Nach oben