Forum Moderators: phranque
My file stopped working...
I removed the change and I must of messed something else up too. Because it still won't work.
Forgive me I'm a photographer not a technical genious....
Can someone tell me what I'm doing wrong because I can't see my fault.
Does all of this have to be on 1 line or something like that? I one time had a problem with notepad making my file stop working. Is it similar in this case?
Thank you in advance.
#RemoveHandler .html .htm
AddHandler application/x-httpd-php .php .html .htm
<Files 403.shtml>
order allow,deny
deny from 209.200.29.36
deny from 64.255.175.11
allow from all
Options +FollowSymlinks All -Indexes
RewriteEngine on #RewriteCond %{HTTP_USER_AGENT} ^Alexa\ Toolbar [NC,OR] #RewriteCond %{HTTP_REFERER} alexa\.com [NC,OR]RewriteCond %{HTTP_REFERER} archive\.org [NC]RewriteRule .* - [F]
Besides, you must *allow* everybody to access your custom 403 page, otherwise you will get a cascade of errors, because a denied access will result in a request for 403.shtml, which will then be denied, leading to another request for 403.shtml, which will then be denied, etc., etc.
My best guess at what you're trying to achieve:
AddHandler application/x-httpd-php .php .html .htm
Order Deny,Allow
Deny from 209.200.29.36
Deny from 64.255.175.11
<Files 403.shtml>
Allow from all
</Files>
Options All -Indexes
RewriteEngine on
RewriteCond %{REQUEST_URI} !/403\.shtml$
RewriteCond %{HTTP_USER_AGENT} ^Alexa\ Toolbar [NC,OR]
RewriteCond %{HTTP_REFERER} alexa\.com [NC,OR]
RewriteCond %{HTTP_REFERER} archive\.org [NC]
RewriteRule .* - [F]