GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   htaccess help (https://gfy.com/showthread.php?t=90449)

PeekHoles 11-26-2002 08:54 AM

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... :helpme

JohnnyUtah 11-26-2002 09:25 AM

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>

PeekHoles 11-26-2002 09:42 AM

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.

Gman.357 11-26-2002 09:50 AM

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]

ControlThy 11-26-2002 10:08 AM

Gman.357 is correct.
You do need the Apache "mod_rewrite" module installed and activated. (more information at apache.org).





http://delta3.bigcash.com/100x100_2.gif
BigCash.com: Your Gateway to Serious Bucks!

PeekHoles 11-26-2002 10:23 AM

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.

PeekHoles 11-26-2002 01:40 PM

Anyone know how I can get the pics to come up?

Darren 11-27-2002 12:59 PM

bump


All times are GMT -7. The time now is 08:34 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123