Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 10-14-2005, 01:10 PM   #1
kektex
Confirmed User
 
Industry Role:
Join Date: Mar 2005
Location: elkektex at gmail
Posts: 1,813
.htaccess gurus take a look please

I have a site where I have had to put a bunch of IP`s and sites on the forbidden list.I was just looking at my log and that is a lot of wasted traffic daily so I want to at least show them some ads on the 403 page. I found the following .htaccess rule on another forum:
Code:
errordocument 403 /error403.html 
errordocument 404 /error404.html 
# 
SetEnvIf Request_URI "/error40[34]\.html$" allowit 
SetEnvIf Request_URI "^/robots.\txt$" allowit 
Order Deny,Allow 
Deny from 12.101.152.*** 
Deny from 12.147.139.*** 
Allow from allowit
I understand the first two lines.I already have a 404 rule set up but obviously if I just enter the 403 rule they wil not get my custom 403 page, just the generic 403 error. So some guy on the forum suggested the above rule.But everything below the # sign is beyond my comprehension
My guess is that if there is a 403 or a 404 it allows only the 404/403 files to be accessed.
I particularly dont get the Deny IP`s.
__________________
exgfmovies.com, exgfclips.com, datesx.com, gayboards.com and more!
kektex is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-14-2005, 01:15 PM   #2
Tom_PM
Porn Meister
 
Industry Role:
Join Date: Feb 2005
Posts: 16,443
I believe it's saying if the request URI is your own error403.html (or 404.html) then it is setting an environement variable named "allowit"
That way, it can still FULLY deny access to a list of IP's, UNLESS it's also requesting your error pages.
So, a denied IP trying to get to your index.html will be DENIED.
A denied IP trying to get your error403.html will be ALLOWED.
__________________
43-922-863 Shut up and play your guitar.
Tom_PM is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks
Thread Tools



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.