blokowanie IE
Kazik - 29-01-2010 14:31
blokowanie IE
Chcialbym zaimplementowac w serwisie blokowanie przegladarek IE do
wersji 6 wlacznie, a wlasciwie przekierowanie na strone z odpowiednia
informacja. Serwis jest uruchomiony pod Apache z PHP5.
Jak lepiej jest tego dokonac? W .htaccess czy w kodzie PHP? Czy sam
regexp /MSIE [1-6]\./ bedzie ok? Jakiego kodu przekierowania uzyc? Czy
jakies boty indeksujace identyfikuja sie jako MSIE 1-6?
=?UTF-8?B?TWlyb3PFgmF3?= Zalewski - 29-01-2010 14:31
styczeñ roku pamiêtnego 2010, prawdopodobnie 11. Wielka m±dro¶æ na
czytelników pl.comp.www sp³ynê³a, gdy tako rzek³(a) Kazik:
> Chcialbym zaimplementowac w serwisie blokowanie przegladarek IE do
> wersji 6 wlacznie, a wlasciwie przekierowanie na strone z odpowiednia
> informacja. Serwis jest uruchomiony pod Apache z PHP5.
>
> Jak lepiej jest tego dokonac? W .htaccess czy w kodzie PHP? Czy sam
> regexp /MSIE [1-6]\./ bedzie ok? Jakiego kodu przekierowania uzyc?
> Czy jakies boty indeksujace identyfikuja sie jako MSIE 1-6?
Ja bym zrobi³ po stronie klienta:
<!--[if lte IE 6]>
<script type="text/javascript">
window.location = "http://twojadomena.pl/ie-sux.html"
</script>
<![endif]-->
To oczywi¶cie nie zadzia³a je¶li klient ma wy³±czon± obs³ugê
JavaScriptu, ale za to wychwyci IE i tylko IE lepiej ni¿ cokolwiek
dzia³aj±cego po UA.
Ewentualnie mo¿esz w komentarzu warunkowym daæ jeszcze jaki¶tekst i
specjalny arkusz stylu, który ukryje wszystko prócz tego tekstu.
Abstrahuj±c tutaj od faktu, ¿e blokowanie przegl±darek — jakie by one
nie by³y — nigdy nie jest dobrym pomys³em. Lepiej w mniejczy bardziej
inwazyjny sposób informowaæ u¿ytkownika ¿e jego przegl±darka jest do
dupy, ale jednak dostêp do tre¶ci mu daæ — nawet je¶li mamy pewno¶æ ¿e
zobaczy sieczkê. Niektórzy po prostu nie maj± mo¿liwo¶ci u¿ywania innej
przegl±darki lub za Chiny Ludowe nie chc± jej zmieniaæ.
--
Ni¿ej podpisany, zamieszka³y w http://minio.xt.pl ,
Miros³aw Zalewski
HaWaN - 29-01-2010 14:31
W dniu 2010-01-11 18:58, Kazik pisze:
> Chcialbym zaimplementowac w serwisie blokowanie przegladarek IE do
> wersji 6 wlacznie, a wlasciwie przekierowanie na strone z odpowiednia
> informacja. Serwis jest uruchomiony pod Apache z PHP5.
>
> Jak lepiej jest tego dokonac? W .htaccess czy w kodzie PHP? Czy sam
> regexp /MSIE [1-6]\./ bedzie ok? Jakiego kodu przekierowania uzyc? Czy
> jakies boty indeksujace identyfikuja sie jako MSIE 1-6?
http://www.stopie6.com/widgets.html
HaWaN - 29-01-2010 14:31
W dniu 2010-01-11 19:21, HaWaN pisze:
> W dniu 2010-01-11 18:58, Kazik pisze:
>> Chcialbym zaimplementowac w serwisie blokowanie przegladarek IE do
>> wersji 6 wlacznie, a wlasciwie przekierowanie na strone z odpowiednia
>> informacja. Serwis jest uruchomiony pod Apache z PHP5.
>>
>> Jak lepiej jest tego dokonac? W .htaccess czy w kodzie PHP? Czy sam
>> regexp /MSIE [1-6]\./ bedzie ok? Jakiego kodu przekierowania uzyc? Czy
>> jakies boty indeksujace identyfikuja sie jako MSIE 1-6?
> http://www.stopie6.com/widgets.html
lub : http://pliki.vivee.info/if_ie6/ie6.zip
a na linku który da³em wcze¶niej, masz kilka wersji kodu, nie tylko java ;)
=?UTF-8?B?UGF3ZcWCIFBpc2tvcno=?= - 29-01-2010 14:31
On 2010-01-11 18:58, Kazik wrote:
> Chcialbym zaimplementowac w serwisie blokowanie przegladarek IE do
> wersji 6 wlacznie, a wlasciwie przekierowanie na strone z odpowiednia
> informacja. Serwis jest uruchomiony pod Apache z PHP5.
Nie blokuj, olewaj IE6, ewentualnie dodaj
http://browsehappy.pl/infobarwebmaster
Kazik - 29-01-2010 14:31
Kazik pisze:
> Chcialbym zaimplementowac w serwisie blokowanie przegladarek IE do
> wersji 6 wlacznie, [...]
Dzieki za odpowiedzi, zdecydowalem sie ze nie bede blokowal i juz nawet
zaimplementowalem boks informacyjny pojawiajacy sie uzytkownikom
korzystajacym z przegladarek, co do ktorych nie moge zapewnic
poprawnosci wygladu i dzialania strony.
op23 - 29-01-2010 14:31
U¿ytkownik "Miros³aw Zalewski" <miniopl@CUT_THIS.gmail.com>
Ewentualnie mo¿esz w komentarzu warunkowym daæ jeszcze jaki¶ tekst i
specjalny arkusz stylu, który ukryje wszystko prócz tego tekstu.
Abstrahuj±c tutaj od faktu, ¿e blokowanie przegl±darek — jakie by one
nie by³y — nigdy nie jest dobrym pomys³em. Lepiej w mniej czy bardziej
inwazyjny sposób informowaæ u¿ytkownika ¿e jego przegl±darka jest do
dupy, ale jednak dostêp do tre¶ci mu daæ — nawet je¶li mamy pewno¶æ ¿e
zobaczy sieczkê. Niektórzy po prostu nie maj± mo¿liwo¶ci u¿ywania innej
przegl±darki lub za Chiny Ludowe nie chc± jej zmieniaæ.
--
Jakby kto¶ tego potrzebowa³ to by poprosi³