Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Web Hosting Forum


You are currently viewing our Web Hosting Forum as a guest. Please register to participate.
Login



Reply
Old 11-26-2004, 02:16 PM how can i block IP
Super Talker

Posts: 116
Trades: 0
hi
can u please is it possible to do this
i want that no body from particular country should be able to view my website,people from other should be able to do so.
i have tried to use IP DENY manager in fantistco,any suggestions
regards
__________________
Code:
if (You are Poor)
{Find a rich Girl Friend and you will be rich)
else
{Find a Girl Friend and you will be poor}
benevolent001 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 11-26-2004, 03:57 PM
cougarhosting's Avatar
Skilled Talker

Posts: 54
Location: Vancouver, BC
Trades: 0
Do you have root access?
__________________
Gary Jones

MonsterHosting.ca -
Please login or register to view this content. Registration is FREE

ResellerBackup.com -
Please login or register to view this content. Registration is FREE
cougarhosting is offline
Reply With Quote
View Public Profile Visit cougarhosting's homepage!
 
Old 11-26-2004, 04:51 PM
hcolor's Avatar
Super Talker

Posts: 135
Trades: 0
Hi,

You have to define the IP network that you want to prevent visits from and then you have to ban IP's with firewall or with htaccess file.

Best Regards
Dimitar
__________________
Host Color

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE

Web hosting about people, not about gigabytes - since 2000
hcolor is offline
Reply With Quote
View Public Profile Visit hcolor's homepage!
 
Old 11-26-2004, 06:31 PM
Super Talker

Posts: 116
Trades: 0
i dont know what u mean by root access?
but i i have cpanel hosting
any thing?
__________________
Code:
if (You are Poor)
{Find a rich Girl Friend and you will be rich)
else
{Find a Girl Friend and you will be poor}
benevolent001 is offline
Reply With Quote
View Public Profile
 
Old 11-26-2004, 10:21 PM
Anacrusis's Avatar
Defies a Status

Posts: 2,099
Name: Adam
Location: Colchester CT
Trades: 0
Try this:
Log into your Cpanel account. Under "Site Management", go to Ip Deny Manager. THen under "Add an IP Deny:" enter in the IP address you wish to block. Click "Add". You should be all set at this point.

To remove the block, simply remove the line that was created in the .htaccess file located in your www directory
Anacrusis is offline
Reply With Quote
View Public Profile
 
Old 11-27-2004, 08:36 AM
WaHoOoO!'s Avatar
Mentally Unstable Tugboat Captain

Posts: 797
Name: Chad
Location: /usr/bin/perl
Trades: 0
You can remove the entry through cPanel as well.
__________________
He's baaaaaaaack....
WaHoOoO! is offline
Reply With Quote
View Public Profile Visit WaHoOoO!'s homepage!
 
Old 11-27-2004, 10:40 AM
Super Talker

Posts: 116
Trades: 0
How can i block whole country instead of single IP
I have access to htaccess file but what to write in to block whole country?
__________________
Code:
if (You are Poor)
{Find a rich Girl Friend and you will be rich)
else
{Find a Girl Friend and you will be poor}

Last edited by benevolent001; 11-27-2004 at 10:46 AM..
benevolent001 is offline
Reply With Quote
View Public Profile
 
Old 11-28-2004, 03:01 AM
C180H's Avatar
Novice Talker

Posts: 12
Trades: 0
on your local computer create a file called htaccess.txt, edit it with info below, then upload it into your www directory and rename it to .htaccess

inside copy and paste this

AuthName "Country access blocked"
AuthType Basic
<Limit GET POST>
order allow,deny
allow from all

deny from WHATEVERIP OR HOSTNAME HERE
deny from .ca
deny from .com
</Limit>

#Change the ErrorDocument to your own alternate URL
ErrorDocument 403 http://yahoo.com
C180H is offline
Reply With Quote
View Public Profile Visit C180H's homepage!
 
Old 11-28-2004, 05:14 AM
Super Talker

Posts: 116
Trades: 0
it seems it would take lot of work to deny access using IP blocking in htaccess file,what about geo IP redirect to different page from the users of the country i want to block.is there any free utility like this available?


Which of the following things i have to change according to my need ,i have marked those red can see if its correct.Will placing .ca block every one from canada?
or what?
Or else i have to place one particular IP in place of WHATEVERIP OR HOSTNAME HERE


AuthName "Country access blocked"
AuthType Basic
<Limit GET POST>
order allow,deny
allow from all

deny from WHATEVERIP OR HOSTNAME HERE
deny from .ca

</Limit>

#Change the ErrorDocument to your own alternate URL
ErrorDocument 403 http://myurl.com
__________________
Code:
if (You are Poor)
{Find a rich Girl Friend and you will be rich)
else
{Find a Girl Friend and you will be poor}

Last edited by benevolent001; 11-28-2004 at 05:26 AM..
benevolent001 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to how can i block IP
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.54604 seconds with 12 queries