![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#11 |
|
The Supreme Ruler
![]() Join Date: May 2004
Location: Houston
Posts: 1,476
Rep Power: 6
![]() |
That's why I'm the Supreme Ruler. :p
__________________
"Every gun that is made, every warship launched, every rocket signifies, in the final sense, a theft from those who hunger and are not fed, from those who are cold and are not clothed. The world in arms is not spending money alone. It is spending the sweat of its laborers, the genius of its scientists, the hopes of its children." - Dwight D. Eisenhower |
|
|
|
|
|
#12 | |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
Quote:
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
|
|
|
#13 |
|
Programming Guru
![]() Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 5
![]() |
To clarify a little:
Javascript is a client-side language. This means that it is executed not by your web server, but by the people accessing your web server. The browser executes the Javascript, not the server, and Javascript can thus be turned off at will. Because of this, Javascript cannot block IPs, prevent hotlinking or do any of the things you wish. It simply can't be done by a client-side language. Some of the things you wish to do can be done server-side, such as banning IPs and preventing hotlinking (via the Referer header), but some cannot. You cannot prevent a person from downloading content from your site. If they can view your page, they can save it. It's as simple as that. I suggest you find a web hosting company that supports .htaccess files and PHP. Hosting companies that support such are cheap and plentiful. You can get a host for as little as $12 (or £7, or €10) a year. |
|
|
|
|
|
#14 |
|
Hobbyist Programmer
|
you can to go to here for pw protect code
<script language="JavaScript">
<!--hide
var password;
var pass1="chef";
password=prompt('Password is chef',' ');
if (password==pass1)
alert('Correct password, OK to enter!');
else
{
window.location="http://www.help4admins.com";
}
//-->
</script>and here code for blocking ips this goes in your head
<script>
function banned()
{
var ip = '<!--#echo var="REMOTE_ADDR"-->';
var banned = 'ip address of Banned';}
if (ip == banned)
window.location = 'www.google.com';
</script>place this one in your body (<body onLoad="banned();">) |
|
|
|
|
|
#15 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
Put a code on your page, PM me your page address, and offer me $100.00 if I can post the code here.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
|
|
#16 |
|
Hobbyist Programmer
|
i dont get what you are saying. i dont have my own page. i dont have the money to keep one. if i get a page it will be a free on. like freewebs or something.
|
|
|
|
|
|
#17 |
|
I eat cake for breakfast.
![]() ![]() ![]() ![]() Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9
![]() |
In that case, forget about doing any of that.
|
|
|
|
|
|
#18 | |
|
Newbie
Join Date: Feb 2006
Posts: 22
Rep Power: 0
![]() |
Quote:
__________________
im a professional programmer |
|
|
|
|
|
|
#19 | |
|
Newbie
Join Date: Feb 2006
Posts: 22
Rep Power: 0
![]() |
Quote:
__________________
im a professional programmer |
|
|
|
|
|
|
#20 |
|
Professional Programmer
Join Date: Apr 2005
Location: London, England
Posts: 459
Rep Power: 4
![]() |
Not so broke that you can't afford a domain/hosting
![]() Edit: And you're doing some truly creepy things on that page - reloading the window if netscape 4 resizes? Do you even know what Netscape 4? |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|