Page 47 of 56

Re: Offtopic (I/2011)

Posted: Sat Sep 03, 2011 9:30 am
by -Z-
esa94 wrote:>Onko suurempaa lukua kuin 156?
>suurempaa lukua kuin 156
>156


Hm
EDIT:

also porkkana on ainoa vihannes jonka muistan, älkää tuomitko mua

hetko

onko porkkana edes vihannes

Taitaa olla juures.

Re: Offtopic (I/2011)

Posted: Fri Sep 09, 2011 7:30 pm
by Peltsi
Terveppä teille!

Mieltä askarruttaa kysymys proxy-servereiden blokkaamisesta .htaccess:sta käyttämällä. Googletin ja löysin tämän koodin:

Code: Select all

RewriteEngine on 
RewriteCond %{HTTP:VIA}                 !^$ [OR] 
RewriteCond %{HTTP:FORWARDED}           !^$ [OR] 
RewriteCond %{HTTP:USERAGENT_VIA}       !^$ [OR] 
RewriteCond %{HTTP:XROXY_CONNECTION}    !^$ [OR] 
RewriteCond %{HTTP:X-FORWARDED-FOR}     !^$ [OR] 
RewriteCond %{HTTP:FORWARDED-FOR}       !^$ [OR] 
RewriteCond %{HTTP:X-FORWARDED}         !^$ [OR] 
RewriteCond %{HTTP:X_FORWARDED_FOR}     !^$ [OR] 
RewriteCond %{HTTP:PROXY_CONNECTION}    !^$ [OR] 
RewriteCond %{HTTP:XPROXY_CONNECTION}   !^$ [OR] 
RewriteCond %{HTTP:HTTP_PC_REMOTE_ADDR} !^$ [OR] 
RewriteCond %{HTTP:HTTP_CLIENT_IP}      !^$ 
RewriteRule ^(.*)$ - [F]
Pitäisi torjua kaikki proxyt, mutta kun testailin toimintaa niin ei torjunutkaan mitään... Mikä olisi voinut mennä pieleen? Parempia ehdotuksia bannata proxyt (muita kuin "bannaa ne kaikki milj. ip:tä erikseen...")?

Laitan vielä koko .htaccess filun näkyville:

Code: Select all


deny from *trollaajanIP*
deny from *trollaajanIP*

RewriteBase /


RewriteEngine on 
RewriteCond %{HTTP:VIA}                 !^$ [OR] 
RewriteCond %{HTTP:FORWARDED}           !^$ [OR] 
RewriteCond %{HTTP:USERAGENT_VIA}       !^$ [OR] 
RewriteCond %{HTTP:XROXY_CONNECTION}    !^$ [OR] 
RewriteCond %{HTTP:X-FORWARDED-FOR}     !^$ [OR] 
RewriteCond %{HTTP:FORWARDED-FOR}       !^$ [OR] 
RewriteCond %{HTTP:X-FORWARDED}         !^$ [OR] 
RewriteCond %{HTTP:X_FORWARDED_FOR}     !^$ [OR] 
RewriteCond %{HTTP:PROXY_CONNECTION}    !^$ [OR] 
RewriteCond %{HTTP:XPROXY_CONNECTION}   !^$ [OR] 
RewriteCond %{HTTP:HTTP_PC_REMOTE_ADDR} !^$ [OR] 
RewriteCond %{HTTP:HTTP_CLIENT_IP}      !^$ 
RewriteRule ^(.*)$ - [F]


# Index-sivu:

DirectoryIndex index.php


# Aika-asetus:

php_value date.timezone "Europe/Helsinki"


# Virhesivut:

ErrorDocument 403 /error/403.html
ErrorDocument 404 /error/404.html
ErrorDocument 500 /error/500.html
Toivottavasti kaikki ymmärsivät ja joku voi auttaa :D .

Re: Offtopic (I/2011)

Posted: Fri Sep 09, 2011 7:41 pm
by esa94
Peltsi wrote: Pitäisi torjua kaikki proxyt, mutta kun testailin toimintaa niin ei torjunutkaan mitään... Mikä olisi voinut mennä pieleen? Parempia ehdotuksia bannata proxyt (muita kuin "bannaa ne kaikki milj. ip:tä erikseen...")?
Kokeile proxylla joka lähettää nuo headerit. Anonyymiä proxya ei voi automaattisesti blokata.

Re: Offtopic (I/2011)

Posted: Sun Sep 11, 2011 1:32 am
by Peltsi
Joku osaa kiertää IP bannit ja tulee sotkemaan sivujeni vieraskirjan. :x Nyt floodasi ties kuinkapaljon, oli vaikea saada pyyhittyä floodaus pois (viestit tallentuvat tekstitiedostoon, ja kun tedoston koko oli niin suuri, alkoi kone lagaamaan ja viestien poistamisesta tuli lähes mahdotonta)... Siksi kysyin tuosta proxyjenkin bannaamisesta... Miten menetellä tuollaisen trollin kanssa?
EDIT:

Ajattelin bannia kaikki maat paitsi Suomen (suurin osa proxyista ulkomailla, ja kävijät sivuilla 99% Suomesta). Maiden bannaus onnistui, mutta enään en voi bannata yksittäisiä IP-osotteita Suomesta... :|
.HTACCESS:

Code: Select all

RewriteBase /

#BANNIT#####################################################################################################################

<Limit GET HEAD POST>
order deny,allow
# Country: FINLAND
# ISO Code: FI
# Total Networks: 717
# Total Subnets:  9,727,040
allow from 31.7.16.0/20
allow from 31.15.120.0/21
allow from 31.25.144.0/21
allow from 31.47.64.0/21
allow from 31.172.152.0/21
allow from 31.217.192.0/21
allow from 46.17.192.0/21
allow from 46.23.160.0/20
allow from 46.30.128.0/21
allow from 46.58.0.0/17
allow from 46.132.0.0/16
allow from 46.163.192.0/18
allow from 46.173.224.0/20
allow from 46.182.112.0/21
allow from 46.182.160.0/21
allow from 46.183.72.0/21
allow from 46.228.128.0/20
allow from 46.231.192.0/21
allow from 46.254.96.0/21
allow from 46.254.208.0/21
allow from 46.255.192.0/21
allow from 62.44.192.0/18
allow from 62.61.64.0/18
allow from 62.71.0.0/16
allow from 62.72.224.0/19
allow from 62.73.32.0/19
allow from 62.78.96.0/19
allow from 62.78.128.0/17
allow from 62.80.128.0/19
allow from 62.106.0.0/18
allow from 62.113.160.0/19
allow from 62.121.32.0/19
allow from 62.142.0.0/16
allow from 62.145.160.0/19
allow from 62.148.96.0/19
allow from 62.148.192.0/19
allow from 62.165.128.0/19
allow from 62.165.160.0/19
allow from 62.176.32.0/19
allow from 62.183.128.0/17
allow from 62.197.160.0/19
allow from 62.204.0.0/19
allow from 62.216.96.0/19
allow from 62.220.224.0/19
allow from 62.236.0.0/16
allow from 62.237.0.0/16
allow from 62.240.64.0/19
allow from 62.241.192.0/18
allow from 62.248.128.0/17
allow from 77.72.56.0/21
allow from 77.86.128.0/17
allow from 77.91.208.0/21
allow from 77.95.144.0/21
allow from 77.95.240.0/21
allow from 77.105.64.0/18
allow from 77.109.192.0/18
allow from 77.223.32.0/19
allow from 77.234.96.0/19
allow from 77.240.16.0/20
allow from 77.246.192.0/20
allow from 78.27.64.0/18
allow from 79.99.152.0/21
allow from 79.133.0.0/19
allow from 79.134.96.0/19
allow from 79.141.144.0/20
allow from 79.171.224.0/21
allow from 79.171.232.0/21
allow from 80.64.0.0/20
allow from 80.66.160.0/20
allow from 80.69.160.0/20
allow from 80.71.192.0/20
allow from 80.74.192.0/20
allow from 80.74.208.0/20
allow from 80.75.96.0/20
allow from 80.81.160.0/20
allow from 80.81.176.0/20
allow from 80.83.0.0/20
allow from 80.88.176.0/20
allow from 80.95.128.0/20
allow from 80.186.0.0/16
allow from 80.220.0.0/14
allow from 80.242.16.0/20
allow from 80.246.144.0/20
allow from 80.246.160.0/20
allow from 80.247.240.0/20
allow from 80.248.96.0/20
allow from 80.248.112.0/20
allow from 80.248.160.0/20
allow from 80.248.240.0/20
allow from 81.16.64.0/20
allow from 81.17.192.0/20
allow from 81.19.112.0/20
allow from 81.20.224.0/20
allow from 81.22.160.0/20
allow from 81.22.240.0/20
allow from 81.29.128.0/20
allow from 81.31.48.0/20
allow from 81.90.64.0/20
allow from 81.175.128.0/17
allow from 81.197.0.0/16
allow from 81.209.0.0/17
allow from 82.103.192.0/18
allow from 82.116.224.0/19
allow from 82.118.192.0/19
allow from 82.128.128.0/17
allow from 82.130.0.0/18
allow from 82.133.128.0/17
allow from 82.138.128.0/18
allow from 82.141.64.0/18
allow from 82.181.0.0/16
allow from 82.195.192.0/19
allow from 82.197.0.0/19
allow from 82.199.160.0/19
allow from 82.199.224.0/19
allow from 82.203.128.0/17
allow from 82.215.192.0/18
allow from 83.100.0.0/17
allow from 83.102.0.0/17
allow from 83.136.248.0/21
allow from 83.142.72.0/21
allow from 83.143.56.0/21
allow from 83.143.88.0/21
allow from 83.143.216.0/21
allow from 83.145.192.0/18
allow from 83.146.128.0/18
allow from 83.146.192.0/18
allow from 83.148.192.0/18
allow from 83.150.64.0/18
allow from 83.216.0.0/19
allow from 83.245.128.0/17
allow from 84.20.128.0/19
allow from 84.34.0.0/16
allow from 84.230.0.0/15
allow from 84.234.64.0/20
allow from 84.239.128.0/17
allow from 84.240.64.0/18
allow from 84.248.0.0/14
allow from 84.253.192.0/18
allow from 85.23.0.0/16
allow from 85.29.64.0/18
allow from 85.76.0.0/14
allow from 85.131.0.0/17
allow from 85.134.0.0/17
allow from 85.156.0.0/16
allow from 85.157.0.0/16
allow from 85.188.0.0/18
allow from 85.194.192.0/18
allow from 85.217.0.0/17
allow from 86.50.0.0/16
allow from 86.60.128.0/17
allow from 86.114.0.0/15
allow from 87.92.0.0/14
allow from 87.100.128.0/17
allow from 87.108.0.0/16
allow from 87.236.152.0/21
allow from 87.236.168.0/21
allow from 87.236.224.0/21
allow from 87.239.120.0/21
allow from 87.254.192.0/19
allow from 88.85.128.0/19
allow from 88.86.128.0/19
allow from 88.112.0.0/15
allow from 88.114.0.0/15
allow from 88.148.128.0/17
allow from 88.192.0.0/14
allow from 89.17.64.0/19
allow from 89.18.224.0/19
allow from 89.27.0.0/17
allow from 89.106.32.0/19
allow from 89.166.0.0/17
allow from 89.190.0.0/19
allow from 89.200.192.0/21
allow from 89.207.8.0/21
allow from 89.236.64.0/18
allow from 89.250.48.0/20
allow from 91.90.48.0/21
allow from 91.123.128.0/20
allow from 91.133.0.0/16
allow from 91.145.64.0/18
allow from 91.150.0.0/18
allow from 91.152.0.0/13
allow from 91.189.208.0/21
allow from 91.190.192.0/21
allow from 91.194.20.0/23
allow from 91.197.84.0/22
allow from 91.197.208.0/22
allow from 91.198.120.0/24
allow from 91.199.148.0/24
allow from 91.202.112.0/22
allow from 91.209.29.0/24
allow from 91.213.97.0/24
allow from 91.213.161.0/24
allow from 91.214.164.0/22
allow from 91.215.132.0/22
allow from 91.216.77.0/24
allow from 91.216.136.0/24
allow from 91.217.116.0/23
allow from 91.217.211.0/24
allow from 91.217.248.0/24
allow from 91.217.252.0/24
allow from 91.219.172.0/22
allow from 91.220.241.0/24
allow from 91.221.238.0/23
allow from 91.222.188.0/22
allow from 91.223.107.0/24
allow from 91.223.116.0/24
allow from 91.224.4.0/23
allow from 91.224.88.0/23
allow from 91.225.68.0/22
allow from 91.227.187.0/24
allow from 91.227.192.0/23
allow from 91.229.137.0/24
allow from 91.229.138.0/23
allow from 91.230.4.0/23
allow from 92.242.160.0/19
allow from 93.90.48.0/20
allow from 93.91.176.0/20
allow from 93.106.0.0/16
allow from 93.174.192.0/21
allow from 93.183.0.0/18
allow from 93.190.32.0/21
allow from 93.190.96.0/21
allow from 93.191.120.0/21
allow from 94.22.0.0/16
allow from 94.101.0.0/20
allow from 94.126.160.0/21
allow from 94.199.56.0/21
allow from 94.199.112.0/21
allow from 94.237.0.0/17
allow from 95.130.24.0/21
allow from 95.175.96.0/19
allow from 109.68.128.0/21
allow from 109.68.248.0/21
allow from 109.69.32.0/21
allow from 109.69.120.0/21
allow from 109.70.160.0/21
allow from 109.70.176.0/21
allow from 109.75.224.0/20
allow from 109.108.0.0/19
allow from 109.204.128.0/17
allow from 109.205.96.0/21
allow from 109.232.80.0/21
allow from 109.234.240.0/21
allow from 109.240.0.0/16
allow from 131.228.0.0/16
allow from 145.247.0.0/16
allow from 146.66.24.0/21
allow from 147.243.0.0/16
allow from 149.126.176.0/21
allow from 149.154.120.0/21
allow from 151.105.0.0/16
allow from 176.72.0.0/16
allow from 178.16.176.0/20
allow from 178.21.192.0/21
allow from 178.55.0.0/16
allow from 178.75.128.0/18
allow from 178.213.232.0/21
allow from 178.217.128.0/21
allow from 178.239.192.0/20
allow from 178.251.56.0/21
allow from 178.251.144.0/21
allow from 178.251.152.0/21
allow from 188.64.0.0/21
allow from 188.65.136.0/21
allow from 188.67.0.0/16
allow from 188.94.64.0/21
allow from 188.117.0.0/18
allow from 188.123.0.0/19
allow from 188.127.192.0/19
allow from 188.238.0.0/16
allow from 192.89.0.0/16
allow from 192.100.102.0/19
allow from 192.130.0.0/16
allow from 192.194.0.0/16
allow from 193.17.231.0/24
allow from 193.19.136.0/22
allow from 193.22.86.0/24
allow from 193.28.203.0/24
allow from 193.34.40.0/22
allow from 193.64.0.0/15
allow from 193.66.0.0/16
allow from 193.93.132.0/22
allow from 193.93.136.0/22
allow from 193.94.0.0/16
allow from 193.104.38.0/24
allow from 193.104.188.0/24
allow from 193.105.76.0/24
allow from 193.105.97.0/24
allow from 193.105.123.0/24
allow from 193.105.160.0/24
allow from 193.106.8.0/22
allow from 193.110.108.0/23
allow from 193.110.224.0/22
allow from 193.111.45.0/24
allow from 193.111.93.0/24
allow from 193.111.118.0/23
allow from 193.138.126.0/24
allow from 193.138.200.0/22
allow from 193.142.1.0/24
allow from 193.142.2.0/24
allow from 193.142.3.0/24
allow from 193.142.4.0/24
allow from 193.142.5.0/24
allow from 193.142.6.0/24
allow from 193.142.7.0/24
allow from 193.142.8.0/21
allow from 193.142.16.0/23
allow from 193.142.18.0/24
allow from 193.142.20.0/24
allow from 193.142.21.0/23
allow from 193.142.23.0/24
allow from 193.142.24.0/23
allow from 193.142.26.0/24
allow from 193.142.27.0/24
allow from 193.142.28.0/24
allow from 193.142.29.0/24
allow from 193.142.32.0/21
allow from 193.142.40.0/22
allow from 193.142.44.0/23
allow from 193.142.46.0/24
allow from 193.142.47.0/23
allow from 193.142.49.0/24
allow from 193.142.50.0/24
allow from 193.142.51.0/24
allow from 193.142.52.0/24
allow from 193.142.54.0/24
allow from 193.142.55.0/24
allow from 193.142.58.0/24
allow from 193.142.59.0/24
allow from 193.142.60.0/24
allow from 193.142.63.0/24
allow from 193.142.64.0/19
allow from 193.142.96.0/24
allow from 193.142.98.0/24
allow from 193.142.99.0/24
allow from 193.142.101.0/24
allow from 193.142.102.0/24
allow from 193.142.104.0/22
allow from 193.142.120.0/24
allow from 193.142.121.0/24
allow from 193.142.122.0/24
allow from 193.142.123.0/24
allow from 193.142.126.0/24
allow from 193.142.128.0/21
allow from 193.142.136.0/21
allow from 193.142.144.0/24
allow from 193.142.146.0/24
allow from 193.142.147.0/24
allow from 193.142.148.0/24
allow from 193.142.150.0/24
allow from 193.142.152.0/24
allow from 193.142.154.0/24
allow from 193.142.155.0/24
allow from 193.142.156.0/24
allow from 193.142.176.0/21
allow from 193.142.184.0/22
allow from 193.142.188.0/22
allow from 193.142.192.0/24
allow from 193.142.193.0/24
allow from 193.142.194.0/24
allow from 193.142.195.0/24
allow from 193.142.196.0/24
allow from 193.142.197.0/24
allow from 193.142.198.0/22
allow from 193.142.202.0/23
allow from 193.142.204.0/24
allow from 193.142.205.0/24
allow from 193.142.206.0/24
allow from 193.142.207.0/24
allow from 193.142.224.0/21
allow from 193.142.232.0/24
allow from 193.142.233.0/24
allow from 193.142.234.0/24
allow from 193.142.235.0/22
allow from 193.142.239.0/24
allow from 193.142.240.0/24
allow from 193.142.241.0/24
allow from 193.142.242.0/24
allow from 193.142.247.0/24
allow from 193.142.248.0/23
allow from 193.142.250.0/24
allow from 193.142.251.0/23
allow from 193.142.253.0/23
allow from 193.142.255.0/24
allow from 193.143.1.0/23
allow from 193.143.3.0/24
allow from 193.143.4.0/23
allow from 193.143.6.0/24
allow from 193.143.7.0/24
allow from 193.143.8.0/21
allow from 193.143.16.0/24
allow from 193.143.17.0/24
allow from 193.143.18.0/24
allow from 193.143.19.0/24
allow from 193.143.20.0/24
allow from 193.143.21.0/24
allow from 193.143.22.0/23
allow from 193.143.24.0/21
allow from 193.143.32.0/19
allow from 193.143.64.0/24
allow from 193.143.65.0/24
allow from 193.143.66.0/24
allow from 193.143.67.0/24
allow from 193.143.68.0/24
allow from 193.143.69.0/24
allow from 193.143.70.0/23
allow from 193.143.72.0/24
allow from 193.143.73.0/24
allow from 193.143.74.0/24
allow from 193.143.75.0/24
allow from 193.143.76.0/24
allow from 193.143.78.0/24
allow from 193.143.79.0/24
allow from 193.143.80.0/24
allow from 193.143.81.0/23
allow from 193.143.83.0/23
allow from 193.143.85.0/24
allow from 193.143.86.0/24
allow from 193.143.87.0/24
allow from 193.143.88.0/24
allow from 193.143.89.0/24
allow from 193.143.90.0/24
allow from 193.143.91.0/24
allow from 193.143.92.0/24
allow from 193.143.93.0/24
allow from 193.143.94.0/24
allow from 193.143.95.0/24
allow from 193.143.96.0/24
allow from 193.143.97.0/24
allow from 193.143.99.0/20
allow from 193.143.115.0/22
allow from 193.143.123.0/24
allow from 193.143.124.0/24
allow from 193.143.125.0/24
allow from 193.143.126.0/24
allow from 193.143.127.0/24
allow from 193.143.128.0/21
allow from 193.143.136.0/22
allow from 193.143.140.0/23
allow from 193.143.160.0/24
allow from 193.143.161.0/20
allow from 193.143.177.0/21
allow from 193.143.185.0/22
allow from 193.143.189.0/23
allow from 193.143.191.0/24
allow from 193.143.192.0/19
allow from 193.143.224.0/24
allow from 193.143.225.0/24
allow from 193.143.227.0/24
allow from 193.143.228.0/24
allow from 193.143.229.0/24
allow from 193.143.230.0/24
allow from 193.143.231.0/24
allow from 193.143.232.0/21
allow from 193.143.240.0/21
allow from 193.143.248.0/24
allow from 193.143.250.0/24
allow from 193.143.251.0/24
allow from 193.143.252.0/24
allow from 193.143.253.0/24
allow from 193.143.254.0/24
allow from 193.143.255.0/24
allow from 193.166.0.0/16
allow from 193.167.0.0/16
allow from 193.169.84.0/23
allow from 193.169.100.0/23
allow from 193.178.133.0/24
allow from 193.184.0.0/16
allow from 193.185.0.0/16
allow from 193.199.0.0/16
allow from 193.201.144.128/25
allow from 193.201.145.0/25
allow from 193.201.150.128/26
allow from 193.201.159.0/25
allow from 193.208.0.0/16
allow from 193.209.0.0/16
allow from 193.210.0.0/16
allow from 193.211.0.0/16
allow from 193.222.133.0/24
allow from 193.229.0.0/19
allow from 193.229.32.0/21
allow from 193.229.40.0/21
allow from 193.229.48.0/21
allow from 193.229.56.0/21
allow from 193.229.64.0/18
allow from 193.229.128.0/17
allow from 193.238.4.0/22
allow from 193.242.126.0/24
allow from 193.254.23.128/25
allow from 194.0.80.0/22
allow from 194.8.226.0/23
allow from 194.9.240.0/20
allow from 194.28.0.0/22
allow from 194.29.192.0/21
allow from 194.41.16.0/20
allow from 194.42.56.0/21
allow from 194.50.168.0/24
allow from 194.79.16.0/22
allow from 194.86.0.0/16
allow from 194.89.0.0/16
allow from 194.100.0.0/19
allow from 194.100.32.0/21
allow from 194.100.40.0/21
allow from 194.100.48.0/20
allow from 194.100.64.0/18
allow from 194.100.128.0/17
allow from 194.110.1.0/24
allow from 194.110.2.0/24
allow from 194.110.3.0/24
allow from 194.110.4.0/24
allow from 194.110.5.0/24
allow from 194.110.6.0/24
allow from 194.110.7.0/24
allow from 194.110.8.0/22
allow from 194.110.12.0/24
allow from 194.110.13.0/24
allow from 194.110.14.0/24
allow from 194.110.15.0/24
allow from 194.110.16.0/24
allow from 194.110.17.0/24
allow from 194.110.19.0/24
allow from 194.110.20.0/23
allow from 194.110.22.0/24
allow from 194.110.23.0/24
allow from 194.110.24.0/24
allow from 194.110.27.0/24
allow from 194.110.29.0/24
allow from 194.110.30.0/24
allow from 194.110.38.0/24
allow from 194.110.44.0/23
allow from 194.110.46.0/24
allow from 194.110.47.0/24
allow from 194.110.48.0/21
allow from 194.110.56.0/22
allow from 194.110.60.0/23
allow from 194.110.62.0/23
allow from 194.110.64.0/23
allow from 194.110.80.0/24
allow from 194.110.81.0/24
allow from 194.110.82.0/24
allow from 194.110.83.0/24
allow from 194.110.84.0/23
allow from 194.110.86.0/24
allow from 194.110.87.0/24
allow from 194.110.88.0/22
allow from 194.110.92.0/23
allow from 194.110.94.0/24
allow from 194.110.95.0/24
allow from 194.110.112.0/24
allow from 194.110.113.0/24
allow from 194.110.114.0/24
allow from 194.110.115.0/24
allow from 194.110.117.0/24
allow from 194.110.118.0/24
allow from 194.110.119.0/24
allow from 194.110.120.0/23
allow from 194.110.122.0/23
allow from 194.110.124.0/24
allow from 194.110.125.0/24
allow from 194.110.130.0/24
allow from 194.110.131.0/24
allow from 194.110.132.0/24
allow from 194.110.134.0/24
allow from 194.110.135.0/24
allow from 194.110.137.0/24
allow from 194.110.138.0/23
allow from 194.110.140.0/23
allow from 194.110.142.0/24
allow from 194.110.143.0/24
allow from 194.110.144.0/23
allow from 194.110.146.0/24
allow from 194.110.147.0/24
allow from 194.110.148.0/23
allow from 194.110.152.0/21
allow from 194.110.168.0/21
allow from 194.110.176.0/20
allow from 194.110.224.0/24
allow from 194.110.225.0/24
allow from 194.110.226.0/24
allow from 194.110.227.0/24
allow from 194.110.228.0/24
allow from 194.110.229.0/24
allow from 194.110.230.0/24
allow from 194.110.231.0/24
allow from 194.110.232.0/24
allow from 194.110.233.0/24
allow from 194.110.234.0/24
allow from 194.110.235.0/24
allow from 194.111.0.0/16
allow from 194.112.0.0/20
allow from 194.126.212.0/24
allow from 194.136.0.0/16
allow from 194.137.0.0/16
allow from 194.142.0.0/16
allow from 194.145.32.0/20
allow from 194.145.48.0/22
allow from 194.149.238.0/23
allow from 194.152.58.0/23
allow from 194.153.159.64/26
allow from 194.157.0.0/16
allow from 194.176.103.0/24
allow from 194.187.212.0/22
allow from 194.188.0.0/16
allow from 194.197.0.0/16
allow from 194.211.0.0/16
allow from 194.215.0.0/16
allow from 194.240.0.0/16
allow from 194.241.0.0/16
allow from 194.247.43.0/23
allow from 194.247.45.0/24
allow from 194.251.0.0/16
allow from 194.252.0.0/16
allow from 195.8.54.0/23
allow from 195.8.60.0/23
allow from 195.10.128.0/19
allow from 195.10.160.0/19
allow from 195.14.15.0/24
allow from 195.16.192.0/19
allow from 195.20.16.0/22
allow from 195.20.116.0/23
allow from 195.20.149.0/24
allow from 195.60.81.128/26
allow from 195.60.90.0/25
allow from 195.60.252.0/22
allow from 195.74.0.0/19
allow from 195.78.70.0/23
allow from 195.94.96.0/19
allow from 195.95.208.0/23
allow from 195.134.224.0/19
allow from 195.138.213.0/24
allow from 195.140.192.0/22
allow from 195.148.0.0/16
allow from 195.149.83.0/24
allow from 195.156.0.0/16
allow from 195.165.0.0/16
allow from 195.170.128.0/19
allow from 195.191.122.0/23
allow from 195.197.0.0/16
allow from 195.200.68.0/23
allow from 195.211.16.0/22
allow from 195.218.64.0/19
allow from 195.226.202.0/24
allow from 195.234.135.0/24
allow from 195.234.142.0/24
allow from 195.234.196.0/22
allow from 195.236.0.0/16
allow from 195.237.0.0/16
allow from 195.238.124.0/22
allow from 195.238.192.0/19
allow from 195.244.64.0/19
allow from 195.245.110.0/23
allow from 195.248.86.0/24
allow from 195.255.0.0/19
allow from 195.255.32.0/19
allow from 195.255.64.0/19
allow from 195.255.96.0/19
allow from 195.255.128.0/17
allow from 212.16.96.0/19
allow from 212.17.160.0/19
allow from 212.38.224.0/19
allow from 212.50.128.0/19
allow from 212.50.192.0/19
allow from 212.54.0.0/19
allow from 212.63.0.0/19
allow from 212.66.192.0/19
allow from 212.68.0.0/19
allow from 212.83.96.0/19
allow from 212.86.0.0/19
allow from 212.90.64.0/19
allow from 212.94.64.0/19
allow from 212.116.32.0/19
allow from 212.146.0.0/18
allow from 212.149.64.0/18
allow from 212.149.128.0/17
allow from 212.182.192.0/18
allow from 212.213.0.0/16
allow from 212.226.0.0/16
allow from 212.246.0.0/16
allow from 213.28.0.0/16
allow from 213.130.224.0/19
allow from 213.138.128.0/19
allow from 213.139.160.0/19
allow from 213.140.160.0/19
allow from 213.141.96.0/19
allow from 213.143.160.0/19
allow from 213.145.192.0/19
allow from 213.157.64.0/19
allow from 213.161.32.0/19
allow from 213.169.0.0/19
allow from 213.173.128.0/19
allow from 213.185.32.0/19
allow from 213.186.224.0/19
allow from 213.192.128.0/18
allow from 213.204.32.0/19
allow from 213.214.128.0/18
allow from 213.216.192.0/18
allow from 213.243.128.0/18
allow from 213.250.64.0/18
allow from 213.255.160.0/19
allow from 217.24.96.0/20
allow from 217.25.96.0/20
allow from 217.30.176.0/20
allow from 217.64.32.0/20
allow from 217.64.176.0/20
allow from 217.69.48.0/20
allow from 217.71.144.0/20
allow from 217.77.192.0/20
allow from 217.78.192.0/20
allow from 217.78.208.0/20
allow from 217.112.192.0/20
allow from 217.112.240.0/20
allow from 217.116.160.0/20
allow from 217.119.32.0/20
allow from 217.140.128.0/17
allow from 217.149.48.0/20
allow from 217.152.0.0/16
allow from 217.169.64.0/20
#
deny from all
</Limit>

#PROXY BANNIT

RewriteEngine on
RewriteBase /
RewriteCond %{HTTP_USER_AGENT} ADSARobot|ah-ha|almaden|aktuelles|Anarchie|amzn_assoc|ASPSeek|ASSORT|ATHENS|Atomz|attach|attache|autoemailspider|BackWeb|Bandit|BatchFTP|bdfetch|big.brother|BlackWidow|bmclient|Boston\ Project|BravoBrian\ SpiderEngine\ MarcoPolo|Bot\ mailto:craftbot@yahoo.com|Buddy|Bullseye|bumblebee|capture|CherryPicker|ChinaClaw|CICC|clipping|Collector|Copier|Crescent|Crescent\ Internet\ ToolPak|Custo|cyberalert|DA$|Deweb|diagem|Digger|Digimarc|DIIbot|DISCo|DISCo\ Pump|DISCoFinder|Download\ Demon|Download\ Wonder|Downloader|Drip|DSurf15a|DTS.Agent|EasyDL|eCatch|ecollector|efp@gmx\.net|Email\ Extractor|EirGrabber|email|EmailCollector|EmailSiphon|EmailWolf|Express\ WebPictures|ExtractorPro|EyeNetIE|FavOrg|fastlwspider|Favorites\ Sweeper|Fetch|FEZhead|FileHound|FlashGet\ WebWasher|FlickBot|fluffy|FrontPage|GalaxyBot|Generic|Getleft|GetRight|GetSmart|GetWeb!|GetWebPage|gigabaz|Girafabot|Go\!Zilla|Go!Zilla|Go-Ahead-Got-It|GornKer|gotit|Grabber|GrabNet|Grafula|Green\ Research|grub-client|Harvest|hhjhj@yahoo|hloader|HMView|HomePageSearch|http\ generic|HTTrack|httpdown|httrack|ia_archiver|IBM_Planetwide|Image\ Stripper|Image\ Sucker|imagefetch|IncyWincy|Indy*Library|Indy\ Library|informant|Ingelin|InterGET|Internet\ Ninja|InternetLinkagent|Internet\ Ninja|InternetSeer\.com|Iria|Irvine|JBH*agent|JetCar|JOC|JOC\ Web\ Spider|JustView|KWebGet|Lachesis|larbin|LeechFTP|LexiBot|lftp|libwww|likse|Link|Link*Sleuth|LINKS\ ARoMATIZED|LinkWalker|LWP|lwp-trivial|Mag-Net|Magnet|Mac\ Finder|Mag-Net|Mass\ Downloader|MCspider|Memo|Microsoft.URL|MIDown\ tool|Mirror|Missigua\ Locator|Mister\ PiX|MMMtoCrawl\/UrlDispatcherLLL|^Mozilla$|Mozilla.*Indy|Mozilla.*NEWT|Mozilla*MSIECrawler|MS\ FrontPage*|MSFrontPage|MSIECrawler|MSProxy|multithreaddb|nationaldirectory|Navroad|NearSite|NetAnts|NetCarta|NetMechanic|netprospector|NetResearchServer|NetSpider|Net\ Vampire|NetZIP|NetZip\ Downloader|NetZippy|NEWT|NICErsPRO|Ninja|NPBot|Octopus|Offline\ Explorer|Offline\ Navigator|OpaL|Openfind|OpenTextSiteCrawler|OrangeBot|PageGrabber|Papa\ Foto|PackRat|pavuk|pcBrowser|PersonaPilot|Ping|PingALink|Pockey|Proxy|psbot|PSurf|puf|Pump|PushSite|QRVA|RealDownload|Reaper|Recorder|ReGet|replacer|RepoMonkey|Robozilla|Rover|RPT-HTTPClient|Rsync|Scooter|SearchExpress|searchhippo|searchterms\.it|Second\ Street\ Research|Seeker|Shai|Siphon|sitecheck|sitecheck.internetseer.com|SiteSnagger|SlySearch|SmartDownload|snagger|Snake|SpaceBison|Spegla|SpiderBot|sproose|SqWorm|Stripper|Sucker|SuperBot|SuperHTTP|Surfbot|SurfWalker|Szukacz|tAkeOut|tarspider|Teleport\ Pro|Templeton|TrueRobot|TV33_Mercator|UIowaCrawler|UtilMind|URLSpiderPro|URL_Spider_Pro|Vacuum|vagabondo|vayala|visibilitygap|VoidEYE|vspider|Web\ Downloader|w3mir|Web\ Data\ Extractor|Web\ Image\ Collector|Web\ Sucker|Wweb|WebAuto|WebBandit|web\.by\.mail|Webclipping|webcollage|webcollector|WebCopier|webcraft@bea|webdevil|webdownloader|Webdup|WebEMailExtrac|WebFetch|WebGo\ IS|WebHook|Webinator|WebLeacher|WEBMASTERS|WebMiner|WebMirror|webmole|WebReaper|WebSauger|Website|Website\ eXtractor|Website\ Quester|WebSnake|Webster|WebStripper|websucker|webvac|webwalk|webweasel|WebWhacker|WebZIP|Wget|Whacker|whizbang|WhosTalking|Widow|WISEbot|WWWOFFLE|x-Tractor|^Xaldon\ WebSpider|WUMPUS|Xenu|XGET|Zeus.*Webster|Zeus [NC]
RewriteRule ^.* - [F,L]

RewriteEngine on 
RewriteCond %{HTTP:VIA}                 !^$ [OR] 
RewriteCond %{HTTP:FORWARDED}           !^$ [OR] 
RewriteCond %{HTTP:USERAGENT_VIA}       !^$ [OR] 
RewriteCond %{HTTP:XROXY_CONNECTION}    !^$ [OR] 
RewriteCond %{HTTP:X-FORWARDED-FOR}     !^$ [OR] 
RewriteCond %{HTTP:FORWARDED-FOR}       !^$ [OR] 
RewriteCond %{HTTP:X-FORWARDED}         !^$ [OR] 
RewriteCond %{HTTP:X_FORWARDED_FOR}     !^$ [OR] 
RewriteCond %{HTTP:PROXY_CONNECTION}    !^$ [OR] 
RewriteCond %{HTTP:XPROXY_CONNECTION}   !^$ [OR] 
RewriteCond %{HTTP:HTTP_PC_REMOTE_ADDR} !^$ [OR] 
RewriteCond %{HTTP:HTTP_CLIENT_IP}      !^$ 
RewriteRule ^(.*)$ - [F]


#MUUT BANNIT

#HUOM!! NÄITÄ EN PYSTY ENÄÄN BANNAAMAAN:
deny from *trollin ip*
deny from *trollin ip*
deny from *trollin ip*

#BANNIT#####################################################################################################################

# Index-sivu:

DirectoryIndex index.php


# Aika-asetus:

php_value date.timezone "Europe/Helsinki"


# Virhesivut:

ErrorDocument 403 /error/403.html
ErrorDocument 404 /error/404.html
ErrorDocument 500 /error/500.html
Jos joku jaksaa autella, niin siitä kiitos :D[/edit]

Re: Offtopic (I/2011)

Posted: Sun Sep 11, 2011 6:04 pm
by temu92
CAPTCHA-koodin pakottaminen saa floodaajan varmaan kyllästymään koodin syöttämiseen joka kerta vaikka käyttäis eri proxyjakin. Muutenkin se estää ainakin muutamia spämmibotteja sivulta. Lisäks voit vaikka rajoittaa postausmäärää per IP per tunti (joka ei tosin toimi jos/kun eri proxyja käytetään).

Jos palvelimella toimii MySQL niin kannattaa sitä käyttää, sitä on paljon helpompi moderoida ja poistaa viestejä käyttäen esim. PHPMyAdminia.

Re: Offtopic (I/2011)

Posted: Sun Sep 11, 2011 6:32 pm
by Peltsi
temu92 wrote:CAPTCHA-koodin pakottaminen saa floodaajan varmaan kyllästymään koodin syöttämiseen joka kerta vaikka käyttäis eri proxyjakin. Muutenkin se estää ainakin muutamia spämmibotteja sivulta. Lisäks voit vaikka rajoittaa postausmäärää per IP per tunti (joka ei tosin toimi jos/kun eri proxyja käytetään).

Jos palvelimella toimii MySQL niin kannattaa sitä käyttää, sitä on paljon helpompi moderoida ja poistaa viestejä käyttäen esim. PHPMyAdminia.
Eli ei ole mahdollista bannata kaikkia maita paitsi Suomea ja bannata suomesta vielä tiettyjä IP:itä? :(
Ja tuosta CAPTCHA:sta; sivuilla on viestiä lähetettäessä kirjoitettava varmistusteksti (samaan tapaan kuin kirjoittaisit tänne vieraana), mutta olisi varmaan hyvä idea vaihtaa se CAPTCHA:niin.

PS. Sivuilla toimii kyllä MySQL, mutta kestää varmaan jonkinaikaa kunnes opin käyttämään... Alussa oli yksinkertaisinta tallentaa viestit .txt filuun

PPS. Olisikohan sellainen kannattavaa, että jos ei samaan .htaccess filuun voi laittaa maiden bannausta ja yksilön IP bannausta, niin laittaa sivut seuraavaan kansioon johon tulee toinen .htaccess filu (en tiedä tomiiko yhtään):

public_html (ensimmäinen htaccess, blokkaa proxyt) / sivut (toinen htaccess, blokkaa bannityt) / index.php
eli etusivun osoitteeksi tulisi peltsinsoftat.hostoi.com/sivut/index.php

Toivottavasti tuosta sain jotain selvää :D :D

Re: Offtopic (I/2011)

Posted: Sun Sep 11, 2011 7:24 pm
by temu92
Kyllähän IP-bannaus maan perusteellakin onnistuu mutta omasta mielestäni ei ole kovin paljon hyötyä käyttää isoa määrä vaivaa sen toteuttamiseen (ellei jostain löydy valmiita listoja, kuten olet tainnut jo löytää) kun erilaisilla keinoilla voi silti päästä samaan tulokseen (eli floodauksen/spämmäyksen estoon tai vähentämiseen). Bannauksen kyllä pystyy tekemään myös käyttäen ihan PHP:ta eikä tarvitse luottaa .htaccess-tiedostoihin ja sitäpaitsi mikä estää estämästä samassa .htaccessissa tiettyjä IP:tä, pistät vaan listan perään tarkemman IP:n eston.

Edits: ohjelmointiputkasta löytyy hyvä MySQL-opas joka on tullut jonkun aikaa sitten tuonne tai sitten vanhempi opas jonka avulla itse opin alunperin. Uudemmassa opetetaan kyllä käyttämään PDO:ta (php-kirjasto MySQL:n käyttämiseen), jonka avulla saat helpommin tietoturvan kuntoon tietokantaa käyttäessä.

Re: Offtopic (I/2011)

Posted: Sun Sep 11, 2011 8:27 pm
by Peltsi
temu92 wrote:Kyllähän IP-bannaus maan perusteellakin onnistuu mutta omasta mielestäni ei ole kovin paljon hyötyä käyttää isoa määrä vaivaa sen toteuttamiseen (ellei jostain löydy valmiita listoja, kuten olet tainnut jo löytää) kun erilaisilla keinoilla voi silti päästä samaan tulokseen (eli floodauksen/spämmäyksen estoon tai vähentämiseen). Bannauksen kyllä pystyy tekemään myös käyttäen ihan PHP:ta eikä tarvitse luottaa .htaccess-tiedostoihin ja sitäpaitsi mikä estää estämästä samassa .htaccessissa tiettyjä IP:tä, pistät vaan listan perään tarkemman IP:n eston.
Nonii, nyt homma pelittää! :D
Bannasin ulkomaat htaccess:illa, ja trollit php:llä. Kiitoksia avusta, temu! :D :D
EDIT:

Juu, pitääpä alkaa kattelemaan tuota MySQL:ää joku päivä :)


Re: Offtopic (I/2011)

Posted: Tue Sep 13, 2011 11:58 pm
by MaGetzUb
Miksi ei CoolBasic:n Data:n käsittely komennot toimi? Siis Data, Restore ja Read?

Re: Offtopic (I/2011)

Posted: Wed Sep 14, 2011 1:01 am
by temu92
Ei moni muukaan asia toimi ihan välttämättä niinkuin pitäisi/tarkoitettu (funktioraja, oudot mavit jotka johtuu ei mistään), varsinkin kun tosiasiahan on, että se on edelleen beta 10.43, siis keskeneräinen versio.

Re: Offtopic (I/2011)

Posted: Wed Sep 14, 2011 1:47 pm
by MaGetzUb
temu92 wrote:Ei moni muukaan asia toimi ihan välttämättä niinkuin pitäisi/tarkoitettu (funktioraja, oudot mavit jotka johtuu ei mistään), varsinkin kun tosiasiahan on, että se on edelleen beta 10.43, siis keskeneräinen versio.
Tiedän, mutta aijemmassa CoolBasic:sa toimi data aikoinaan kunnolla..

Re: Offtopic (I/2011)

Posted: Wed Sep 14, 2011 2:53 pm
by temu92
Mjaa no siitä en tiedä, ei se nyt niin hyödyllinen komento koskaan ole ollut etteikö sitä pysty korvaamaan esim. taulukoilla jotka muutenkin ovat selkeämpiä kuin data.

Re: Offtopic (I/2011)

Posted: Sat Sep 17, 2011 12:26 am
by axu
Steamissa saa Portalin nyt ilmaiseksi vielä muutaman päivän ajan! Tulipa napattua se sieltä, kun en ole ennen pelannut (vaikka on ollut tarkoitus)... Lyhykäisyydessään aika mahtava peli. Pulmat eivät olleet liian haastavia, mutta kamera ei aina tiedä miten päin pyöriä, kun portaalit eivät ole seinällä (tai kyllä kamera pyörähtää aina oikeinpäin, mutta siinä välissä on aika sekavaa, mitenpäin ollaan). Pitänee kattoa, jos sen tokan osan ostais joskus ;)

Re: Offtopic (I/2011)

Posted: Sat Sep 17, 2011 12:55 am
by Ruuttu
Kakkonen on pidempi, hauskempi ja viimeistellympi pelikokemus alusta loppuun, ja suosittelen sitä varsinkin jos pidit ykkösestä. Se on vaan niin hyvääää...!

Re: Offtopic (I/2011)

Posted: Tue Sep 20, 2011 5:15 pm
by wilizucoder

Re: Offtopic (I/2011)

Posted: Tue Sep 20, 2011 6:00 pm
by axu
Tuosta Portalista vielä sen verran, että mitenköhän mahtaa minun koneellani pyöriä Portal 2? Ykköstä ei koneeni jaksanut pyörittää siedettävällä nopeudella natiiviresolla... vaikka ei se näyttänyt graafisesti vaativalta peliltä. Ei minun koneeni niin huono pitäisi olla, esim. Trackmania forever toimii mainiosti lähes parhaimmilla asetuksilla. Kannattaako siis ostaa ennen kuin on uusi kone kasassa?
Näytönohjain on GeForce 7600 GT ja prossu on joku Intel Core 2 sarjaa... (onkohan Duo kun kaksytiminen ainakin) @ 2.4 GHz

Re: Offtopic (I/2011)

Posted: Tue Sep 20, 2011 7:09 pm
by CCE
Prosessorin puolesta peli pitäisi kyllä toimia, mutta näytönohjaimen joudut kyllä valitettavasti päivittämään mikäli haluat peliä pelata kaikilla herkuilla. Itse kokeilin pelata hieman tuota kuvailemaasi konetta heikommalla kokoonpanolla (Pentium 4, GeForce 7600GT), ja FPS oli kieltämättä varsin epätasainen mikä selvästi haittasi pelinautintoa.

Re: Offtopic (I/2011)

Posted: Tue Sep 20, 2011 9:56 pm
by KillBurn
Hommasin Steamin tarjouksesta MTG duels of the planeswalkers 2012 pelin ja mukana tuli koodi, jolla saa ilmaisen 30 kortin magic pakan ja frost Titan kortin. Ostin siinä samalla yhden boosterin ja siinähän oli Ulamog, the infinite gyre tosi harvinainen kortti, joka maksaa yksittäisenä 14 €. Noh eiköhän samassa boosterissa ole toinenkin Eldrazi nimittäin Ulamog's Crusher. Ei harvinainen mutta kova kortti, jos peliin saa.

Muutkaan kortit ei ollut huonoja. mukana oli mm. Null Champion, Gravity Well sekä Dreamstone Hedron. Paras boosterini, tähän asti.

Re: Offtopic (I/2011)

Posted: Wed Sep 21, 2011 12:49 am
by mikeful
Lisääppä "mikeful" Steamiin, jos ei ole jo. Itselläkin on tuo ja pitäisi alkaa pelailemaan kunhan saan Deus Ex: Human Revolutionin pois alta. Löytyy kortteja myös IRL jonkin verran.

Re: Offtopic (I/2011)

Posted: Wed Sep 21, 2011 7:59 am
by axu
CCE wrote:Prosessorin puolesta peli pitäisi kyllä toimia, mutta näytönohjaimen joudut kyllä valitettavasti päivittämään mikäli haluat peliä pelata kaikilla herkuilla. Itse kokeilin pelata hieman tuota kuvailemaasi konetta heikommalla kokoonpanolla (Pentium 4, GeForce 7600GT), ja FPS oli kieltämättä varsin epätasainen mikä selvästi haittasi pelinautintoa.
No se saa sitten odottaa... Kyllä tässä alkutalvesta olis tarkotus konetta päivittää/vaihtaa uuteen :)