rt,出于安全性考虑,求方法!
回复讨论(解决方案)
如果是传送文件,可以一边fread,一边echo
如果是传送文件,可以一边fread,一边echo
不是这个意思,我是想让别人访问我的网站时看到的地址不是我网站的真实地址,而且通过查看源代码,也看不到我的真实地址。
防君子不防小人,抓包就能看到
而且这样做没意义,网站不让人记住,只能是访问一次就不能再来了?
1.服务器控制,不停的转换映射
2.搞N个镜像,随机跳
3.不用域名,只用ip,然后后面的路径全部用一大串数字,还分层,哼,看谁不用bookmark能记住?!
楼主是不是需要个简单的 url重写
比如www.xxx.com/abc/3.php?def=39 改写为 www.xxx.com/d/39
实际上网站根目录下是没有d这个文件夹的
楼主说的是URL重写吧?
配置.htaccess或者是nginx.conf,或者是很多开源框架都支持url重写的。
防君子不防小人,抓包就能看到
而且这样做没意义,网站不让人记住,只能是访问一次就不能再来了?
1.服务器控制,不停的转换映射
2.搞N个镜像,随机跳
3.不用域名,只用ip,然后后面的路径全部用一大串数字,还分层,哼,看谁不用bookmark能记住?!
<html><head><link rel="shortcut icon" href="./images/favicon.ico"><title>信息管理系统</title><meta http-equiv=Content-Type content=text/html;charset=utf8></head><frameset rows="64,*" frameborder="NO" border="0" framespacing="0"> <frame src="top.php" noresize="noresize" frameborder="NO" name="topFrame" scrolling="no" marginwidth="0" marginheight="0" target="main" /> <frameset cols="200,*" rows="800,*" id="frame"> <frame src="left.php" name="leftFrame" noresize="noresize" marginwidth="0" marginheight="0" frameborder="0" scrolling="no" target="main" /> <frame src="right.php" name="main" marginwidth="0" marginheight="0" frameborder="0" scrolling="auto" target="_self" /> </frameset></frameset><noframes> <body></body></noframes></html>
我想将这段代码中的right.php这个地址隐藏,换成lw.php(不存在这个文件),让那些通过浏览器查看源代码的人看到的不是right.php而是lw.php,但是通过访问lw.php可以跳转到right.php。而且在跳转到right.php时在地址栏里看到的是http://bbs.csdn.net/topics/390582783?page=1#post-395490800这种形式的地址。
目的就是让其他人无法找到我的right.php源文件。
你说的那3个办法我不懂啊,能不能详细讲一下,或者给个关键字我自己去搜。
楼主是不是需要个简单的 url重写
比如www.xxx.com/abc/3.php?def=39 改写为 www.xxx.com/d/39
实际上网站根目录下是没有d这个文件夹的
php源文件里重写url能做到么
楼主说的是URL重写吧?
配置.htaccess或者是nginx.conf,或者是很多开源框架都支持url重写的。
php源文件里重写url能做到么
你这需求,#5的方法可以满足,自己搜搜本版url rewrite相关帖子或google
你这需求,#5的方法可以满足,自己搜搜本版url rewrite相关帖子或google
#5是什么
你这需求,#5的方法可以满足,自己搜搜本版url rewrite相关帖子或google
#5是什么
5楼
楼主是不是需要个简单的 url重写
比如www.xxx.com/abc/3.php?def=39 改写为 www.xxx.com/d/39
实际上网站根目录下是没有d这个文件夹的
php源文件里重写url能做到么
重写后 直接就把lw.php当做right.php用就是了 写转跳就写lw.php,会自动跳到right.php
没问题的
楼主说的是URL重写吧?
配置.htaccess或者是nginx.conf,或者是很多开源框架都支持url重写的。
php源文件里重写url能做到么
能,比如zend framework框架,你只需要在源代码index.php配置Router就可以了。
重写后 直接就把lw.php当做right.php用就是了 写转跳就写lw.php,会自动跳到right.php
没问题的
我先试试
跳转页面后显示的地址可以改成http://bbs.csdn.net/topics/390582783?page=1#post-395490800这种形式的地址吗?
重写后 直接就把lw.php当做right.php用就是了 写转跳就写lw.php,会自动跳到right.php
没问题的
我先试试
跳转页面后显示的地址可以改成http://bbs.csdn.net/topics/390582783?page=1#post-395490800这种形式的地址吗?
思路反过来如何? 如果你想显示这种形式 那就要按照这种形式转跳 然后按照这种形式来写重写规则以指向真正的页面
重写后 直接就把lw.php当做right.php用就是了 写转跳就写lw.php,会自动跳到right.php
没问题的
我先试试
跳转页面后显示的地址可以改成http://bbs.csdn.net/topics/390582783?page=1#post-395490800这种形式的地址吗?
思路反过来如何? 如果你想显示这种形式 那就要按照这种形式转跳 然后按照这种形式来写重写规则以指向真正的页面
<IfModule mod_rewrite.c> RewriteEngine on //on为打开,off为关闭 RewriteRule main.php$ index.php</IfModule>
我这么写的.htaccess怎么不行呢?出错Your browser sent a request that this server could not understand.
楼主说的是URL重写吧?
配置.htaccess或者是nginx.conf,或者是很多开源框架都支持url重写的。
php源文件里重写url能做到么
能,比如zend framework框架,你只需要在源代码index.php配置Router就可以了。
我重写了出错,见楼上。main.php是我的真实地址 index.php是虚拟的,这样不对吗?

Thesecrettokeepingaphp-poweredwebsiterunningsmoothlyunderheavyloadinVolvesserVeSkeystrategies: 1) pelaksanaanPodeCachingWithopCachetoreduceScriptexecutionTime, 2) UsedataBasequerycachingWnithSoRessendataBaBAboad, 3)

Anda harus mengambil berat tentang kebergantungan (DI) kerana ia menjadikan kod anda lebih jelas dan lebih mudah untuk dikekalkan. 1) Di menjadikannya lebih modular dengan decoupling kelas, 2) meningkatkan kemudahan ujian dan fleksibiliti kod, 3) menggunakan bekas DI untuk menguruskan kebergantungan kompleks, tetapi memberi perhatian kepada kesan prestasi dan kebergantungan bulat, 4) Amalan terbaik adalah bergantung kepada antara muka abstrak untuk mencapai gandingan longgar.

Ya, OptimizingaphpapplicationIspossibleandessential.1) pelaksanaanCachingUsingAputeDeducedeDataBaseload.2) OptimisedataTabaseseseshithindexing, eficientqueries, danConnectionPooling.3) EnhancecodeWithBuilt-Infungsi, EveringGlobalVariables

ThekeystrategiestoSignificLantantlyboostphpapplicationperformanceare: 1) useopcodecachinglikLikeopcachetoreduceExecutionTime, 2) OptimizedataBaseInteractionsWithPreparedStatementsandProperindexing, 3) ConfigureWebserverserverLikenginxWithPmforbetterShipter.

AphpdependencyInjectionContainerisatoLthatMatagesClassDependencies, EnhancingCodeModularity, Testability, andMaintainability.itactsascentralHubforcreatingandinjectingdependencies, sheReducingTightCouplingandeaseaseaseSunittesting.

Pilih DependencyInjection (DI) Untuk aplikasi besar, servicelocator sesuai untuk projek kecil atau prototaip. 1) DI meningkatkan kesesuaian dan modulariti kod melalui suntikan pembina. 2) ServiceLocator memperoleh perkhidmatan melalui pendaftaran pusat, yang mudah tetapi boleh menyebabkan peningkatan gandingan kod.

Phpapplicationscanbeoptimizedforspeedandeficiencyby: 1) enablingopcacheinphp.ini, 2) menggunakan preparedSwithpdofordatabasequeries, 3) menggantikanloopswitharray_filterandarray_mapfordataprocessing, 4) configuringnginywinginywinyvinyvinginy

PhpeMailvalidationInvolvestHreesteps: 1) formatValidationingRegularExpressionStocheckTheemailFormat; 2) dnsvalidationtoensurethedomainhasavalidmxrecord;


Alat AI Hot

Undresser.AI Undress
Apl berkuasa AI untuk mencipta foto bogel yang realistik

AI Clothes Remover
Alat AI dalam talian untuk mengeluarkan pakaian daripada foto.

Undress AI Tool
Gambar buka pakaian secara percuma

Clothoff.io
Penyingkiran pakaian AI

Video Face Swap
Tukar muka dalam mana-mana video dengan mudah menggunakan alat tukar muka AI percuma kami!

Artikel Panas

Alat panas

Muat turun versi mac editor Atom
Editor sumber terbuka yang paling popular

Notepad++7.3.1
Editor kod yang mudah digunakan dan percuma

Penyesuai Pelayan SAP NetWeaver untuk Eclipse
Integrasikan Eclipse dengan pelayan aplikasi SAP NetWeaver.

SublimeText3 versi Mac
Perisian penyuntingan kod peringkat Tuhan (SublimeText3)

PhpStorm versi Mac
Alat pembangunan bersepadu PHP profesional terkini (2018.2.1).
