»
 

Go Back   ResellerRatings Store Ratings > ResellerRatings Forums > Tech Support

Reply
 
LinkBack Thread Tools Display Modes
Old 04-22-2004, 08:44 AM   #1 (permalink)
Registered User
 
Join Date: Apr 2004
Posts: 3
green-eyed is on a distinguished road
Kids IP blocking

Hello,

1) Is it possible to block a specific IP number from accesing my weblog ? What should I add to the template ? Could you please recommend any java scripts or something. And please note, that the weblog is not hosted on my own server, so the only thing I can do is to modify the HTML.

2) How to prevent someone using a dial - up connection from accesing my site ?

3) Is it possible to make it impossible to connect to the site through a proxy - server (it would strenghten the ban).


4) How to prevent people from seeing and copying my source code ?

Thanks in advance for your help.

green-eyed is offline   Reply With Quote
Old 04-22-2004, 09:52 AM   #2 (permalink)
Registered User
 
Join Date: Mar 2004
Location: Wa
Posts: 99
The_Shooter is on a distinguished road
A reply for #4

Since you have HTML only that you can edit, there is a way to block right clicking with a java script I think. But that will not stop the intermediate user. I do not believe (This is me talking) that there is a way to prevent someone from getting into your source code... There are tricks to help keep them away, but its just not going to make the source code safe.

Now if anyone else would input, maybe there is a way? From what I have learned, there is not a way to 100% block the source from being seen, gotta think, the browser has to see it.
The_Shooter is offline   Reply With Quote
Old 04-22-2004, 09:53 AM   #3 (permalink)
Banned
 
Siliconjunkie's Avatar
 
Join Date: Feb 2003
Location: Houston, TX
Posts: 1,595
Siliconjunkie is on a distinguished road
Send a message via AIM to Siliconjunkie
Quote:
1) Is it possible to block a specific IP number from accesing my weblog ? What should I add to the template ? Could you please recommend any java scripts or something. And please note, that the weblog is not hosted on my own server, so the only thing I can do is to modify the HTML.
If your host allows use of .htaccess you can put apache directives in there (if its hosted on apache)

Quote:
2) How to prevent someone using a dial - up connection from accesing my site
Same as above but you would need a list of what IPs/networks you wanted to block.

Quote:
3) Is it possible to make it impossible to connect to the site through a proxy - server
Block the proxy servers IP as above

Quote:
4) How to prevent people from seeing and copying my source code ?
Not sure on this, but all the things that disable right click are worthless, AFAIK there is no way to do this for HTML.
Siliconjunkie is offline   Reply With Quote
Old 04-22-2004, 01:06 PM   #4 (permalink)
Registered User
 
Join Date: Apr 2004
Posts: 3
green-eyed is on a distinguished road
Thanks.

The weblog is hosted on blogspot (blogger) ... and so I cannot do anything except for modifying the HTML... Nevertheless, I wonder if I could upload an ip-blocking program (e.g. written in php) to my own server and then paste something including an appropriate link into the blog template ? Would it work ?

I got the following javascripts :

Quote:
--- I) <script language="javascript">
var ip = '<!--#echo var="REMOTE_ADDR"-->'
if (ip == '206.186.23.178') {
alert("STOP! You are viewing this page from an IP address that is not allowed!");
alert("Why can't you guys just leave me alone?");
if (confirm("Do you want to leave peacefully? Or will I have to help you?"))
{location.href="http://www.yahoo.com" } else { ("OK you choose I don't care! Bye bye! Don't come back!"); {location.href="http://www.yahoo.com" }} }
</script>

--- II)<!-- ONE STEP TO INSTALL IP ADDRESS FILTER 2:

1. Copy the coding into the HEAD of your HTML document -->

<!-- STEP ONE: Paste this code into the HEAD of your HTML document -->

<HEAD>

<SCRIPT LANGUAGE="JavaScript">

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
<!-- Original: kdcgrohl -->
<!-- Web Site: http://www.kdcgrohl.com -->

<!-- Begin
// This JavaScript uses server side includes ("SSI") so this document's name must end in .shtml
function ban(){
var ip = '<!--#echo var="REMOTE_ADDR"-->';

//add as many ip's below as you wish.
if (ip == "x.x.x.x" || ip == "x.x.x.x") {

//if you wish to change the alert message, do so below.
alert("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!Attentio n!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\nYour ip address \("+ip+"\) has been banned!");
history.go(-1);
window.location.replace("http://javascript.internet.com/")
}
}
ban();
// End -->
</script>


<p><center>
<font face="arial, helvetica" size"-2">Free JavaScripts provided<br>
by <a href="http://javascriptsource.com">The JavaScript Source</a></font>
</center><p>

<!-- Script Size: 1.10 KB -->
but, unfortunately they simply don't work (((


And - I wonder if it is possible to disable proxies ? As you probaby know - there are sites, which one view connect through a proxy. I sometimes get the message "this type of connection is not supported". So I concluded: there must be a way - at least in case of transparent proxies.
green-eyed is offline   Reply With Quote
Old 04-22-2004, 01:10 PM   #5 (permalink)
Registered User
 
Join Date: Apr 2004
Posts: 3
green-eyed is on a distinguished road
And what is .htaccess ?
green-eyed is offline   Reply With Quote
Old 04-22-2004, 01:17 PM   #6 (permalink)
Banned
 
Siliconjunkie's Avatar
 
Join Date: Feb 2003
Location: Houston, TX
Posts: 1,595
Siliconjunkie is on a distinguished road
Send a message via AIM to Siliconjunkie
http://apache-server.com/tutorials/A...-htaccess.html

It is basically a way to apply apache directives/configurations to your directory only and not the whole server.
Siliconjunkie is offline   Reply With Quote
Reply




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Most Active Discussions

Recent Discussions

All times are GMT -6. The time now is 04:52 PM.