dsp怪胎
Today’s stupid geek trick takes us to the unseen technical world beneath the surface of your favorite websites, and shows us how real geeks hide secret messages in the HTTP protocol headers. We’re talking Serious geek cred here.
如今的愚蠢怪胎技巧将我们带到您喜欢的网站表面之下看不见的技术世界,并向我们展示了真正的怪胎如何在HTTP协议标头中隐藏秘密消息。 我们在这里谈论严重的怪胎信誉。
What Are You Talking About?
你在说什么?
The thing you probably don’t realize is that behind the scenes, your web browser sends a request to the web server using the HTTP protocol, which is nothing more than a pre-defined set of commands in text format so the browser and web server can communicate.
您可能没有意识到的是,在幕后,您的Web浏览器使用HTTP协议向Web服务器发送了一个请求,该请求仅是文本格式的预定义命令集,因此浏览器和Web服务器可以进行通信。
…but that’s really boring. Which is why the geeks that run various web sites decided to hide messages in those headers just to see if anybody would notice. And some of them are rather fun.
…但这真的很无聊。 这就是为什么运行各种网站的极客决定将消息隐藏在这些标头中,以查看是否有人注意到的原因。 其中一些很有趣。
How to See the Hidden Headers
如何查看隐藏的标题
There’s a number of ways to access these headers, the easiest for real geeks is to pop open the command prompt and use the curl utility, available on Linux, Mac OS X, or even Windows—if you don’t mind downloading an additional utility.
有多种方法可以访问这些标头,对于真正的极客来说,最简单的方法是弹出命令提示符并使用curl工具,该工具可在Linux,Mac OS X甚至Windows上使用-如果您不介意下载其他工具, 。
The other way to view them is with the Live HTTP Headers add-on for Firefox.
查看它们的另一种方法是使用Firefox的Live HTTP Headers插件。
If you are using the curl method, you can simply type in the following command (that’s a dash and capital i, not an L)
如果您使用curl方法,则只需键入以下命令(即破折号和大写字母i,而不是L)
curl –I sitename.com
卷曲–我sitename.com
For instance, if you type in curl –I slashdot.org, you’ll see that they embed random quotes from Futurama into the headers:
例如,如果您输入curl –I slashdot.org,您将看到它们将来自Futurama的随机引号嵌入到标题中:
The blogging platform WordPress uses the header for a useful purpose—they recommend contacting them about a job if you’ve been able to locate the headers:
WordPress博客平台将标头用于有用的目的-如果您能够找到标头,建议您与他们联系以获取工作信息:
curl –I wordpress.com
卷曲–我wordpress.com
My buddy Ross over at SimpleHelp.net expresses his music taste in his header… by now I’m sure you can figure out the command.
我的好友Ross在SimpleHelp.net的标题中表达了他的音乐品味……到目前为止,我确定您可以弄清楚该命令。
Over at the Online Tech Tips site, they’ve got a very important tip for you:
在“ 在线技术提示”站点上,他们为您提供了非常重要的提示:
The CybernetNews blog tells us that you should tape your thumbs to your hands. I mean, everyone is doing it!
CybernetNews博客告诉我们,您应该将拇指粘在手上。 我的意思是,每个人都在做!
Mattias Geniar wants everybody to know who rocks. Turns out, it’s him!
Mattias Geniar希望每个人都知道谁在摇摆 。 原来是他!
The Tux Games site is using subliminal advertising. BUY MORE GAMES!
Tux Games网站正在使用潜意识广告。 购买更多游戏!
Add a Hidden Message To Your Own Web Site
向您自己的网站添加隐藏的消息
For those of you rocking a blog running on an Apache web server, and using a .htaccess file, you can actually add your own secret hidden message to your own HTTP headers.
对于那些摇摆在Apache Web服务器上运行并使用.htaccess文件的博客的人,您实际上可以将自己的秘密隐藏消息添加到自己的HTTP标头中。
Just open up your .htaccess file, and add the following line (near the beginning for best effect).
只需打开您的.htaccess文件,并添加以下行(为达到最佳效果,请靠近开头)。
Header set X-Nerd “Something Here”
标头设置X书呆子“这里的东西”
You can change whatever is after the X- to anything you want, like X-Yay or X-SecretStuff, and you can also put whatever message you want between the quotes—though I would keep it nice and short.
您可以将X-后面的内容更改为所需的任何内容,例如X-Yay或X-SecretStuff,也可以将所需的任何消息放在引号之间,尽管我会尽量简短。
Added Bonus: Pull a Random Futurama Quote from Slashdot
增加的奖励:从Slashdot提取随机Futurama报价
So now we’ve figured out how to see the quotes—with a little more command-line magic you can make a script that pulls a random quote from the Slashdot servers. Yes, this script is pretty useless, but it’s fun!
因此,现在我们已经弄清楚了如何查看引号-借助更多的命令行魔术,您可以制作一个从Slashdot服务器中提取随机引号的脚本。 是的,这个脚本几乎没有用,但是很有趣!
curl -sI slashdot.org | grep -E “X-(B|L|F)”
curl -sI slashdot.org | grep -E“ X-(B | L | F)”
There’s lots of other sites with hidden messages in the headers…
在标头中还有很多其他站点带有隐藏消息……
翻译自: https://www.howtogeek.com/howto/6499/stupid-geek-tricks-find-hidden-messages-in-web-site-headers/
dsp怪胎