<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Glotzfisch.de &#187; Browser</title>
	<atom:link href="http://www.glotzfisch.de/category/web-programming/browser/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.glotzfisch.de</link>
	<description>If something does not work out the way you want it to - try something different</description>
	<lastBuildDate>Wed, 26 May 2010 08:43:27 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>A Search bar hijacked my Firefox</title>
		<link>http://www.glotzfisch.de/a-search-bar-hijacked-my-firefox/</link>
		<comments>http://www.glotzfisch.de/a-search-bar-hijacked-my-firefox/#comments</comments>
		<pubDate>Thu, 20 Aug 2009 13:35:38 +0000</pubDate>
		<dc:creator>Gabi</dc:creator>
				<category><![CDATA[Browser]]></category>
		<category><![CDATA[config]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[Search]]></category>

		<guid isPermaLink="false">http://www.glotzfisch.de/?p=107</guid>
		<description><![CDATA[Very annoying. Even though I uninstalled it, it remained &#8220;somehow&#8221; there. When I typed something into the URL field and expected being taken to Google, it still took me to that unwanted other party&#8230;
The solution: go to about:config, search for keyword.url and right mouse-click &#8220;Reset&#8221;. tadaaa.
]]></description>
			<content:encoded><![CDATA[<p>Very annoying. Even though I uninstalled it, it remained &#8220;somehow&#8221; there. When I typed something into the URL field and expected being taken to Google, it still took me to that unwanted other party&#8230;<br />
The solution: go to <code>about:config</code>, search for <code>keyword.url</code> and right mouse-click &#8220;Reset&#8221;. tadaaa.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.glotzfisch.de/a-search-bar-hijacked-my-firefox/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cookies &#8211; Kekse</title>
		<link>http://www.glotzfisch.de/cookies-kekse/</link>
		<comments>http://www.glotzfisch.de/cookies-kekse/#comments</comments>
		<pubDate>Sat, 19 Jan 2008 21:27:24 +0000</pubDate>
		<dc:creator>Gabi</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Browser]]></category>

		<guid isPermaLink="false">http://www.glotzfisch.de/cookies-kekse/</guid>
		<description><![CDATA[Ok, so what do we want to do? If someone wants do download an image in fullsize, original or hires mode or requests a video in any format, a copyright message shall be displayed and the user has to click on &#8220;I accept&#8221; before he is taken to the requested file.
I elaborated on this before.
Using [...]]]></description>
			<content:encoded><![CDATA[<p>Ok, so what do we want to do? If someone wants do download an image in fullsize, original or hires mode or requests a video in any format, a copyright message shall be displayed and the user has to click on &#8220;I accept&#8221; before he is taken to the requested file.</p>
<p><a href="/copyright-message/">I elaborated on this before.</a></p>
<p>Using cookies makes it all a bit easier. When the user accepts cookies, he will not be bothered by the copyright messages for 30 days. And Apache can test on the existance of the cookie. So now the .htaccess looks like this.</p>
<pre>  ## do that only if the cookie is not set
  RewriteCond %{HTTP_COOKIE} !CopyrightCookie
  ## comes not from the copyright page
  RewriteCond %{HTTP_REFERER} !(^.*/public/copyright\.html$)
  ## comes not from itself, so has been redirected already
  RewriteCond %{HTTP_REFERER} !(^.*(jpg|tif|tiff|jpeg|mov|mp4|mpg|ram|wmv|avi)(\?.*)?$)
  ## is a request for a hires or fullres image
  RewriteCond %{REQUEST_URI} ^.*(\/original\/|\/wallpaper(1|2|3)\/|\/publication.*\/).*$
  ## then do the trick...
  RewriteRule   ^(.*)$  /public/copyright.html</pre>
<p>The copyright message sets the cookie after the user has accepted it (post to itself) and redirects the user to the requested file afterwards. So this should also work when the user has cookies disabled like in the version before.</p>
<pre>  if ($accept = $_REQUEST["accept"]) {
    # just submitted, so set the cookie
    $cvalue = "accepted";
    $cookie = setcookie("CopyrightCookie",$cvalue, time()+60*60*24*30, "/",".domain.org");
    # and redirect the user to his desired destination
    if ($target == $_SERVER["PHP_SELF"]) {
	# go back to source
	header("Location: ".$source);
    } else {
	# go to target
	header("Location: ".$target);
    }
  }</pre>
<p>and just for completeness the form:</p>
<pre>  &lt;form name="copyright" action="&lt;?=$_SERVER["PHP_SELF"]?&gt;" method="post"&gt;
  &lt;input type="hidden" name="target" value="&lt;?=$target?&gt;"&gt;
  &lt;input type="hidden" name="source" value="&lt;?=$source?&gt;"&gt;
  &lt;input type="hidden" name="accept" value="1"&gt;
  &lt;input type="button" value="I accept the conditions" class="button_yes"
         onClick="document.forms[1].submit();"&gt;
  &lt;input type="button" value="I do not accept the conditions" class="button_no"
         onClick="location.href='&lt;?=$source?&gt;';"&gt;
  &lt;/form&gt;</pre>
<p>There are some problems concerning video though:</p>
<ul>
<li> when using Firefox on Windows and requesting a wmv file, the copyright notice is displayed and accepted. Afterwards, Windows Media Player opens and tries to access the file which is denied as <strong>WMP uses of course the cookies set by Internet Explorer</strong>. As we browsed to the site using FF, WMP is not working here. 2 Possibilities:
<ul>
<li> right-click the file and save as&#8230; and then play it</li>
<li> or browse to the site with IE and accept the cookie here&#8230;</li>
</ul>
</li>
<li> Cookies are not evaluated when doing a right-click-save-as. So you&#8217;ll probably always get the copyright.html when trying to download a file&#8230; So I&#8217;ll have to get back to my slogan: try something different&#8230;</li>
</ul>
<p>(does anyone have a better idea?) To make things worse, Safari won&#8217;t let you download an MPG file. When clicking on it, it displays fine with Quicktime inside the browser but when &#8220;right-clicking&#8221; and trying to download it, it just downloads the copyright notice again. So it seems it does not do the cookie check here. This really drives me nuts&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.glotzfisch.de/cookies-kekse/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>BrowserTipps</title>
		<link>http://www.glotzfisch.de/browsertipps/</link>
		<comments>http://www.glotzfisch.de/browsertipps/#comments</comments>
		<pubDate>Tue, 25 Sep 2007 21:19:53 +0000</pubDate>
		<dc:creator>Gabi</dc:creator>
				<category><![CDATA[Browser]]></category>
		<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://www.glotzfisch.de/browsertipps/</guid>
		<description><![CDATA[Verschiedene Browser, verschiedene Sorgen&#8230; das Leben als Pixelschubse ist schon manchmal nicht so einfach. Dank des genialen Buchs &#8220;CSS Layouts&#8221; von Dirk Jesse, das ich an dieser Stelle nochmal erwähnen möchte, bin ich nun um einige Hacks schlauer ;-)
Das Sorgenkind: IE
Auch hierfür gibt es Hilfsmittel. z.B. die Web Developer Toolbar von MS
Naja&#8230; Safari
macht alles anders, [...]]]></description>
			<content:encoded><![CDATA[<p>Verschiedene Browser, verschiedene Sorgen&#8230; das Leben als Pixelschubse ist schon manchmal nicht so einfach. Dank des genialen Buchs &#8220;<a href="http://www.yaml.de/css_layouts.html" class="urllink">CSS Layouts</a>&#8221; von Dirk Jesse, das ich an dieser Stelle nochmal erwähnen möchte, bin ich nun um einige Hacks schlauer ;-)</p>
<h3>Das Sorgenkind: IE</h3>
<p>Auch hierfür gibt es Hilfsmittel. z.B. die <a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=e59c3964-672d-4511-bb3e-2d5e1db91038&amp;displaylang=en">Web Developer Toolbar</a> von MS</p>
<h3>Naja&#8230; Safari</h3>
<p>macht alles anders, koennte man sagen. Und macht mir vor allem Probleme beim mod-rewrite, das ich bei der Copyright Message benutze&#8230;</p>
<h3>Der Standard: FF</h3>
<p>sollte ja allgemein bekannt sein, aber der Vollständigkeit halber: <a href="http://chrispederick.com/work/webdeveloper/">Web Developer Toolbar für FF</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.glotzfisch.de/browsertipps/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
