![]() |
|
Article Options |
#16
|
|||
|
|||
Originally Posted by MrOnline
no httpd.conf and you have to be "root" to able to access that file
No members have liked this post.
|
#17
|
|||
|
|||
you sure ??
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.. No members have liked this post.
|
#18
|
||||
|
||||
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!
__________________
Photographer & author (three books on Amazon.com), GarageGlamour.com, RolandoGomez.net No members have liked this post.
|
#19
|
||||
|
||||
Originally Posted by rolandogomez
Please check the first post, this's already been stated:
Originally Posted by rolandogomez
Yes it does.
So you can use this line instead:
For more information: http://altlab.com/htaccess_tutorial.html
__________________
MsXLabs Forum No members have liked this post.
Last edited by NeutralizeR; 02 Oct 2006 at 21:25. |
#20
|
||||
|
||||
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!
__________________
Photographer & author (three books on Amazon.com), GarageGlamour.com, RolandoGomez.net No members have liked this post.
|
#21
|
||||
|
||||
Sorry, my mistake: it is post #5. I'm sleepy at the moment, hope i understood you correct:
__________________
MsXLabs Forum No members have liked this post.
|
#22
|
|||
|
|||
And how do you deal with attachment.php?
This is what they are stealing from me. htaccess does not protect that No members have liked this post.
|
#23
|
|||
|
|||
Originally Posted by Lionel
If guests can't view/download attachments, they won't be able to view/download your attachments on an external site. If you want to test it, just logout and click the link on the external site.
__________________
MsXLabs Forum No members have liked this post.
|
#24
|
|||
|
|||
Guest are allowed to see attachments. But I found a solution that works perfect for me. Attachment.php displays on my site only.
No members have liked this post.
|
#25
|
|||
|
|||
How would i make it so that a certain file is allowed to be hotlinked, like affiliates for example how would i allow people to hotlink my link button? and then the rest of the .gifs wont be allowed to be hotlinked
No members have liked this post.
|
#26
|
||||
|
||||
is there something we can use for windows server i know this method don't work that way
![]()
__________________
Android Custom Creations ![]() No members have liked this post.
|
#27
|
||||
|
||||
I added this code to my existing htaccess code obviously replacing the urls with my own and now none of my images are appearing on the forum. No photopost, forum icons ect.. Do you know what might be causing this? Thanks
RewriteEngine on RewriteCond %{HTTP_REFERER} !^http://www.msxlabs.org/.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://www.msxlabs.org$ [NC] RewriteRule .*\.(mp3|mpeg|mpg|ram|rm|wma|wav|asx|wmv|avi|mov|zip|rar|exe)$ http://www.msxlabs.org/forum/ [R,NC] RewriteEngine on RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http://www.msxlabs.org/.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://www.msxlabs.org$ [NC] RewriteRule .*\.(jpg|jpeg|gif|png|bmp|swf)$ http://www.msxlabs.org/forum/ [R,NC] No members have liked this post.
|
#28
|
||||
|
||||
Use this one below:
Change http://www.yourdomain.com/forum/ to anything you want to redirect to... (a page, a picture with .jpe extension)
__________________
MsXLabs Forum No members have liked this post.
|
#29
|
|||
|
|||
Great tutorial. However my redirect isn't working. Hotlinking is being blocked but it doesn't redirect to our home page.
I use: RewriteEngine On RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http://www.animeonline.net/.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://www.animeonline.net$ [NC] RewriteRule .*\.(jpg|jpeg|gif|png|bmp|swf)$ http://www.animeonline.net/ [R,NC] You can see a test page at www.myotherdomain.com/test.htm. There is a broken image that should redirect to AnimeOnline's home page. Correct? Thank you. No members have liked this post.
Last edited by aacircle; 21 Jan 2007 at 01:30. |
#30
|
|||
|
|||
Hi,
Image files are displayed as they are broken with hotlink protection enabled, they can't redirect to another page. I use one line for any file type to use less server resource: jpg|jpeg|gif|png|bmp|swf|mp3|mpeg|mpg|ram|rm|wma|wav|asx|wmv|avi|mov|zip|rar|exe If they link a zip file pointing to your domain, it redirects to your homepage if somebody clicks on it. This method doesn't work for image files.
__________________
MsXLabs Forum No members have liked this post.
|
![]() |
![]() |
||||
Article | Author | Type | Replies | Last Post |
htaccess Protection for admincp & any dir | Omranic | Modification Graveyard | 47 | 10 Jan 2007 12:06 |
«
Previous Article
|
Next Article
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Article Options | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 12:46.