473,569 Members | 2,870 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Use local W3C validator on local site?

Hi,

I'm an Austrian writer living in Montpezat (South France). I just installed
a local W3C validator on my machine (Slackware 10.1, local Apache server).
It's accessible as http://w3c-validator, because I'm on dialup and I want
to check pages offline.

Unfortunately, URL upload won't work, because the validator doesn't accept
any URL's beginning with http://localhost.

Is there any way to circumvent this limitation? I want to check the output
of a local PHP site, and I don't know how to check otherwise than by URL
upload.

Any suggestions?

Niki Kovacs
--
I'm not as think as you stoned I am.
Sep 17 '05 #1
13 10785
Sorry, the link should be:

http://validator.w3.org/feedback.html

--
James Pickering
http://jp29.org/

Sep 17 '05 #3
James Pickering wrote:
http://validator.w3.org/feedback.html


What's that? RTFM? Read The Feedback Man? Anyone else has something better
to offer?

NK
--
I'm not as think as you stoned I am.
Sep 17 '05 #4
Niki Kovacs wrote:
Any suggestions?


Either of:
(1) Just remove that check. But bear in mind that you
might be opening a security hole by exposing internal
details of your system to any user.
(2) Google for validator-lite, which is the same parser in
a desktop tool, and quite a lot simpler to set up
than a webserver-based validator.

--
Nick Kew
Sep 17 '05 #5
Niki Kovacs wrote:
Unfortunately, URL upload won't work, because the validator doesn't accept
any URL's beginning with http://localhost.

Is there any way to circumvent this limitation?


http://validator.w3.org/docs/install.html

Edit /etc/w3c/validator.conf to reflect where files are in
your installation, and configure other parameters there as
you wish. This file is well commented and modifying it should
be relatively straightforward .

And lo, on lines 50-51 (on my version from CVS a few months ago) we have:

# Whether private RFC1918 addresses are allowed.
Allow Private IPs = no
--
David Dorward <http://blog.dorward.me .uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
Sep 17 '05 #6
On Sat, 17 Sep 2005 17:56:40 +0200 in
comp.infosystem s.www.authoring.html, Niki Kovacs favored us with...
I'm an Austrian writer living in Montpezat (South France). I just installed
a local W3C validator on my machine (Slackware 10.1, local Apache server).
It's accessible as http://w3c-validator, because I'm on dialup and I want
to check pages offline.

Unfortunately, URL upload won't work, because the validator doesn't accept
any URL's beginning with http://localhost.

Is there any way to circumvent this limitation?


Sure! Since you have a local server, all you need do is configure a
Virtual Host in Apache. For instance, here's how I set up the virtual
host oldtc3.me in httpd.conf:

<VirtualHost *>
ServerName oldtc3.me
DocumentRoot "z:/web_site"
<Directory />
Order Deny,Allow
Deny from All
Allow from 127.0.0.1
</Directory>
</VirtualHost>

The document root is the directory that acts as the root directory of
the virtual host: think of it as a sort of mount point.

Then separately in my HOSTS file I configure oldtc3.me to have IP
address 127.0.0.1, which stands for the local machine. (You seem to
be on a UNIX. I don't know what corresponds to the HOSTS file, but
I'm sure there must be some file that forces a given host to be at a
given IP address and bypasses normal DNS lookup.)

Once that's done, my browser does just fine with URLs like
"http://oldtc3.me/stat/cltlab.htm". Since it's http, I'm sure your
local validator would also do fine.

--
Stan Brown, Oak Road Systems, Tompkins County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2.1 spec: http://www.w3.org/TR/CSS21/
validator: http://jigsaw.w3.org/css-validator/
Why We Won't Help You:
http://diveintomark.org/archives/200..._wont_help_you
Sep 18 '05 #7
Nick Kew wrote:
Either of:
(1)*Just*remove *that*check.**B ut*bear*in*mind *that*you
might*be*openin g*a*security*ho le*by*exposing* internal
details*of*your *system*to*any* user.


I run Slack Linux 10.1 with a hand-crafted iptables/netfilter firewall, so
my first thought about this is: let 'em come:oD

Cheers,

Niki Kovacs (same initials, hey)
--
I'm not as think as you stoned I am.
Sep 18 '05 #8
David Dorward wrote:
Edit*/etc/w3c/validator.conf* to*reflect*wher e*files*are*in
your*installati on,*and*configu re*other*parame ters*there*as
you*wish.*This* file*is*well*co mmented*and*mod ifying*it*shoul d
be*relatively*s traightforward.

And lo, on lines 50-51 (on my version from CVS a few months ago) we have:

# Whether private RFC1918 addresses are allowed.
Allow Private IPs = no


Thanks! That solved the problem.

Niki Kovacs
--
I'm not as think as you stoned I am.
Sep 18 '05 #9
On Sat, 17 Sep 2005 20:32:07 +0100 in
comp.infosystem s.www.authoring.html, Nick Kew favored us with...
(2) Google for validator-lite, which is the same parser in
a desktop tool, and quite a lot simpler to set up
than a webserver-based validator.


Does validator-lite find different problems from NSGMLS, or is it
just a different user interface for the same validation engine?

--
Stan Brown, Oak Road Systems, Tompkins County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2.1 spec: http://www.w3.org/TR/CSS21/
validator: http://jigsaw.w3.org/css-validator/
Why We Won't Help You:
http://diveintomark.org/archives/200..._wont_help_you
Sep 19 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

195
8389
by: Torbjørn Pettersen | last post by:
As you might have noticed I'm trying to clean up my web site's HTML code. The way I do it is simply more or less redoing to complete site, testing it on a web server I have set up on my local network. I have downloaded, and installed CSE HTML Validator Pro, but I don't get the same results with that as I do with the online validator on...
6
8841
by: James Owens | last post by:
I maintain a small web page for internal company use. People access it by typing "library" in their browser address bar; this defaults to "http://library" which the network admin magically redirects to my page. Lately some other departments have been creating their own web pages and I have added links to them. The pages are on the same...
22
2323
by: Lee K. Seitz | last post by:
What are this group's members' ideas about including W3C validator (http://validator.w3.org) graphics on web pages? Specifically, should they be on every page? I can see including an HTML/XHTML validation graphic on each page. That way you can quickly check the page any time you update it. But what about the CSS validator? Typically (I...
4
1274
by: Alan Silver | last post by:
Hello, I have a site that produces 100% valid XHTML 1.0 Strict when viewed in a browser (IE, Firefox, etc). I just tried validating the site with an on-line validator, and got several errors. It seems that the framework is sending the validator down-level code, as it assumes that the validator is a down-level browser. Is there any way...
40
5557
by: VK | last post by:
Hi, After the response on my request from W3C I'm still unclear about Tidy vs. Validator discrepansies. That started with <IFRAME> issue, but there is more as I know. Anyway, this very basic HTML page: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Strict//EN" "http://www.w3.org/TR/html401/strict.dtd"> <html> <head>
0
7605
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7917
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8118
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7962
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5501
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3651
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3631
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2105
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
933
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.