Teachers of English

BannerFans.com
 
HomeHome  PortailPortail  FAQFAQ  SearchSearch  RegisterRegister  Log in  
TIME IS MONEY
Top posters
HAMADA (851)
 
BRIM (170)
 
boualem02 (93)
 
sasuna (50)
 
tanita (44)
 
razane (26)
 
Nacerlarbi (23)
 
tanita- (17)
 
houari-1969 (12)
 
mayssa (11)
 
Keywords
make school EXAMS teacher yearly book fiches application LISTENING distribution scripts File plans test lesson planning term lessons work english http exam secondary peace year plan
Search
 
 

Display results as :
 
Rechercher Advanced Search
Guest Welcome
Most Viewed Topics
Inscription au BEM 2013 التسجيلات لشهادة التعليم المتوسط
Very usefull docs from Algerian Secondary School Teachers
http://www.djelfa.info/vb/
RESULTATS DU BEM 2012
من سيربح المليون
RESULATS BEM 2015
First Term English Test (4AM)
FILE PLAN File 02 3AM
Lesson plan sample 2011
First Term Test (Make Peace 2AS)
Latest topics
» 4 MS LISTENING SCRIPTS
Sat Oct 22, 2016 8:11 pm by HAMADA

» 2 AM weekly programme
Tue Oct 18, 2016 8:07 pm by fatimazohralakehal

» ONEC.dz
Fri Jul 08, 2016 9:54 am by HAMADA

» Are you going to listen to this once , Twice or ...?
Thu Jun 09, 2016 12:39 am by HAMADA

» What's your learning style ?
Wed May 11, 2016 9:21 am by HAMADA

» Idea worth spreading
Tue May 10, 2016 4:01 pm by HAMADA

» Once upon a time,a turtle and rabbit...
Tue May 10, 2016 3:37 pm by HAMADA

» Education by 2020
Tue May 10, 2016 2:47 pm by HAMADA

» MS4 Suggested Yearly Distribution 2013_2014
Sun May 08, 2016 7:33 pm by YoucefTgN

» http://mixlr.com/dz-learning-english-247
Mon Apr 25, 2016 3:12 pm by HAMADA

» Complete tape-scripts of the whole MS 4,3,2and 1
Wed Dec 02, 2015 9:27 am by HAMADA

» Take the quiz: match the correct antonyms!
Tue Nov 10, 2015 6:34 am by boualem02

» fitness vocabulary
Sun Nov 08, 2015 5:12 am by boualem02

» MS3 Suggested Yearly planning 2013_2014
Fri Oct 23, 2015 12:16 pm by nina85

» The official yearly planning n.2.
Fri Oct 23, 2015 3:16 am by boualem02

Most active topic starters
HAMADA
 
BRIM
 
boualem02
 
Nacerlarbi
 
tanita
 
houari-1969
 
Solinet
 
bepositive
 
mayssa
 
samfrank321
 
Similar topics

Share | 
 

 How to block a whole country from visiting your website

View previous topic View next topic Go down 
AuthorMessage
HAMADA
Administrator
Administrator


Number of posts : 851
Age : 55
Location : BOUKADER CHLEF
Registration date : 2007-12-17

PostSubject: How to block a whole country from visiting your website   Sun Jul 10, 2011 9:30 pm

How to block a whole country from visiting your website

There are times when you may want to ban visitors from a certain country from viewing your website, the reasons for this can be many.

You can block people from viewing your website using rules in your firewall IP tables but if you dont have access to that, you can edit the .htaccess file and add a list of IPs to be blocked, you can get the whole IP range from a country from countryipblocks.

Select one or more country you want to block on home page of www.countryipblocks.net and press Choose Countries



Now on next screen you can see set of command, copy it and paste it to your .htaccess file, in case if you don’t have it in ftp then kindly talk to your host or create one using notepad or another text editor. This code having set of IP from countries you selected and it simply reject visitors request from those countries.



Upload that .htaccess file into root of your domain using a ftp client. Every time when a visitor request your site from server it look into .htaccess file and if IP address of that visitor fall with in range of all denied IPs of your .htaccess then it will simply deny visitor request.

However this solution may cause server overload if many requests are made from that country, another easier way to do this, is by banning people from accessing your website according to their browser language set up, for example to ban people who is using a Chinese internet browser you will add to your .htaccess file:

RewriteCond %{HTTP_ACCEPT_LANGUAGE} zh-CN
RewriteRule .* – [F]


THis will generate error 403 message, and the visitor will get a “Forbidden” message when visiting your page, but it can be changed to something else. The zh-CN is the browser setting for Chinese, this can be changed to any other language you like.
Back to top Go down
http://02english.forumpro.fr
 
How to block a whole country from visiting your website
View previous topic View next topic Back to top 
Page 1 of 1
 Similar topics
-
» solar plexus block
» TECH-BLOCK: JEVER 1960
» Visiting a Courtroom
» Going to hospital for the purpose of visiting someone
» War Invasion Dream...Another country invading the U.S.

Permissions in this forum:You cannot reply to topics in this forum
Teachers of English :: OTHER SUBJECTS @ THE MIDDLE SCHOOL :: COMPUTER STUDIES-
Jump to: