CSS加密外部链接,并限制对它的访问 [英] Encrypt CSS external link and restrict access to it

查看:313
本文介绍了CSS加密外部链接,并限制对它的访问的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个新的客户,谁要求我作出2个网站,并没有付款为止! 我有FTP帐号,但他总能闭上我的访问,让我没有工资。 我可以在CSS上传到我的另一台服务器和加密链接CSS文件? 如果是的话,我可以限制人民看到该文件,如果他们发现的网址CSS文件?

I have a new client who asked me to make 2 websites and no payment so far! I have the ftp accounts, but he can always close my access and leave me without pay. Can I upload the CSS to another server of mine and encrypt the link to CSS file? If yes, can I restrict peoples to see the file if they find the URL to CSS file?

感谢您!

推荐答案

要做到这一点,最好的方法是在服务器上创建一个简单的PHP文件,使您可以访问,编辑和删除文件。您也可以搜索一个现成的轻量级FTP脚本。将PHP文件的某处嵌套在其他文件夹中的服务器上,并命名为类似temp.php。现在,即使客户端阻止你访问到服务器,您仍然可以访问,编辑和指向您的网址temp.php删除服务器上的文件。当你得到报酬,是一种足以删除该文件。不要忘了密码保护它。

The best way to do this is to create a simple PHP file that allows you to access, edit and delete files on the server. You can also search for a ready made lightweight ftp script. Place the PHP file somewhere on the server nested in other folders and name it something like temp.php. Now even if the client blocked you access to the server, you can still access, edit and delete files on the server by pointing your URL to temp.php. When you get paid, be kind enough to remove the file. Don't forget to password protect it.

在你的PHP文件,你可以使用执行opendir()阅读从目录,并的unlink()文件删除文件。如果你想要做的是能够删除的文件,那么该脚本不会带你多一分钟来创建。

In your PHP file you can use opendir() to read files from a directory, and unlink() to delete files. If all you want to do is be able to delete files, then the script will not take you more then a minute to create.

更新 您可以使用下面的轻量级FTP脚本,可以让您查看,编辑删除文件,也给你选择密码保护它。 http://sourceforge.net/projects/pafm/

UPDATE You can use the following lightweight ftp script that will let you view, edit delete files and also give you the option to password protect it. http://sourceforge.net/projects/pafm/

这篇关于CSS加密外部链接,并限制对它的访问的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆