网址混淆?
我需要对用户隐藏 WordPress 站点上 mp3 文件的所有链接,而不是对我在页面上设置的用于播放它们的 mp3 播放器隐藏。 (针对未经授权的下载的初步防御。)
我还想删除所有 WordPress 文件夹名称(wp-admin、wp-content、wp-includes)上的“wp-”前缀,这样不会破坏 WordPress 的未来更新。
如果这两项任务都可以在不重命名实际目录的情况下完成,而是使用 PHP、.htaccess、Javascript 或其他东西来“屏蔽”真实的 url,那就最好了。
谢谢!
I need to have all links to mp3 files on a Wordpress site hidden from the user without being hidden from the mp3 player I have set up on the page to play them. (Initial defense against unauthorized downloads.)
I would also like to remove the "wp-" prefix on all wordpress folder names (wp-admin, wp-content, wp-includes) in a way that will not break future updates to Wordpress.
Best if both of these tasks can be done without renaming the actual directory and instead using PHP, .htaccess, Javascript, or something else to "mask" the true url.
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不确定使用 JavaScript 屏蔽任何内容的能力如何。更好的解决方案是创建一个 PHP 脚本,根据用户是否经过身份验证等来为您的 mp3 文件提供服务。这样一来,您至少可以将 mp3 文件存储在 Web 根目录上方的一个文件夹中,并且远离尝试使用 URL 下载它们的人。
Not sure as to how well you will be able to mask anything using JavaScript. A better solution would be to create a PHP Script that would serve your mp3 files based on whether a user is authenticated or something. That way you could at least store the mp3 files one folder up from your web root and away from people trying to download them using urls.