View previous topic :: View next topic |
Author |
Message |
erislon -
Joined: 12 Jan 2005 Posts: 3 Location: Nanaimo, BC Candada
|
Posted: Thu Jan 13, 2005 12:36 am Post subject: block direct linking |
|
|
I wanna block people from directly linking to images in my "images" folder....can this be done.....I have restricted the directory....asks for password and all that.........but if you go straight to a file it does not....
ie....link to http://mysite.com/images/
would ask for a password....but
http://mysite.com/images/somepic.jpg
will not ask.....
can this be blocked? a setting...? if not...anyone know of a PHP or CGI that can do this? |
|
Back to top |
|
|
Axis -
Joined: 29 Sep 2003 Posts: 336
|
Posted: Thu Jan 13, 2005 1:48 am Post subject: |
|
|
Hello erislon--
Are you using Abyss's password protection? The Access control? The behavior you describe should not be happening. Access control should prompt for username and password at and inside any directory you protect.
Let us know.
Regards,
Axis |
|
Back to top |
|
|
TRUSTAbyss -
Joined: 29 Oct 2003 Posts: 3752 Location: USA, GA
|
Posted: Thu Jan 13, 2005 3:56 am Post subject: |
|
|
I think this sounds more like a Anti-Leech type of issue , you don't want any
one to directly link to your images from their website , you would need to try
the beta version of Abyss Web Server to do this , Have A Nice Day...
Note: www.aprelium.com uses the Beta of Abyss Web Server that can be
found in the Beta 2.0 forum , please try it out and see if you like it. |
|
Back to top |
|
|
Arctic -
Joined: 24 Sep 2004 Posts: 560
|
Posted: Thu Jan 13, 2005 3:57 am Post subject: |
|
|
How do you work it? |
|
Back to top |
|
|
TRUSTAbyss -
Joined: 29 Oct 2003 Posts: 3752 Location: USA, GA
|
Posted: Thu Jan 13, 2005 3:59 am Post subject: |
|
|
Take a look at http://abyssws.cjb.net for a easy to follow tutorial , their is
a new parameter added to v2.0.0.18 that allows you to add allowed hosts. |
|
Back to top |
|
|
erislon -
Joined: 12 Jan 2005 Posts: 3 Location: Nanaimo, BC Candada
|
Posted: Thu Jan 13, 2005 8:54 pm Post subject: |
|
|
TRUSTpunk wrote: | I think this sounds more like a Anti-Leech type of issue , you don't want any
one to directly link to your images from their website , you would need to try
the beta version of Abyss Web Server to do this , Have A Nice Day...
Note: www.aprelium.com uses the Beta of Abyss Web Server that can be
found in the Beta 2.0 forum , please try it out and see if you like it. |
ok...so I went and got the beta....and set the anti-leech thingy....worked great. except....that it wouldn't even allow pages in my site to link to that directory. so onreading the manual....I find I can make it ignore my site.....cool.....oh wait...not cool....now people can type the exact url of the pic and viola...there it is...you see...it's not people using images on their site I'm trying to stop....it's people sharing directlinks to them I don't want....
I don't want people to be able to view http://mysite.com/images/picture.jpg
I want them to have to log in and use the gallery to view them.
ie. http://mysite.com/gallery.php will be able to display images in the ./images dirctory.....but http://mysite.com/images/picture.jpg will not...
any ideas |
|
Back to top |
|
|
Axis -
Joined: 29 Sep 2003 Posts: 336
|
Posted: Thu Jan 13, 2005 9:43 pm Post subject: |
|
|
Hello erislon--
Please re-read my first response to your post. If you want to password protect the "images" directory you can do this through Abyss's Access Control settings and User and Groups settings.
Regards,
Axis |
|
Back to top |
|
|
admin Site Admin
Joined: 03 Mar 2002 Posts: 1295
|
|
Back to top |
|
|
erislon -
Joined: 12 Jan 2005 Posts: 3 Location: Nanaimo, BC Candada
|
Posted: Fri Jan 14, 2005 11:23 pm Post subject: |
|
|
ok...perhaps a few missed my first post...I setup the allow/deny access for the /images directory....and if you goto http://mysite.com/images/ it will pop up and ask for password...which is great. but if you goto http://mysite.com/images/image1.jpg does not ask for passwrod....it just goes to the image. this is what I want to stop. now I tried the beta at someones suggestion and it caused more issues...so I un/re-installed abyss ( not beta ) and seems to have fixed it. it does now ask for pass if you try http://mysite.com/images/image1.jpg . but now I have a new issue...it also ask for pass on pages that call for images from the protected directory.....ie (http://mysite.com/gallery.php calls images from http://mysite.com/images/ ) is there a way around this....or am I trying to have my cake an eat it too ;) |
|
Back to top |
|
|
olly86 -
Joined: 25 Apr 2003 Posts: 993 Location: Wiltshire, UK
|
Posted: Sat Jan 15, 2005 1:33 am Post subject: |
|
|
the anti-leeching option in the new beta allows you to set hosts that can link to the folder, and prevent requests with no referrer header. this is probably more of what you need. _________________ Olly |
|
Back to top |
|
|
senshi -
Joined: 05 Nov 2003 Posts: 385 Location: UK
|
Posted: Sat Jan 15, 2005 1:49 pm Post subject: |
|
|
just use common or garden variety CGI, something that will process all URL with any cgi information.
Then you can move all data, invalidate a CGI value and allsorts of other things.
It would be the simplest soloution for you.
Even simpler would be NOT to put anything up on the net that you dont want stolen. That is the nature of the internet, if you put something up, someone will steal it, link to it or copy your site because they have no imagination and cant come up with something original.
Other things you can do to make your artwork less attractive is to introduce water marks, lower quality pictures and small sizes as well.
Use of no-right click scripts... Save yourself the bother because usiing them only alienates the visitor from your site, allot of people that brows allot have right click options that they have embedded themselves to make navigation and use of the web easier, if you add a no-right click script, you will be alienating something in the order of 21% of internet users as quoted on one of the many web developer sites I visit.
It also is easily got around by using another browser like firefox. So its pointless as I pointed out to a website by emailing them the entire content of their no-right click protected website. Not heard anything from them yet... |
|
Back to top |
|
|
|