when i try this all i get is
Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, webmaster@tvandsportstreams.com and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. |
Quote:
Please paste the contents of your .htaccess file here. |
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^http://www.tvandsportstreams.com/.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://www.tvandsportstreams.com$ [NC] RewriteRule .*\.(mp3|mpeg|mpg|ram|rm|wma|wav|asx|wmv|avi|mov|z ip|rar|exe)$ http://www.tvandsportstreams.com/forum/ [F,NC] RewriteEngine on RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http://www.tvandsportstreams.com/.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://www.tvandsportstreams.com$ [NC] RewriteRule .*\.(jpg|jpeg|gif|png|bmp|swf)$ http://www.tvandsportstreams.com/forum/ [F,NC] had a better look and changed it to the following Code:
RewriteEngine on |
So, is it working now?
This is mine (in httpd.conf): Code:
Options All -Indexes |
if i was to use it in .conf file, should i then have it in apaceh.conf ??
Kinda noob in linux world :-) And will it interfer with other sites hosted on same server if i do it in root ? Not sure where i can do it or what to do if there are more than 1 site i will protect for this.. |
Quote:
|
i have a bunch of "apache2" services runing when i do ps -A, but no httpd
and the httpd.conf is more or less empty while the apache2.conf hold all information about the server.... And yes it's as root i try.. |
Thanks, again, I'm not a coder, but I did what you said and it worked. Now one more question, say I want to allow www.domainx.com, www.domainy.com and www.domainz.com how would I do this?
On another note, does it matter if we put http://domain.com or http://www.domain.com or for that matter http://mparton.domain.com ? Thanks again, rg sends! |
Quote:
Quote:
Quote:
So you can use this line instead: Code:
RewriteCond %{HTTP_REFERER} !^http://(.+\.)?allowed\.com/ [NC] http://altlab.com/htaccess_tutorial.html |
ok, call me an idiot, but can you show me the "whole" code for this scenario,
1. I need to let my domain, plus it's subdomains (example: http://www.domain.com, http://domain.com, http://extra.domain.com). 2. I also need the ability to pass through to other domains, so they can use images off my server. Example, http://www.domainguest1.com, http://www.domainguest2.com, and http://www.domainguest3.com Again, my apologies, I just don't see what you're explaining. Any help is greatly appreciated, thanks, rg sends! |
All times are GMT. The time now is 02:08 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|