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是虚拟的,这样不对吗?

Laravel simplifies handling temporary session data using its intuitive flash methods. This is perfect for displaying brief messages, alerts, or notifications within your application. Data persists only for the subsequent request by default: $request-

This is the second and final part of the series on building a React application with a Laravel back-end. In the first part of the series, we created a RESTful API using Laravel for a basic product-listing application. In this tutorial, we will be dev

Laravel provides concise HTTP response simulation syntax, simplifying HTTP interaction testing. This approach significantly reduces code redundancy while making your test simulation more intuitive. The basic implementation provides a variety of response type shortcuts: use Illuminate\Support\Facades\Http; Http::fake([ 'google.com' => 'Hello World', 'github.com' => ['foo' => 'bar'], 'forge.laravel.com' =>

The PHP Client URL (cURL) extension is a powerful tool for developers, enabling seamless interaction with remote servers and REST APIs. By leveraging libcurl, a well-respected multi-protocol file transfer library, PHP cURL facilitates efficient execution of various network protocols, including HTTP, HTTPS, and FTP. This extension offers granular control over HTTP requests, supports multiple concurrent operations, and provides built-in security features.

Do you want to provide real-time, instant solutions to your customers' most pressing problems? Live chat lets you have real-time conversations with customers and resolve their problems instantly. It allows you to provide faster service to your custom

In this article, we're going to explore the notification system in the Laravel web framework. The notification system in Laravel allows you to send notifications to users over different channels. Today, we'll discuss how you can send notifications ov

Article discusses late static binding (LSB) in PHP, introduced in PHP 5.3, allowing runtime resolution of static method calls for more flexible inheritance.Main issue: LSB vs. traditional polymorphism; LSB's practical applications and potential perfo

PHP logging is essential for monitoring and debugging web applications, as well as capturing critical events, errors, and runtime behavior. It provides valuable insights into system performance, helps identify issues, and supports faster troubleshoot


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

PhpStorm Mac version
The latest (2018.2.1) professional PHP integrated development tool

Zend Studio 13.0.1
Powerful PHP integrated development environment

SublimeText3 Mac version
God-level code editing software (SublimeText3)

DVWA
Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

mPDF
mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),
