Web Development



The best way to diguise a file on a web site ?

By JFComputech ·
I'm looking for a way to prevent the files on a restricted portion of a website from being accessed by copy and pasting the url to that file or bookmarking it.

I have a solution for the html files but the PDFs, MOVs and swf's are still accessable.

This conversation is currently closed to new comments.

Thread display: Collapse - | Expand +

All Answers

Collapse -

Let me get this right ...

by OldER Mycroft In reply to The best way to diguise a ...

You have files that inhabit a restricted area

You have users pasting the file's URL

Question: - if the area is 'restricted' how do the users get the URL of the individual files?

Just curious.

Collapse -

Just curious.

by JFComputech In reply to Let me get this right ...

Once the member logs in he can Copy and Paste the URL to someone, or if his membership is out of date and he has copies of the URLs stored he will still be able to access them.

Collapse -

You CAN do this in Apache

by Slayer_ In reply to The best way to diguise a ...

Google is your friend :)

I searched it up once to block people from downloading MP3's from my site, I wanted my site to give the rudest redirect possible to those people that leech from various new websites that search the web for open Mp3 downloads. To be honest, I was damn near tempted to replace the MP3's with virused versions and let those websites feed them out to everyone. But I havent had an mp3 virus in a very long time, so I got none at my disposal and I don't know how to make my own.

Collapse -

What web server?

by robo_dev In reply to The best way to diguise a ...

Basically you're trying to prevent forced browsing, and you either build the web page such that html is used for everything, or you build those restrictions into the server configuration, such that the web server does not hand out those files.

With ASP, for example, to define mp3 files to be recognized/restricted by the web server itself:

<add verb="*" path="*.mp3" type="System.Web.HttpForbiddenHandler" />

You do the same with your .htaccess file on the Apache side of things:


Related Discussions

Related Forums