crazyadmin

.htaccess

Aug 27th, 2014
16
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #DirectoryIndex index.html index.php
  2.  
  3. ##
  4. # @package Joomla
  5. # @copyright Copyright (C) 2005 - 2013 Open Source Matters. All rights reserved.
  6. # @license GNU General Public License version 2 or later; see LICENSE.txt
  7. ##
  8.  
  9. ##
  10. # READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE!
  11. #
  12. # The line just below this section: 'Options +FollowSymLinks' may cause problems
  13. # with some server configurations. It is required for use of mod_rewrite, but may already
  14. # be set by your server administrator in a way that dissallows changing it in
  15. # your .htaccess file. If using it causes your server to error out, comment it out (add # to
  16. # beginning of line), reload your site in your browser and test your sef url's. If they work,
  17. # it has been set by your server administrator and you do not need it set here.
  18. ##
  19.  
  20. ## Can be commented out if causes errors, see notes above.
  21. #Options +FollowSymLinks
  22.  
  23. ## Mod_rewrite in use.
  24.  
  25. RewriteEngine On
  26.  
  27. ## Begin - Rewrite rules to block out some common exploits.
  28. # If you experience problems on your site block out the operations listed below
  29. # This attempts to block the most common type of exploit `attempts` to Joomla!
  30. #
  31. # Block out any script trying to base64_encode data within the URL.
  32. RewriteCond %{QUERY_STRING} base64_encode[^(]*\([^)]*\) [OR]
  33. # Block out any script that includes a <script> tag in URL.
  34. RewriteCond %{QUERY_STRING} (<|%3C)([^s]*s)+cript.*(>|%3E) [NC,OR]
  35. # Block out any script trying to set a PHP GLOBALS variable via URL.
  36. RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
  37. # Block out any script trying to modify a _REQUEST variable via URL.
  38. RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
  39. # Return 403 Forbidden header and show the content of the root homepage
  40. RewriteRule .* index.php [F]
  41. #
  42. ## End - Rewrite rules to block out some common exploits.
  43.  
  44. ## Begin - Custom redirects
  45. #
  46. # If you need to redirect some pages, or set a canonical non-www to
  47. # www redirect (or vice versa), place that code here. Ensure those
  48. # redirects use the correct RewriteRule syntax and the [R=301,L] flags.
  49. #
  50.  
  51. RewriteCond %{HTTP_HOST} ^perfectprofiler.com [NC]
  52.  
  53. RewriteRule ^(.*)$ http://www.perfectprofiler.com/$1 [L,R=301]
  54.  
  55. ## End - Custom redirects
  56.  
  57. ##
  58. # Uncomment following line if your webserver's URL
  59. # is not directly related to physical file paths.
  60. # Update Your Joomla! Directory (just / for root).
  61. ##
  62.  
  63. RewriteBase /
  64.  
  65. ## Begin - Joomla! core SEF Section.
  66. #
  67. RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
  68. #
  69. # If the requested path and file is not /index.php and the request
  70. # has not already been internally rewritten to the index.php script
  71. RewriteCond %{REQUEST_URI} !^/index\.php
  72. # and the request is for something within the component folder,
  73. # or for the site root, or for an extensionless URL, or the
  74. # requested URL ends with one of the listed extensions
  75. RewriteCond %{REQUEST_URI} /component/|(/[^.]*|\.(php|html?|feed|pdf|vcf|raw))$ [NC]
  76. # and the requested path and file doesn't directly match a physical file
  77. RewriteCond %{REQUEST_FILENAME} !-f
  78. # and the requested path and file doesn't directly match a physical folder
  79. RewriteCond %{REQUEST_FILENAME} !-d
  80. # internally rewrite the request to the index.php script
  81. RewriteRule .* index.php [L]
  82. #
  83. ## End - Joomla! core SEF Section.
  84.  
  85. #ENABLE GOOGLE PAGE SPEED MODULE IF SUPPORTED BY HOST
  86. #<IfModule pagespeed_module>
  87. # ModPagespeed on
  88. # ModPagespeedEnableFilters extend_cache
  89. #</IfModule>
  90.  
  91. #ExpiresActive On
  92. #ExpiresByType text/html "access plus 1 seconds"
  93. #ExpiresByType image/gif "access plus 1 months"
  94. #ExpiresByType image/jpeg "access plus 1 months"
  95. #ExpiresByType image/png "access plus 1 months"
  96. #ExpiresByType text/css "access plus 1 months"
  97. #ExpiresByType text/javascript "access plus 1 months"
  98. #ExpiresByType application/x-javascript "access plus 1 months"
  99. #ExpiresByType image/ico "access plus 1 months"
  100.  
  101. # Google Analytics Integration - Added by cPanel.
  102. #<IfModule mod_substitute.c>
  103. #AddOutputFilterByType SUBSTITUTE text/html
  104. #Substitute "s|(<script src='/google_analytics_auto.js'></script>)?</head>|<script src='/google_analytics_auto.js'></script></head>|i"
  105. #</IfModule>
  106. # END Google Analytics Integration
  107.  
  108. <Files 403.shtml>
  109. order allow,deny
  110. allow from all
  111. </Files>
  112.  
  113. deny from 144.76.156.247
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×