Greenguy's Board


Go Back   Greenguy's Board > General Business Knowledge
Register FAQ Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
Old 2006-12-26, 07:07 AM   #30
Simon
That which does not kill us, will try, try again.
 
Simon's Avatar
 
Join Date: Aug 2003
Location: Conch Republic
Posts: 5,150
Send a message via ICQ to Simon Send a message via AIM to Simon Send a message via Yahoo to Simon
Lowry - I haven't seen your htaccess file to know what's already in there, but you may need to add this above the first RewriteCond:

RewriteEngine on

Some (few?) servers may need both of these lines added above the first RewriteCond:

RewriteEngine on
Options +FollowSymlinks

That second line would be used if your server isn't configured with FollowSymLinks in its <directory> section in httpd.conf, and you get a 500 Internal Server error when using the code without the second line.

~~

Another option could be to use something like this:

order allow,deny
deny from . eonpal.com
deny from . eonsex.com
allow from all

The denied users in this case will get a 403 error saying something like "You do not have permission to access this site." Or if you configure a custom error page for 403 errors, you can show them whatever you like.
__________________
"If you're happy and you know it, think again." -- Guru Pitka

Last edited by Simon; 2006-12-26 at 07:20 AM.. Reason: added the allow,deny method
Simon is offline   Reply With Quote
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:11 AM.


Mark Read
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc