![]() |
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 |
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> |
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.
|
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] |
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! |
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.
|
Anyone know how I can get the pics to come up?
|
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