搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

How to hide Files / URL showing in Media Panel under Page Info?

more options

Hello Team,

We are not developing our site in corePHP. We have also enabled SSL on our site.

When one visits our Website and goes to the Page Info > Media Files; It discloses the source and hence increased chances of hacking attacks on the site. We are a little reluctant about this as well.

Kindly guide us further with appropriate suggestions or solution.

Hello Team, We are not developing our site in corePHP. We have also enabled SSL on our site. When one visits our Website and goes to the Page Info > Media Files; It discloses the source and hence increased chances of hacking attacks on the site. We are a little reluctant about this as well. Kindly guide us further with appropriate suggestions or solution.

所有回复 (3)

more options

The problem is disclosing the folder structure of your site? You can mask the true location using a script. What I mean by this is, you create a PHP script that takes some file identifier as a parameter and serves the image from its true (but undisclosed) location without disclosing the actual file name. To see what I mean, check the [1600x1200] link in the "lightbox" on this page: http://jeffersonscher.com/photos/cook/advsetb/ -- there's no way for you to determine the true location or file name.

You can make this seamless using URL rewriting, but that adds a bit of overhead. The script also could require a session ID or HTTP_REFERER to reduce hotlinking or direct scraping.

Some URL will always be disclosed to the agent (human or robotic), so I'm not sure the above gets you any closer to your goal.

more options

Thanks jscher2000,

But as you said i could not get any closer to it. Is there anyway we can block media info altogether?

Regards.

more options

Is there anyway we can block media info altogether?

Instead of having Firefox retrieve images by URL, which is the normal way that browsers retrieve inline and background images, you can serve data URI's, which are images encoded as very long strings. Not all browsers handle data URI's. More info:

I'm not sure I understand your security concern. How could direct access to an image by its URL, or knowledge of the location of one folder, be a problem?