FAQ |
Kalender |
![]() |
#1 | ||
|
|||
Nykomling
|
Är det någon som skulle kunna hjölpa mig med något sätt att banna IPn?
Till personer som busar lite för mycket på sidan...? Tack isåfall!... |
||
![]() |
![]() |
![]() |
#2 | |||
|
||||
Mycket flitig postare
|
Oj det har jag kunnat. Hittar dock inga sparade dokument om det här.
Sök lite på htaccess så hittar du nog ett par strängar. |
|||
![]() |
![]() |
![]() |
#3 | |||
|
||||
Mycket flitig postare
|
Att använda .htaccess funkar bara om du kör en Apache webbserver.
Följande är hämtat direkt ur Apaches användarmanual: Access control Authentication by username and password is only part of the story. Frequently you want to let people in based on something other than who they are. Something such as where they are coming from. Restricting access based on something other than the identity of the user is generally referred to as Access Control. Allow and Deny The Allow and Deny directives let you allow and deny access based on the host name, or host address, of the machine requesting a document. The directive goes hand-in-hand with these is the Order directive, which tells Apache in which order to apply the filters. The usage of these directives is: allow from address where address is an IP address (or a partial IP address) or a fully qualified domain name (or a partial domain name); you may provide multiple addresses or domain names, if desired. For example, if you have someone spamming your message board, and you want to keep them out, you could do the following: deny from 205.252.46.165 Visitors coming from that address will not be able to see the content behind this directive. If, instead, you have a machine name, rather than an IP address, you can use that. deny from dc.numbersusa.com And, if you'd like to block access from an entire domain, you can specify just part of an address or domain name: deny from 192.101.205 deny from cyberthugs.com moreidiots.com deny from ke Using Order will let you be sure that you are actually restricting things to the group that you want to let in, by combining a deny and an allow directive: Order Deny,Allow Deny from all Allow from hostname.example.com Listing just the allow directive would not do what you want, because it will let users from that host in, in addition to letting everyone in. What you want is to let in only users from that host. |
|||
![]() |
![]() |
![]() |
#4 | ||
|
|||
Administratör
|
För att förenkla lite; placera följande rader i en fil med namn .htaccess i katalogen de inte ska komma åt (såvida det dokumentnamnet inte är ändrat i httpd.conf, vilket är sällsynt):
Order Allow,Deny Allow from all deny from xxx.xxx.xxx.xxx Ersätt bara xxx.xxx.xxx.xxx med adressen du vill blockera.
__________________
eldefors.com - Personlig (teknik)-blogg |
||
![]() |
![]() |
![]() |
#5 | ||
|
|||
Hej, jag är ny här.
|
Jag tror att jag hade skrivit ihop ett litet PHP script som kollar IP:t med $REMOTE_ADDR och jämför det med det ip som ska bannas i en vanlig if sats...
Då kan man även skriva ut ett elakt meddelande till den bannade... //Emilio |
||
![]() |
![]() |
![]() |
#6 | |||
|
||||
Mycket flitig postare
|
Problemet med proxys återstår dock. Någon som har en bra lösning, har nämligen haft problem med puckon som verkar ha en enorm lista med proxyservrar.
|
|||
![]() |
![]() |
![]() |
#7 | ||
|
|||
Administratör
|
En lösning är att använda dig av cookies. Om inte det hindrar dem är det inte så mycket att göra
![]() Förutom IP så kan du ju även få fram browser-version, upplösning m.m.. på så sätt så slipper du banna hela proxyservrar utan bara om han är från det ipt, har den browsern, den upplösning m.m ![]() Inga problem att ta sig igenom men en lösning om du inte vill banna hela proxyservrar...
__________________
www.hus.se - www.hantverkare.se - www.qualityunlimited.com - www.test.se - www.kampanj.se |
||
![]() |
![]() |
Svara |
|
|