<![CDATA[ Hide real path links in MIGX/getImageList - My Forums]]> https://forums.modx.com/thread/?thread=104939 <![CDATA[Hide real path links in MIGX/getImageList]]> https://forums.modx.com/thread/104939/hide-real-path-links-in-migx-getimagelist#dis-post-564241
I am using MIGX and getImageList to call to a tv of files for download. What I need is a way to hide the real paths, because this content will be in a paid section of the site.

How can I salt or otherwise hide these links? Right now they are not behind any paywall

Here is the relevant code:
                                <table class="table table-hover">
                                    <thead>
                                        <tr>
                                          <th class="text-left" scope="col">Audio</th>
                                          <th class="text-center" scope="col">Video</th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                    [[getImageList?
                                        &tvname=`VideosTV`
                                        &tpl=`@CODE:
                                        <tr>
                                            <td>
                                              <a class="col-lg-11 text-left video-text" href="[[+Audio]]" [[- data-toggle="modal" data-target=".Video_[[+idx]]"-]] title="Audio File" download>
                                                    <h3 class="video-title text-left">[[+Video]]</h3> 
                                                    <p class="video-description">[[+Description]]</p>
                                                </a>
                                            </td>
                                            <td>
                                                <a href="[[+Video]]" class="col-lg-1 text-center" title="Video" download>
                                                    <span class="video-download"><i class="fa fa-download"></i></span>
                                                </a>
                                            </td>
                                        </tr>`
                                    ]]
                                    </tbody>
                                </table>


]]>
nuan88 Feb 26, 2019, 02:32 PM https://forums.modx.com/thread/104939/hide-real-path-links-in-migx-getimagelist#dis-post-564241
<![CDATA[Re: Hide real path links in MIGX/getImageList]]> https://forums.modx.com/thread/104939/hide-real-path-links-in-migx-getimagelist#dis-post-564472 website]]> ranjitshastri Mar 16, 2019, 07:33 PM https://forums.modx.com/thread/104939/hide-real-path-links-in-migx-getimagelist#dis-post-564472 <![CDATA[Re: Hide real path links in MIGX/getImageList]]> https://forums.modx.com/thread/104939/hide-real-path-links-in-migx-getimagelist#dis-post-564470 nuan88 Mar 16, 2019, 06:44 PM https://forums.modx.com/thread/104939/hide-real-path-links-in-migx-getimagelist#dis-post-564470 <![CDATA[Re: Hide real path links in MIGX/getImageList]]> https://forums.modx.com/thread/104939/hide-real-path-links-in-migx-getimagelist#dis-post-564467 BobRay, Is there any easy way to push the filedownloader-r into the MIGX? I find I can't input the MIGX placeholder as the filename and get it to work programically.
Sorry, I don't know.
]]>
BobRay Mar 16, 2019, 03:53 AM https://forums.modx.com/thread/104939/hide-real-path-links-in-migx-getimagelist#dis-post-564467
<![CDATA[Re: Hide real path links in MIGX/getImageList]]> https://forums.modx.com/thread/104939/hide-real-path-links-in-migx-getimagelist#dis-post-564461
smg6511v2, that sounds like a very straightforward solution, very nice! Blocking at the htaccess level seems safer, too.

BobRay, Is there any easy way to push the filedownloader-r into the MIGX? I find I can't input the MIGX placeholder as the filename and get it to work programically.

I do think ultimately what I will do is move the files out of the root and use a media source, that's supposed to hide the paths. Susan has written many useful threads about this, although a clear user guide is still lacking.

I would have to go through and change the links but that's trivial.

But I always like the easy way best! And I ^love cramming bits of code together and making things work!

]]>
nuan88 Mar 15, 2019, 05:45 PM https://forums.modx.com/thread/104939/hide-real-path-links-in-migx-getimagelist#dis-post-564461
<![CDATA[Re: Hide real path links in MIGX/getImageList]]> https://forums.modx.com/thread/104939/hide-real-path-links-in-migx-getimagelist#dis-post-564453 https://docs.modx.com/extras/revo/filedownload-r.

It hides the path for you.]]>
BobRay Mar 14, 2019, 06:45 PM https://forums.modx.com/thread/104939/hide-real-path-links-in-migx-getimagelist#dis-post-564453
<![CDATA[Re: Hide real path links in MIGX/getImageList]]> https://forums.modx.com/thread/104939/hide-real-path-links-in-migx-getimagelist#dis-post-564451
The problem with simply hiding the files is that it doesn't take into account the fact that the path to any given file could be shared by an authorized user or otherwise made public.

I built a process for a research subscription site where each article had a downloadable PDF version. Those files were protected using the strategy above.

I can provide a little more guidance if needed should this idea interest you...]]>
smg6511v2 Mar 14, 2019, 05:11 PM https://forums.modx.com/thread/104939/hide-real-path-links-in-migx-getimagelist#dis-post-564451
<![CDATA[Re: Hide real path links in MIGX/getImageList]]> https://forums.modx.com/thread/104939/hide-real-path-links-in-migx-getimagelist#dis-post-564245 nuan88 Feb 26, 2019, 04:07 PM https://forums.modx.com/thread/104939/hide-real-path-links-in-migx-getimagelist#dis-post-564245