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 11-26-2002, 08:54 AM   #1
PeekHoles
Registered User
 
Industry Role:
Join Date: Jan 2002
Posts: 1,151
htaccess help

Can someone point me in the right direction on how to do this? I need the htaccess code to do this... say I have 3 sites A, B , C In order to get to site C you have to either come from site A, or site B. I don't wont some to be able to type site C in directly and be able to get there. I have searched the board I know I have seen the code posted some were. If anyone can point me in the right direction I would be thankfull. I thought it was a deny all type of code and then in the code it said ... deny from all
allow from domain or ip est...
PeekHoles is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-26-2002, 09:25 AM   #2
JohnnyUtah
Confirmed User
 
Join Date: Oct 2002
Posts: 826
I think your looking for something like this.
This would allow traffic commin in from a certain IP number to access your members area.

<Limit GET>
require valid-user
order deny,allow
deny from all
allow from 195.Your.ip.number
Satisfy Any
</Limit>
JohnnyUtah is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-26-2002, 09:42 AM   #3
PeekHoles
Registered User
 
Industry Role:
Join Date: Jan 2002
Posts: 1,151
Yeah I thought it was something like that but when I use that code I get a server 500 error. Does it need to be chmoded a certain property.
PeekHoles is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-26-2002, 09:50 AM   #4
Gman.357
Confirmed User
 
Join Date: Oct 2002
Location: USA
Posts: 2,796
Actually, you need something like this. Allow/Deny won't work for what you want:

AuthUserFile /dev/null
AuthGroupFile /dev/null

RewriteEngine On

RewriteCond %{HTTP_REFERER} !^http://www.site-a.com/.* [NC]
RewriteCond %{HTTP_REFERER} !^http://www.site-b.com/.* [NC]
RewriteCond %{HTTP_REFERER} !^http://www.site-c.com/.* [NC]


RewriteRule /* http://www.yoursite.com/error.html [R,L]

Last edited by Gman.357; 11-26-2002 at 09:53 AM..
Gman.357 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-26-2002, 10:08 AM   #5
ControlThy
Confirmed User
 
Join Date: May 2002
Posts: 1,909
Gman.357 is correct.
You do need the Apache "mod_rewrite" module installed and activated. (more information at apache.org).






BigCash.com: Your Gateway to Serious Bucks!
ControlThy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-26-2002, 10:23 AM   #6
PeekHoles
Registered User
 
Industry Role:
Join Date: Jan 2002
Posts: 1,151
Thanks everyone I got it working except it's will not pull up my pics on any of the pages. I'm at apache's site now also.

Last edited by PeekHoles; 11-26-2002 at 10:27 AM..
PeekHoles is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-26-2002, 01:40 PM   #7
PeekHoles
Registered User
 
Industry Role:
Join Date: Jan 2002
Posts: 1,151
Anyone know how I can get the pics to come up?
PeekHoles is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-27-2002, 12:59 PM   #8
Darren
Confirmed User
 
Darren's Avatar
 
Join Date: Sep 2001
Posts: 5,994
bump
Darren 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.