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 04-09-2003, 09:10 PM   #1
Mooney Giancana
Registered User
 
Join Date: Feb 2003
Posts: 34
how do i redirect surfers from the auth fail page...

to a different page on my site?

here is the problem. pass hackers list my passes, and my scripts deleted the passes. but instead of showing these freeloaders that bland auth fail page i'd like to redirect them to more a more productive page like my tgp or something. the .htaccess file for the members area has this on it...

AuthName "Members Only"
AuthType Basic
AuthUserFile /usr/local/apache/www/wouldntyouliketoknow.com/cgi-bin/pass/.htpasswd
require valid-user

...and i'd like to add to it to redirect to another page.


anyone know the solution?
__________________
Mooney Giancana says "now thats gangsta!"
Mooney Giancana is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-09-2003, 09:21 PM   #2
p00p
Confirmed User
 
Join Date: Dec 2002
Location: CanaDUH
Posts: 5,125
Are you trying to redirect 403 errors, or usernames? I have an .htaccess that will redirect usernames to a specific page.
__________________
ICQ: 316365783
<a href="http://www.hostultra.com/~p00p" target="_blank">TEST</a>
p00p is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-09-2003, 09:24 PM   #3
Mooney Giancana
Registered User
 
Join Date: Feb 2003
Posts: 34
i want to redirect all failed login attempts, you know how the pass prompt stays up for three tries in a row before it shows the failed auth page... well after that third try i wanna redirect that surfer's ass somewhere else!
__________________
Mooney Giancana says "now thats gangsta!"
Mooney Giancana is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-09-2003, 09:35 PM   #4
p00p
Confirmed User
 
Join Date: Dec 2002
Location: CanaDUH
Posts: 5,125
Quote:
Originally posted by Mooney Giancana
i want to redirect all failed login attempts, you know how the pass prompt stays up for three tries in a row before it shows the failed auth page... well after that third try i wanna redirect that surfer's ass somewhere else!
AuthUserFile /dev/null
AuthGroupFile /dev/null
AuthType Basic
ErrorDocument 401 /401.html

<Limit GET>
order allow,deny
allow from all
</Limit>

Put that .htaccess file in your root directory.
Then make a page called 401.html, put that in the same directory and edit the HTML to send them to where you want.
__________________
ICQ: 316365783
<a href="http://www.hostultra.com/~p00p" target="_blank">TEST</a>
p00p is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-09-2003, 10:00 PM   #5
Mooney Giancana
Registered User
 
Join Date: Feb 2003
Posts: 34
i tried that. must have done something worng but it aint work.

i put this...

AuthUserFile /dev/null
AuthGroupFile /dev/null
AuthType Basic
ErrorDocument 401 /401.html

on a .htaccess file, stuck it right inside my members directory, with a page named 401.html, and when i loaded the member section url into the browser it opened right up, THEN the pass prompt came and after three purposely botched attempts it went away and left my members index page wide open...
__________________
Mooney Giancana says "now thats gangsta!"
Mooney Giancana is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-09-2003, 10:04 PM   #6
p00p
Confirmed User
 
Join Date: Dec 2002
Location: CanaDUH
Posts: 5,125
Quote:
Originally posted by Mooney Giancana
i tried that. must have done something worng but it aint work.

i put this...

AuthUserFile /dev/null
AuthGroupFile /dev/null
AuthType Basic
ErrorDocument 401 /401.html

on a .htaccess file, stuck it right inside my members directory, with a page named 401.html, and when i loaded the member section url into the browser it opened right up, THEN the pass prompt came and after three purposely botched attempts it went away and left my members index page wide open...
Don't put it in your members directory. Put it one step up. And have your 401.html page one step up too, in the same directory as your .htaccess file. You can have an .htaccess file in your members directory and one in your root directory too.
__________________
ICQ: 316365783
<a href="http://www.hostultra.com/~p00p" target="_blank">TEST</a>
p00p is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-10-2003, 08:07 AM   #7
Mooney Giancana
Registered User
 
Join Date: Feb 2003
Posts: 34
that sounds good... but it isn't working
__________________
Mooney Giancana says "now thats gangsta!"
Mooney Giancana is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-10-2003, 10:04 AM   #8
directfiesta
Too lazy to set a custom title
 
directfiesta's Avatar
 
Industry Role:
Join Date: Oct 2002
Location: Montreal, Quebec
Posts: 29,677
Have also to change your config file:

AllowOverride All

instead of just :

AllowOverride AuthConfig


This will make that all htaccess will be considered in the operation of the server, not just the Authorisation of members.

Otherwise, all what pOOp posted is right on.
directfiesta is online now   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-10-2003, 11:36 AM   #9
Mooney Giancana
Registered User
 
Join Date: Feb 2003
Posts: 34
gonna give that a shot...

thanx both of you
__________________
Mooney Giancana says "now thats gangsta!"
Mooney Giancana 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.