.Htaccess Tam Koruma Çeşitleri


Html-Php ve Diğer Kodlama Dilleri   

Yazar: İncore    2 Yorum    140 Görüntüleme
  • 0 Oy - 0 Yüzde

Paylaşım Tarihi: 16.05.2016, 14:31:07 #1
İncore Delikanlı
Onaylı Uye
Status: Çevrimdışı Yorum Sayısı:71 Konu Sayısı:11 Üyelik Tarihi:29.06.2015 Rep Puanı: 2

.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:
[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:
[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:
[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ışı Yorum Sayısı:31 Konu Sayısı:1 Üyelik 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ışı Yorum Sayısı:32 Konu Sayısı:14 Üyelik Tarihi:30.05.2016

Tam lazım olan şeydi eyw







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

Konuyu görüntüleyenler:
1 Misafir

MemoryHackers