![]() |
![]() |
![]() |
||||
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. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
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!" |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
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> |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
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!" |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 | |
Confirmed User
Join Date: Dec 2002
Location: CanaDUH
Posts: 5,125
|
Quote:
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> |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
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!" |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 | |
Confirmed User
Join Date: Dec 2002
Location: CanaDUH
Posts: 5,125
|
Quote:
__________________
ICQ: 316365783 <a href="http://www.hostultra.com/~p00p" target="_blank">TEST</a> |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
Registered User
Join Date: Feb 2003
Posts: 34
|
that sounds good... but it isn't working
__________________
Mooney Giancana says "now thats gangsta!" |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 |
Too lazy to set a custom title
Industry Role:
Join Date: Oct 2002
Location: Montreal, Quebec
Posts: 29,676
|
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. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 |
Registered User
Join Date: Feb 2003
Posts: 34
|
gonna give that a shot...
thanx both of you
__________________
Mooney Giancana says "now thats gangsta!" |
![]() |
![]() ![]() ![]() ![]() ![]() |