• Welcome to ForumKorner!
    Join today and become a part of the community.

What's the "Authentication Required" code?

Roobik

Active Member
Reputation
0
I need help with getting the code for that pop up you get while entering most porn sites.

ex: members.bangbros.com

Please contact me for further explanation.
 

Domasaurus

Active Member
Reputation
0
When you sign up, they e-mail you a code. You have to type that in to activate the account
 

Roobik

Active Member
Reputation
0
No, I need the code to add to my web page, I want to do what they're doing and let users sign in that way. I'd also appreciate tutorial a link.
 

sidorak95

Member
Reputation
0
Put a .htaccess in the folder. (ex public_html/members would protect www.example.com/members) and add this code in:
Code:
AuthType Basic
AuthName "Members. (or whatever text you want to appear)"
AuthUserFile "path/to/password/file/from/server/root"
require valid-user
and then for the password file:
Code:
username:password
Save this as .htpasswd

So if I wanted to protect www.google.com/secrets/, I would put this code:
Code:
AuthType Basic
AuthName "Google's top secret lab!"
AuthUserFile "home/google/public_html/secrets/.htpasswd"
require valid-user
in /htaccess under the secrets directory.

Of course, I just made up the path on the spot, but you know what I mean.
 
Top