Register Members List Search Today's Posts Mark Forums Read

Reply
 
Article Options
  #16  
Old 01 Oct 2006, 23:38
Delphiprogrammi Delphiprogrammi is offline
 
Join Date: Feb 2004
Real name: Erik
Originally Posted by MrOnline
if i was to use it in .conf file, should i then have it in apaceh.conf ??

Kinda noob in linux world :-)
no httpd.conf and you have to be "root" to able to access that file
Reply With Quote
  #17  
Old 02 Oct 2006, 20:08
MrOnline MrOnline is offline
 
Join Date: Feb 2006
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..
Reply With Quote
  #18  
Old 02 Oct 2006, 20:49
rolandogomez's Avatar
rolandogomez rolandogomez is offline
 
Join Date: Jan 2006
Location: San Antonio
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
Reply With Quote
  #19  
Old 02 Oct 2006, 22:21
NeutralizeR NeutralizeR is offline
 
Join Date: Aug 2005
Originally Posted by rolandogomez
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?
Please check the first post, this's already been stated:
You should add these extra two lines for each domain you want to allow:
Originally Posted by rolandogomez
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!
Yes it does.

So you can use this line instead:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

For more information:
http://altlab.com/htaccess_tutorial.html
__________________
MsXLabs Forum

Last edited by NeutralizeR; 02 Oct 2006 at 22:25.
Reply With Quote
  #20  
Old 03 Oct 2006, 06:57
rolandogomez's Avatar
rolandogomez rolandogomez is offline
 
Join Date: Jan 2006
Location: San Antonio
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
Reply With Quote
  #21  
Old 03 Oct 2006, 07:42
NeutralizeR NeutralizeR is offline
 
Join Date: Aug 2005
Sorry, my mistake: it is post #5. I'm sleepy at the moment, hope i understood you correct:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

__________________
MsXLabs Forum
Reply With Quote
  #22  
Old 03 Nov 2006, 15:54
Lionel Lionel is offline
 
Join Date: Dec 2001
Real name: Lionel
And how do you deal with attachment.php?

This is what they are stealing from me. htaccess does not protect that
Reply With Quote
  #23  
Old 03 Nov 2006, 18:55
NeutralizeR NeutralizeR is offline
 
Join Date: Aug 2005
Originally Posted by Lionel
And how do you deal with attachment.php?

This is what they are stealing from me. htaccess does not protect that
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
Reply With Quote
  #24  
Old 04 Nov 2006, 00:05
Lionel Lionel is offline
 
Join Date: Dec 2001
Real name: Lionel
Guest are allowed to see attachments. But I found a solution that works perfect for me. Attachment.php displays on my site only.
Reply With Quote
  #25  
Old 26 Nov 2006, 19:18
HostileAdam HostileAdam is offline
 
Join Date: Jul 2005
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
Reply With Quote
  #26  
Old 27 Nov 2006, 03:48
puertoblack2003's Avatar
puertoblack2003 puertoblack2003 is offline
 
Join Date: Aug 2005
is there something we can use for windows server i know this method don't work that way
__________________
Android Custom Creations
Reply With Quote
  #27  
Old 18 Jan 2007, 10:50
Greek76's Avatar
Greek76 Greek76 is offline
 
Join Date: Sep 2006
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]
Reply With Quote
  #28  
Old 18 Jan 2007, 11:08
NeutralizeR NeutralizeR is offline
 
Join Date: Aug 2005
Use this one below:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Change http://www.yourdomain.com/forum/ to anything you want to redirect to...

(a page, a picture with .jpe extension)
__________________
MsXLabs Forum
Reply With Quote
  #29  
Old 20 Jan 2007, 13:30
aacircle aacircle is offline
 
Join Date: Jun 2005
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.

Last edited by aacircle; 21 Jan 2007 at 02:30.
Reply With Quote
  #30  
Old 20 Jan 2007, 14:11
NeutralizeR NeutralizeR is offline
 
Join Date: Aug 2005
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
Reply With Quote
Reply

Similar Article
Article Author Type Replies Last Post
htaccess Protection for admincp & any dir Omranic Modification Graveyard 47 10 Jan 2007 13:06



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Article Options

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


New To Site? Need Help?

All times are GMT. The time now is 02:39.

Layout Options | Width: Wide Color: