.Htaccess Tam Koruma Çeşitleri


Html-Php ve Diğer Kodlama Dilleri   

Yazar: İncore    2 Yorum    162 Görüntüleme
  • Derecelendirme: 0/5 - 0 oy

Paylaşım Tarihi: 16.05.2016, 14:31:07 #1
İncore Delikanlı
Onaylı Uye
Status: Çevrimdışı Yorumları:74 Konuları:13 Kayıt Tarihi:29.06.2015 Rep Puanı: 3

.htaccess ile ip adresine erişimi yasaklamak:
Evet sevgili Tatlı Memoryhackers Üyeleri Aşağıdaki kod ile istediğiniz ip adreslerine erişimi yasaklayabilirsiniz.



Kod:
1
2
3
4
5
6
7
8
9
10
[align=center]1.[/align]
[align=center]<Limit GET POST>[/align]
[align=center]2.[/align]
[align=center]order allow,deny[/align]
[align=center]3.[/align]
[align=center]deny from 000.000.00[/align]
[align=center]4.[/align]
[align=center]allow from all[/align]
[align=center]5.[/align]
[align=center]</Limit>[/align]



yukardaki örnektir , siz 000′lı yere istediğiniz ip’yi yazabilir , altına bir satır daha ekleyip başka bir ip adresinide banlayabilirsiniz.


.htaccess ile site engellemek:
Aşağıdaki kod ile istemediğiniz, kötü amaçlı siteleri engelleyebilirsiniz.



Kod:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
[align=center]1.[/align]
[align=center]RewriteEngine on[/align]
[align=center]2.[/align]
[align=center]# Options +FollowSymlinks[/align]
[align=center]3.[/align]
[align=center][/align]
[align=center][/align]
[align=center][/align]
[align=center][/align]
[align=center]4.[/align]
[align=center]RewriteCond %{HTTP_REFERER} siteismi\.com [NC,OR][/align]
[align=center]5.[/align]
[align=center]RewriteCond %{HTTP_REFERER} siteismi\.net [NC,OR][/align]
[align=center]6.[/align]
[align=center]RewriteCond %{HTTP_REFERER} siteismi\.org [NC][/align]
[align=center]7.[/align]
[align=center]RewriteRule .* - [F][/align]


Fakat burda satırlar RewriteCond %{HTTP_REFERER} siteismi\.com [NC,OR] şeklindedir ve en son site adresi satırı RewriteCond %{HTTP_REFERER} siteismi\.org [NC] olarak belirtilir. Site isminin sonunda .com .net artık ne varsa o uzantıdan önce slash(\) işareti koyulmak zorundadır ..

.htaccess ile sitenizdeki resimlerin vb. başka sitelerde kullanılmasını engellemek:
İşte .htaccess dosyalarının en sevdiğim özelliği bu. Sitenizde istediğiniz dosyaların başka sitelerde kullanılmasını engelleyebilirsiniz.



Kod:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
[align=center]1.[/align]
[align=center]<IfModule mod_rewrite.c>[/align]
[align=center]2.[/align]
[align=center]RewriteEngine on[/align]
[align=center]3.[/align]
[align=center]RewriteCond %{HTTP_REFERER} !^$[/align]
[align=center]4.[/align]
[align=center]RewriteCond %{HTTP_REFERER} !^http://([-a-z0-9]+\.)?siteniz\.com[NC][/align]
[align=center]5.[/align]
[align=center]RewriteRule .*\.(zip|rar)$ http://www.siteniz.com/engelresmi.gif [R,NC,L][/align]
[align=center]6.[/align]
[align=center]</ifModule>[/align]
[align=center]Siteniz.com lu yerleri kendinize göre düzeltiniz. engellenecek uzantılarıda zip|rar ‘lı olan yerden çoğaltabilirsiniz..[/align]
[align=center]vee son , kötü botlara karşı koymak[/align]
[align=center]Aşağıdaki kodlar ile sitenizden veri çeken, spam yorum atan, toplist olarak kullanan bazı botları engelleyebilirsiniz.[/align]
[align=center]kaynağı gösteryazdır?[/align]
[align=center]01.[/align]
[align=center]<IfModule mod_rewrite.c>[/align]
[align=center]02.[/align]
[align=center]RewriteEngine On[/align]
[align=center]03.[/align]
[align=center]RewriteCond %{HTTP_USER_AGENT} ^BlackWidow [OR][/align]
[align=center]04.[/align]
[align=center]RewriteCond %{HTTP_USER_AGENT} ^Bot\ mailto:craftbot@yahoo.com [OR][/align]
[align=center]05.[/align]
[align=center]RewriteCond %{HTTP_USER_AGENT} ^ChinaClaw [OR][/align]
[align=center]06.[/align]
[align=center]RewriteCond %{HTTP_USER_AGENT} ^Custo [OR][/align]
[align=center]07.[/align]
[align=center]RewriteCond %{HTTP_USER_AGENT} ^DISCo [OR][/align]
[align=center]08.[/align]
[align=center]RewriteCond %{HTTP_USER_AGENT} ^Download\ Demon [OR][/align]
[align=center]09.[/align]
[align=center]RewriteCond %{HTTP_USER_AGENT} ^eCatch [OR][/align]
[align=center]10.[/align]
[align=center]RewriteCond %{HTTP_USER_AGENT} ^EirGrabber [OR][/align]
[align=center]11.[/align]
[align=center]RewriteCond %{HTTP_USER_AGENT} ^EmailSiphon [OR][/align]
[align=center]12.[/align]
[align=center]RewriteCond %{HTTP_USER_AGENT} ^EmailWolf [OR][/align]
[align=center]13.[/align]
[align=center]RewriteCond %{HTTP_USER_AGENT} ^Express\ WebPictures [OR][/align]
[align=center]14.[/align]
[align=center]RewriteCond %{HTTP_USER_AGENT} ^ExtractorPro [OR][/align]
[align=center]15.[/align]
[align=center]RewriteCond %{HTTP_USER_AGENT} ^EyeNetIE [OR][/align]
[align=center]16.[/align]
[align=center]RewriteCond %{HTTP_USER_AGENT} ^FlashGet [OR][/align]
[align=center]17.[/align]
[align=center]RewriteCond %{HTTP_USER_AGENT} ^GetRight [OR][/align]
[align=center]18.[/align]
[align=center]RewriteCond %{HTTP_USER_AGENT} ^GetWeb! [OR][/align]
[align=center]19.[/align]
[align=center]RewriteCond %{HTTP_USER_AGENT} ^Go!Zilla [OR][/align]
[align=center]20.[/align]
[align=center]RewriteCond %{HTTP_USER_AGENT} ^Go-Ahead-Got-It [OR][/align]
[align=center]21.[/align]
[align=center]RewriteCond %{HTTP_USER_AGENT} ^GrabNet [OR][/align]
[align=center]22.[/align]
[align=center]RewriteCond %{HTTP_USER_AGENT} ^Grafula [OR][/align]
[align=center]23.[/align]
[align=center]RewriteCond %{HTTP_USER_AGENT} ^HMView [OR][/align]
[align=center]24.[/align]
[align=center]RewriteCond %{HTTP_USER_AGENT} HTTrack [NC,OR][/align]
[align=center]25.[/align]
[align=center]RewriteCond %{HTTP_USER_AGENT} ^Image\ Stripper [OR][/align]
[align=center]26.[/align]
[align=center]RewriteCond %{HTTP_USER_AGENT} ^Image\ Sucker [OR][/align]
[align=center]27.[/align]
[align=center]RewriteCond %{HTTP_USER_AGENT} Indy\ Library [NC,OR][/align]
[align=center]28.[/align]
[align=center]RewriteCond %{HTTP_USER_AGENT} ^InterGET [OR][/align]
[align=center]29.[/align]
[align=center]RewriteCond %{HTTP_USER_AGENT} ^Internet\ Ninja [OR][/align]
[align=center]30.[/align]
[align=center]RewriteCond %{HTTP_USER_AGENT} ^JetCar [OR][/align]
[align=center]31.[/align]
[align=center]RewriteCond %{HTTP_USER_AGENT} ^JOC\ Web\ Spider [OR][/align]
[align=center]32.[/align]
[align=center]RewriteCond %{HTTP_USER_AGENT} ^larbin [OR][/align]
[align=center]33.[/align]
[align=center]RewriteCond %{HTTP_USER_AGENT} ^LeechFTP [OR][/align]
[align=center]34.[/align]
[align=center]RewriteCond %{HTTP_USER_AGENT} ^Mass\ Downloader [OR][/align]
[align=center]35.[/align]
[align=center]RewriteCond %{HTTP_USER_AGENT} ^MIDown\ tool [OR][/align]
[align=center]36.[/align]
[align=center]RewriteCond %{HTTP_USER_AGENT} ^Mister\ PiX [OR][/align]
[align=center]37.[/align]
[align=center]RewriteCond %{HTTP_USER_AGENT} ^Navroad [OR][/align]
[align=center]38.[/align]
[align=center]RewriteCond %{HTTP_USER_AGENT} ^NearSite [OR][/align]
[align=center]39.[/align]
[align=center]RewriteCond %{HTTP_USER_AGENT} ^NetAnts [OR][/align]
[align=center]40.[/align]
[align=center]RewriteCond %{HTTP_USER_AGENT} ^NetSpider [OR][/align]
[align=center]41.[/align]
[align=center]RewriteCond %{HTTP_USER_AGENT} ^Net\ Vampire [OR][/align]
[align=center]42.[/align]
[align=center]RewriteCond %{HTTP_USER_AGENT} ^NetZIP [OR][/align]
[align=center]43.[/align]
[align=center]RewriteCond %{HTTP_USER_AGENT} ^Octopus [OR][/align]
[align=center]44.[/align]
[align=center]RewriteCond %{HTTP_USER_AGENT} ^Offline\ Explorer [OR][/align]
[align=center]45.[/align]
[align=center]RewriteCond %{HTTP_USER_AGENT} ^Offline\ Navigator [OR][/align]
[align=center]46.[/align]
[align=center]RewriteCond %{HTTP_USER_AGENT} ^PageGrabber [OR][/align]
[align=center]47.[/align]
[align=center]RewriteCond %{HTTP_USER_AGENT} ^Papa\ Foto [OR][/align]
[align=center]48.[/align]
[align=center]RewriteCond %{HTTP_USER_AGENT} ^pavuk [OR][/align]
[align=center]49.[/align]
[align=center]RewriteCond %{HTTP_USER_AGENT} ^pcBrowser [OR][/align]
[align=center]50.[/align]
[align=center]RewriteCond %{HTTP_USER_AGENT} ^RealDownload [OR][/align]
[align=center]51.[/align]
[align=center]RewriteCond %{HTTP_USER_AGENT} ^ReGet [OR][/align]
[align=center]52.[/align]
[align=center]RewriteCond %{HTTP_USER_AGENT} ^SiteSnagger [OR][/align]
[align=center]53.[/align]
[align=center]RewriteCond %{HTTP_USER_AGENT} ^SmartDownload [OR][/align]
[align=center]54.[/align]
[align=center]RewriteCond %{HTTP_USER_AGENT} ^SuperBot [OR][/align]
[align=center]55.[/align]
[align=center]RewriteCond %{HTTP_USER_AGENT} ^SuperHTTP [OR][/align]
[align=center]56.[/align]
[align=center]RewriteCond %{HTTP_USER_AGENT} ^Surfbot [OR][/align]
[align=center]57.[/align]
[align=center]RewriteCond %{HTTP_USER_AGENT} ^tAkeOut [OR][/align]
[align=center]58.[/align]
[align=center]RewriteCond %{HTTP_USER_AGENT} ^Teleport\ Pro [OR][/align]
[align=center]59.[/align]
[align=center]RewriteCond %{HTTP_USER_AGENT} ^VoidEYE [OR][/align]
[align=center]60.[/align]
[align=center]RewriteCond %{HTTP_USER_AGENT} ^Web\ Image\ Collector [OR][/align]
[align=center]61.[/align]
[align=center]RewriteCond %{HTTP_USER_AGENT} ^Web\ Sucker [OR][/align]
[align=center]62.[/align]
[align=center]RewriteCond %{HTTP_USER_AGENT} ^WebAuto [OR][/align]
[align=center]63.[/align]
[align=center]RewriteCond %{HTTP_USER_AGENT} ^WebCopier [OR][/align]
[align=center]64.[/align]
[align=center]RewriteCond %{HTTP_USER_AGENT} ^WebFetch [OR][/align]
[align=center]65.[/align]
[align=center]RewriteCond %{HTTP_USER_AGENT} ^WebGo\ IS [OR][/align]
[align=center]66.[/align]
[align=center]RewriteCond %{HTTP_USER_AGENT} ^WebLeacher [OR][/align]
[align=center]67.[/align]
[align=center]RewriteCond %{HTTP_USER_AGENT} ^WebReaper [OR][/align]
[align=center]68.[/align]
[align=center]RewriteCond %{HTTP_USER_AGENT} ^WebSauger [OR][/align]
[align=center]69.[/align]
[align=center]RewriteCond %{HTTP_USER_AGENT} ^Website\ eXtractor [OR][/align]
[align=center]70.[/align]
[align=center]RewriteCond %{HTTP_USER_AGENT} ^Website\ Quester [OR][/align]
[align=center]71.[/align]
[align=center]RewriteCond %{HTTP_USER_AGENT} ^WebStripper [OR][/align]
[align=center]72.[/align]
[align=center]RewriteCond %{HTTP_USER_AGENT} ^WebWhacker [OR][/align]
[align=center]73.[/align]
[align=center]RewriteCond %{HTTP_USER_AGENT} ^WebZIP [OR][/align]
[align=center]74.[/align]
[align=center]RewriteCond %{HTTP_USER_AGENT} ^Wget [OR][/align]
[align=center]75.[/align]
[align=center]RewriteCond %{HTTP_USER_AGENT} ^Widow [OR][/align]
[align=center]76.[/align]
[align=center]RewriteCond %{HTTP_USER_AGENT} ^WWWOFFLE [OR][/align]
[align=center]77.[/align]
[align=center]RewriteCond %{HTTP_USER_AGENT} ^Xaldon\ WebSpider [OR][/align]
[align=center]78.[/align]
[align=center]RewriteCond %{HTTP_USER_AGENT} ^Zeus[/align]
[align=center]79.[/align]
[align=center]RewriteRule .* - [F][/align]
[align=center]80.[/align]
[align=center]</ifModule>[/align]

 
İyi Günler , Saygılar Smile

Paylaşım Tarihi: 30.05.2016, 17:10:04 #2
stoch89 Cezalı Üye
Cezalı Üye
Status: Çevrimdışı Yorumları:31 Konuları:1 Kayıt Tarihi:15.05.2016

Teşekkürler Kardeşim

Paylaşım Tarihi: 30.05.2016, 17:52:16 #3
İmpala Cezalı Üye
Cezalı Üye
Status: Çevrimdışı Yorumları:32 Konuları:14 Kayıt Tarihi:30.05.2016

Tam lazım olan şeydi eyw










Aradığınızı Bulamadınız Mı ?

Konuyu Okuyanlar:
1 Ziyaretçi