home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Webmastering and Programming
Join TechIMO for Free!
Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
Reply Get bargains at  »  Dealighted.com
 
Thread Tools
Currently Active Users: 1891
Discussions: 188,398, Posts: 2,243,591, Members: 232,627
Old April 22nd, 2004, 11:44 AM   Digg it!   #1 (permalink)
Junior Member
 
Join Date: Apr 2004
Posts: 3
Question
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 April 22nd, 2004, 12:52 PM     #2 (permalink)
Member
 
The_Shooter's Avatar
 
Join Date: Mar 2004
Location: Or
Posts: 373
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.
__________________
Intel E6300, Intel DG965WH
(4)1GB Corsair 800 DDR2, 500GB HD, 160GB HD, 200GB HD
XFX 8600GTS OC, OCZ 450W PSU, 22" Dell LCD

The_Shooter is offline   Reply With Quote
Old April 22nd, 2004, 12:53 PM     #3 (permalink)
Did you try Google yet?
 
Siliconjunkie's Avatar
 
Join Date: Feb 2003
Location: Buckhannon, WV
Posts: 3,466
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.
__________________
My computer is bigger than yours!

Siliconjunkie is offline   Reply With Quote
Old April 22nd, 2004, 04:06 PM     #4 (permalink)
Junior Member
 
Join Date: Apr 2004
Posts: 3
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 April 22nd, 2004, 04:10 PM     #5 (permalink)
Junior Member
 
Join Date: Apr 2004
Posts: 3
And what is .htaccess ?
green-eyed is offline   Reply With Quote
Old April 22nd, 2004, 04:17 PM     #6 (permalink)
Did you try Google yet?
 
Siliconjunkie's Avatar
 
Join Date: Feb 2003
Location: Buckhannon, WV
Posts: 3,466
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

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

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

Most Active Discussions
Is It Just Me? (2904)
Unarmed man on his stomach shot by .. (6)
3-days in and no threads about Gaza (161)
New Build ( Finally ) (6)
CPU wont boot (7)
Building a gaming computer advice (5)
I think I just killed my computer w.. (24)
Folderchat Weekday thread (444)
Upgrading RAM (6)
Recent Discussions
Left 4 Dead Small Freezes (3)
RCA 52Inch HDTV wont turn on (4)
wishin i could edit my aol prof.. (0)
For cheap price and good qualit.. (0)
Sporadic internet connectivity (2)
Assassins Creed PC Problems (40)
I think my PSU is dieing (1)
building a gaming computer, inp.. (0)
Iming and surfing slowed down (3)
Blackberry Storm, Gears of War .. (1)
Core 2 Quad Q9550 system (3)
COWBOOM Ripoff! Used Laptop w/$.. (4)


All times are GMT -4. The time now is 03:20 AM.
TechIMO Copyright 2008 All Enthusiast, Inc.



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