HI All,
I would like to know how to hide the download file link in postnuke module
any function can redirect to the file??
how to use (any example)??
thx you!!
Watch
GitHub Core
Show your support for Zikula! Sign up at Github account and watch the Core project!
GitHub Modules
- mesteele101 created topic »ERR (3): E_USER_ERROR: Smarty error: [in pagesvar:pagesitem2en line XXX]…« 01:39 AM
- mesteele101 responded to »Zikula 1.3.3 - Selecting a category in Pages not working« 01:29 AM
- mdee created topic »How to implement returnpage ?« 01:00 AM
- nestormateo responded to »Fillters in Clip« 24. May
- damon responded to »Can the Updated Version Check be Turned Off (Z 1.3)« 24. May
- frw responded to »Bug in the SMTP mail transfer protocol - Port 25 - Zikula 1.2.9« 22. May
- mdee responded to »Short URL questions« 22. May
Zikula Blog
- Anatomy of Open Source Projects on Mar 07
- Continuous Review on Mar 01
- Not Invented Here on Feb 24
- How to Contribute Your Code at Github on Jan 13
- 10 Steps to Coding-Nirvana: Tips for Successful Module Writing on Nov 12
- Submitting Bug Report Tickets That Get Results on Aug 17
- Cozi Tricks #1: Syntax Highlighting on Aug 07
Login
How to hide the download link?
-
- Rank: Developer
- Registered: Dec 31, 1969
- Last visit: Jun 01, 2010
- Posts: 6859
Do you want to hide it from specfic users, or totally remove it from the menu? If you aren't going to use it at all, then just remove it from your menu block. If you want to remove it for a specific group, look at the permissions tables, there are a few permissions that remove links based on the group.
--
Home Page | Find on Facebook | Follow on Twitter
-
- Rank: Expert
- Registered: Mar 11, 2003
- Last visit: Oct 21, 2009
- Posts: 1104
Not sure what the goal is but it's easy enough to render such knowlege useless. Anyone downloading something to their computer can be expected to want to verify that they are indeed downloading what they want and where it is coming from. That doesn't mean they have to have the ability to do anything they wish with that knowledge. It's easy to deny them unauthorized access to the directory and/or file, if that is what you want to do; but I suspect there's more to this than that.
Slugger -
**unknown user**
- Rank: Senior
- Registered: Mar 16, 2002
- Last visit: Oct 21, 2009
- Posts: 2204
..Hey Slugger :D
I figured he just wanted to hide the file URL when passing a file to the browser.. I've used fpassthru(); with .htaccess files that restrict access to the original files with a lot of success..
I can agree with this:
Quote
Anyone downloading something to their computer can be expected to want to verify that they are indeed downloading what they want and where it is coming from.
.. but in the same token, some people have a distinct "need" to protect files from unauthorized access.. while fpassthru(); will not reveal the file path to the browser (even in source) it doesn't protect against the indexing of directories..which is where the .htaccess comes into play (restricting access to the host machine [aka: localhost]).. even if they miraculously guessed the directory of the files, they'd still be prevented access..
the other side of the "operation".. passing the file location in the header makes it difficult to protect the files.. you could use referer rules in the htaccess, but some browsers don't send referer info (..or so I've read).. it would also expose the first line of 'defense'.. the directories..
..it's a handy little system, but cross-compatibility can be a headache.. a browser update can alter dependancies.. nevertheless, it's worth it for "peace-of-mind"..
take care Slugger! .. and good luck antony_csf!
-IR
- Moderated by:
- Support
Users on-line
- 0 users
This list is based on users active over the last 60 minutes.
