All pastes #102549 Raw Edit

Unnamed

public text v1 · immutable
#102549 ·published 2006-07-27 17:38 UTC
rendered paste body
<limit GET PUT POST>
order allow,deny
allow from all
</limit>

# deny most common except .php
<filesmatch "\.(inc|tpl|h|ihtml|sql|ini|conf|class|bin|spd|theme|module|exe)$">
</filesmatch>

# disable access of .htaccess from a browser
<files ~ "\.hta">
  order allow,deny
  deny from all
  satisfy all
</files>

# disable access of config.php from a browser
<files ~ "\config.php$">
</files>

<limit GET>
deny from 65.19.174
deny from locators.com
</limit>

# use custom error pages if you wish
ErrorDocument 400 /portal/error.php
ErrorDocument 401 /portal/error.php
ErrorDocument 403 /portal/error.php
ErrorDocument 404 /portal/error.php
ErrorDocument 500 /portal/error.php

# disallow index viewing (like ftp) of directory
Options -Indexes
# for hosts that don't allow the above, we won't give people anything to look at
# <IfModule mod_autoindex.c>
# IndexIgnore *
# </IfModule>

AddDefaultCharset utf-8
RewriteEngine on
RewriteRule .*\.(jpg|jpeg|gif|png|bmp)$ - [F,NC]