Software :: Block HTTP Requisitions With Invalid Reference Field?

Oct 18, 2010

How can I block HTTP requisitions with invalid/blank http reference field through a gateway server? I am using Debian 5 with iptables enabled.

View 2 Replies


ADVERTISEMENT

Software :: Reference List Of HTTP Header Info?

Apr 8, 2011

I've been searching Google for a bit now, and either I'm too stupid or too tired to figure out the perfect search term for it.Im looking for a reference list of HTTP header info -- e.g, I have a program on Firefox that I can modify to send any header info i want "Safari, Mozilla, Internet Explorer" that sort of thing -- so a web site will believe Im using IE when in fact I am using Firefox.Does anyone have a reference of what the available "official" headers are? Also, a list of "OS header" responses would be nice, so I could fool something in believing I am a windows 3.1 machine.

View 4 Replies View Related

CentOS 5 :: Install Over Tftp/http Fails Due To Invalid Path?

May 2, 2011

I have a problem installing CentOS 5.5 over lan. I set up a dhcp3 server and it works, client got an ip. I set up a tftpd-hpa server and it works, client can boot the install image of CentOS 5.5 I set up an apache server and it seems to be impossible... In the installation marathon I clicked through the menu to the choice of the web server where my installation files are available. I enter the ip 192.168.138.1 and the path CentOS-5.5 and CentOS tells me "Unable to retrieve http://192.168.138.1//CentOS-5.5/images/stage2.img" . Thats right because the two slashes are not right. Where the hell come the two slashes from???

I edited my httpd.conf like this:

<Directory /tftpboot/CentOS-5.5>
Options Indexes
AllowOverride None
</Directory>

[Code]....

View 4 Replies View Related

OpenSUSE Network :: Block HTTP Requests From Other Computers?

May 30, 2011

My computer shares an internet connection using an ADSL router.There are other three machines.I have set up a Apache server for learning purpose and I want it to be inaccessible from anywhere else including the PCs in the network.When I enter my ip-address assigned in the network (192.168.1.1xx) from other computer,I get my ppages and I dont want that.

How can I block HTTP requests from other computers?

View 6 Replies View Related

General :: Block All Ports Except SSH / HTTP In Ipchains And Iptables?

Jun 15, 2010

How can I block all ports except

ssh (port 22)
httpd (port 80)

using iptables and iphains?

View 1 Replies View Related

Ubuntu :: Invalid Enviromental Block; /tmp Is Not Yet Ready?

Aug 12, 2011

I was running Kubuntu Natty Narwhal installed on my USB disk and a download in Firefox was in progress. There was a power failure and now when i try to boot it up it first says:invalid environment block and when continued says: /tmp not yet readyIt cannot automatically fix it. Skipping the mount or ignoring doesnt work. And i dont know what's going on so i cannot fix it manually.

View 1 Replies View Related

General :: Booting - Error "Extended Attribute Block 18875430 Has Reference Count 2 - Should Be 1"

Jan 1, 2011

While booting my Linux System (Red hat Enterprises edition 5.1) I am getting a messsage as below , the message is getting generated during file checking on first boot. Extended attribute block 18875430 has reference count 2 , should be 1. and after this system remains in the same sate.

View 1 Replies View Related

Ubuntu :: Error: Http://repository.cairo-dock.org Karmic Release: The Following Signatures Were Invalid

Feb 17, 2010

I keep getting this error whenever I try to update or reload. Does anyone know how to get rid of this or fix it?

GPG error: http://repository.cairo-dock.org karmic Release: The following signatures were invalid: NODATA 1 NODATA 2Failed to fetch http://repository.cairo-dock.org/ubu...6/Packages.bz2 Sub-process /bin/bzip2 returned an error code (2)

View 1 Replies View Related

Debian Programming :: Python-TK Alloc - Invalid Block Error

Sep 23, 2015

Just installed Debian 8 last night and trying to run one a few of my scripts that use easygui (a front-end for python-tk basically) and I keep getting alloc: invalid block any time a file or folder selection dialog is presented. I'm able to select a file/folder with no issues, but once the dialog closes I get a variation of what appears to be a memory error followed by alloc: invalid block.

Here's one of my scripts that does it. This one pops up a file selection dialog pretty early on to ask for a file to check, and as soon as I select any file the dialog closes and that error appears in the terminal. It happens whether I run it with Python 2 or Python 3. You will need to install python3-easygui for this script to run properly if you want to check for yourself what happens. This is a first time encountering this error for me.

View 1 Replies View Related

Ubuntu Installation :: Invalid Environment Block Error After Shutdown

May 4, 2011

I'm running 11.04 off of a 32gb flash drive. Something about grub on my install is messed up. When trying to boot after a normal shutdown, I get the following errors.

error: invalid environment block
error: invalid arch independent ELF magic

I think something about grubenv under /boot/grub is being corrupted. Loggin in under Ubuntu 10, I can make my way to the files on the 11.04 flash drive and issue the following commands to make it boot normally [URL]... file corruption happening? How can I fix it?

View 2 Replies View Related

General :: Field-terminating Char Appears Within Field Values?

May 18, 2010

I've had a very colorful morning learning the innerparts of Linux's sort command, and have come across yet another issue that I can't seem to find an answer for in the documentation. I'm currently using -t, to indicate that my fields are split by the comma character, but I'm finding that in some of my files, the comma is used (between double-quotes) within values:

Jonathan Sampson,,foo@bar.com,0987654321
"Foobar CEO,","CEO,",ceo@foobar.com,,

How can I use a comma to terminate my fields, but ignore the occurences of it within values? Is this fairly simple, or do I need to re-export all of my data using a more-foreign field-terminator? (Unfortunately, I do not have any control over declaring a different terminator with this particular project).

View 2 Replies View Related

Fedora Hardware :: ERROR : Radeon 0000:01:05.0: DVI-D-1: EDID Block 0 Invalid

Dec 27, 2010

I have installed a fresh copy of FC14 and when I logged in locally for the first time I was getting the error messages below. Now these same messages are filling up my messages log and it's running non stop in the background. Has anyone seen anything on this error? I have searched through Google looking for help and I'm not finding much.

This box is a simple file/web server with no monitor hooked up and no GUI. I have also included the lspci ouput below if that might help. Really looking for any suggestions or input on how I might stop the error reporting since is filling up my log files quickly.

[Code]....

View 2 Replies View Related

Programming :: Awk - Print A Field When Field Position Is Unknown ?

Mar 28, 2010

I'm trying to display fields from flat files where the first 8 fields are always the same. Fields 9 - n are varied but will contain specific patterns I'm after. I'm using this so far because "mySearch" is on each line I want to examine.

Code:

How would you pattern match and include 2 additional fields above field $9 but change field position from line to line?

View 12 Replies View Related

Programming :: Awk Printing From Nth Field To Last Field

Jan 8, 2010

How can print the, let's say 5nd field to the last field of every record (let's say we have 10 fields)?

I mean: I cant avoid to have to do:

print '{$5 $6 $7 $8 $9 $10}'

View 2 Replies View Related

Programming :: Php - Get A Return From A Field Within A Field?

Apr 27, 2009

I am creating a game with random variables. In the game I have created a dialogue exchange to players. I have set up a table with various returns and I inserted {$fields} to represent various random variables. When I call on the requested fields, I only see the field text and my field names. Am I supposed to parse something and call it back another way?

ie: myfield is: "You have won {$random1} silver! <br />{$wi['gender'] majesty rewards you well." the code I am using to call that field is:

View 11 Replies View Related

Ubuntu :: Laptop Boot Failure - Invalid Enviroment Block - Unable To Load Default Boot Entries

Mar 3, 2010

Have been running ubuntu for sometime now and love its functionality...However since a recent update have the following issues..When I power on the laptop I get the toshiba logo followed by grub loading with the message ' invalid enviroment block" "unable to load default boot entries". When I then try to run the laptop off a LiveCd, the ubuntu splash screen appears with the loading process bar (horizontal line) displayed..however it then appears to display a black screen with no further activity..Now all of this is via an external monitor as my laptop screen shows no activity right from the very start with just a blank screen....so am really stuck here wondering if its a harware/software issue or a combination of both...

View 1 Replies View Related

Server :: Http Error "Invalid Command 'JkSet', Perhaps Misspelled Or Defined By A Module Not Included In The Server Configuration"

Feb 11, 2011

I am running apache httpd-2.2.3-43.el5.centos.3 When i restart the http, it says the following error "Invalid command 'JkSet', perhaps misspelled or defined by a module not included in the server configuration "

Do I need to install anything like tomcat? or include any configuration setting in apache? kernel version: 2.6.18-194.32.1.el5

View 3 Replies View Related

Programming :: Get A Field Value Corresponding To Another Field Value?

Dec 14, 2010

i have a file : file.dat with following data

Code:

STORAGE PERCENTAGE FLAG:

/storage_01 64% 0
/storage_02 17% 1
/storage_03 10% 0
/storage_04 50% 1

I need to get the value of PERCENTAGE in a variable for a value of storage passed as variable i have tried the following without success like :

Code:

percentage='awk -vx="$defaultStorage" '{FS=OFS=" "}$1==x{print $2}1' file.dat

View 2 Replies View Related

Networking :: Craft A Valid Http/1.1 Request For Getting Http Headers (not The Html File Itself)

Sep 27, 2010

Using netcat, nc(1), craft a valid http/1.1 request for getting http headers (not the html file itself!) for the main index page of www dot aalto dot fi. What request method did you use? Which headers did you need to send to the server? What was the status code for the request? Which headers did the server return? Explain the purpose of each header.

nc -v www dot aalto dot fi 8080
HEAD / HTML/1.1
host: www dot aalto dot fi
And it returns:
200 OK
Content-Length: 858
Content-Type: text/html
Last-Modified: Thu, 02 Sep 2010 12:46:01 GMT
[Code]....

I really don't know what does it mean. Question 2: Using netcat, nc(1), start a bogus web server listening on the loopback interface port 8080. Verify with netstat(, that the server really is listening where it should be. Direct your browser to the bogus server and capture the User-Agent: header "Direct your browser to the bogus server and capture the User-Agent: header" I don't understand this question.

View 2 Replies View Related

Ubuntu Servers :: Nagios On 10.04 Server Using Apt-get - HTTP WARNING: HTTP/1.1 404 Not Found

Aug 4, 2010

I installed Nagios on my Ubuntu 10.04 server using apt-get and when I accessed the web console, everything was OK. I made some changes to apache (creating some new virtual sites) and since then Nagios gives me a warning message for HTTP with the message, HTTP WARNING: HTTP/1.1 404 Not Found. The sites that I created are working perfectly. I noticed that the attemps are 4/4. Does this need to be reset or does Nagios automatically reset that once it detects the issue is resolved?

View 1 Replies View Related

General :: Invalid ACPI: Invalid PBLK Length [5] During Debian Boot

Sep 20, 2010

I installed Debian 5.03 Lenny successfully on my machine. I got this error during boot: ACPI : invalid PBLK length [5]. After that the Operating System boots properly and starts normally. What does this error statement mean? Is it safe to work with this installation despite this error?

View 1 Replies View Related

General :: Parsing Err Or Invalid $END - Correct User Use Of Invalid Characters

Feb 10, 2011

Trying simply to insert into table. Have succeeded in doing this but now want to correct user use of invalid characters. If I'm understanding correctly, Real-escape-string seems to correct these, so I've been trying to figure out how to use it. A short, test code version gives me a syntax error at INSERT VALUES, which--because it still has the single quotes in the text--tells me the real-escape-string didn't work. The code below gives me a parseing error with invalid $END at </body>.

Insert Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' VALUES (UTC_TIMESTAMP,'What's happen' bra?')' at line 1 Parse error: syntax error, unexpected $end in /home/powere15/public_html/DB/exercises_insert_record.php on line 94
<html><head><title>Exercise Catalog Insert Record</title></head>
<body>
<?
/* Change db and connect values if using online */
[Code]....

View 2 Replies View Related

Ubuntu Installation :: Grub And 9.04 - Error "invalid Command" Or "invalid Execution Format"

Aug 16, 2011

Bottom Line: Dvd Drive died in my toshiba laptop and it was replaced (not before tech for some reason reformatted the Win7 partition... which was 100% un-needed, but thats beside the point now. I redid win7 (the tech installed vista) and am TRYING to "redo grub". Facts: The Slackware AND Ubuntu Partitions ARE STILL THERE and when i use SuperGrub Boot CD (which doesn't restore my grub by itself) to boot into slackware, i can see ALL THE CONTENT of both Linuxes still there including grub on ubuntu partition

(Tri-Boot: Ubuntu, Slackware, and WIn7) I had it working for two years or so, SO i know this "setup" works fine. I am A) Trying to do this as simply as possible. B) Trying to avoid the need to download a 800MB ISO (as seen for this issue on this forum) and trying not to have to reformat Ubuntu Partition (though I have the .Debs I have downloaded for it backed up ... all 1.7GB of them) I have /dev/sda1 as win7, /dev/sda2 as Slack and /dev/sda3 as Ubuntu (which contains Grub Legacy).. Every command I do seems to result in an error like "invalid command" or "invalid Execution format " (i think that second one is right) type errors. I compiled (awhile back) a few kernels for Slackware, but feel goofy that I cant figure what i this out (what i thought was going to be a "2 minute" fix)

View 4 Replies View Related

General :: Keep Last 'n' Characters Of A Specified Field?

Apr 4, 2010

The input file consists of several fields. The first field is always five or more characters long. I want to keep the last five characters of the first field.

Example:
If the input file record is FEDERAL PACIFIC ELECTRIC PRODUCTS then I want to keep DERAL I can do this in four steps by using C, REV, C, and REV again but that seems like doing an easy thing the hard way. Is there a straightforward way to achieve this result with C or some other command?

View 14 Replies View Related

General :: Is Field BusID Necessary In XF86Config?

Mar 1, 2011

I am using a cluster of machines running on Ubuntu 10.04 LTS which are supposed to be homogeneous, but apparently they are not. In particular, I am configuring the X server on these machines.The problem is that the BusID of the graphic card is PCI:5:0:0 for some machines, and PCI:3:0:0 for others. Is there a way that the X server automatically detects the appropriate Device (based on the name for instance)?

View 1 Replies View Related

General :: Add Second Field Of Two Files On Different Servers?

Sep 1, 2010

I have one file placed at one server whose sample as follows:

57272 28
56767 0
57575 4

[code]...

View 13 Replies View Related

General :: Merge 2 Files With AWK By The Field Value

Jun 1, 2010

i have 2 file and want to merge them in the first one. the first file is like this:

2 word1
1 word2
6 word3
2 word4
......

the second:

word1 :file1 :file2
word2 :file6
word3 :file1 :file2 :file2 :..up to file6
word4 :file7 :file1
.......

So i want to ADD all those File fiels Wich have different FN for every record.

View 8 Replies View Related

General :: Replicate A Specific Field?

Apr 24, 2010

I have a file containing text. I want to replicate a specific field.For example, I might want to append a copy of the second word of each line to the end of that line.Have: Once upon a midnight dreary, while I pondered weak and weary,Over many a quaint and curious volume of forgotten lore, Want: Once upon a midnight dreary, while I pondered weak and weary, upon Over many a quaint and curious volume of forgotten lore, many Is there a Linux command which will do this? I seek a basic command, not awk, not Perl, because I haven't learned those things yet.

View 14 Replies View Related

Software :: Command To Print The Last Field?

Dec 29, 2010

Is there a way to extract the last field? Specifying the field number is causing problems using awk or cut as the input log file has the output specified in different lines at different places/fields. The only thing constant is the 'pathname' which always occurs at the end.

View 3 Replies View Related

Programming :: Form Field Validation Using PHP

Sep 10, 2009

I want to validate a web form using PHP. I spent ages confusing myself with client side scripting and realised until I worked out it is not what I want. My problem is that now I am looking at PHP and everything is mixed up in my brain. I need to point out that PHP is very new to me! This is what I already have:
1 An html page with my form on it.
2 PHP page which emails the contents of the form to me.

The above works well. For the sake of clarity, here are my pages (cut down to the essentials where appropriate): My html form:
first name surname
Email  
Home phone
Mobile
Work phone

I have read and understood your terms and conditions. My php script (regform.php)
$receiver = 'me@email'; $subject = 'New registration'; #$message = 'This is a new registration.'; $surname = $_POST['surname']; $firstname = $_POST['firstname']; $address = $_POST['address']; $email = $_POST['email']; $homeph = $_POST['homeph']; $mobileph = $_POST['mobileph']; $workph = $_POST['workph']; $time = $_POST['time']; #from here $oldaddress = $_POST['oldaddress']; $DOB = $_POST['DOB']; $elect = $_POST['elect']; $job = $_POST['job']; $salary = $_POST['salary']; $employer = $_POST['employer']; $benefit = $_POST['benefit']; $smoke = $_POST['smoke']; $claim = $_POST['claim']; $children = $_POST['children']; $children2 = $_POST['children2']; $pets = $_POST['pets']; $pets2 = $_POST['pets2']; $require = $_POST['require']; $terms = $_POST['terms']; $rooms = $_POST['rooms']; $body = "first name:$firstname
surname:$surname
DOB:$DOB
email:$email
home phone:$homeph
mobile phone:$mobileph
work phone:$workph
address:
$address
time at this address:$time
previous address:$oldaddress
electoral register:$elect
employment:$job
employer:$employer
salary:$salary
benefit claim:$benefit
future benefit:$claim
children:$children
ages:$children2
pets:$pet
pet type:$pets2
other requirements:$require
terms:$terms"; $headers = 'From: email' . "
" . 'Reply-To: email "
" . 'X-Mailer: PHP/' . phpversion(); mail($receiver, $subject, $body, $headers, "From: $firstname $surname
" . "Reply-To: $firstname $surname class="inlineimg" />;

You can see there are many more form fields than I have shown in my example html form above. What I want is that the following fields have to be filled:
1 mobileph
2 email
3 terms (checkbox)
I would like the user to be asked to fill the form in properly if any/all of the 3 fields have not been filled in. I imagine I need some php in the html page and some more in the php page. I am certainly not asking any one to do this for me but I am really confused. I have googled and copied and pasted and edited for 6 hours and I am lost. What I want is a very simple and clear example of the code needed. Sorry if I sound as if I can't search properly on Google: in this case I clearly can't!

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved